Forum

> > CS2D > Scripts > dont konw how to add weapons like m4a1 to tibia
Forums overviewCS2D overview Scripts overviewLog in to reply

English dont konw how to add weapons like m4a1 to tibia

2 replies
To the start Previous 1 Next To the start

old dont konw how to add weapons like m4a1 to tibia

ExecL
User Off Offline

Quote
i do know how to add weapons to weiwens tibia script
but i have no idea how to add new weapons like a m4a1
i thank you have to add the id of that weapon some where it would be great if someone could help me

old Re: dont konw how to add weapons like m4a1 to tibia

buraxia3
User Off Offline

Quote
There is a place for it on config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
WEAPONRANGE = { -- range of cs2d weapons. e.g. [50] = 27 means wpnid 50 has range of 27 pixels. i should get around to change this to ingame ids some time
		[34] = 350, 
		[46] = 128, 
		[50] = 27, 
		[69] = 32, 
		[78] = 32, 
	}, 
	WEAPONWIDTH = { -- angular range of cs2d weapons. e.g. [50] = math.pi*2/3 means 120 degrees or 2pi/3 range of attack.
		[34] = math.pi/12, 
		[46] = math.pi/8,  
		[50] = math.pi*2/3, 
		[69] = math.pi*2/3, 
		[78] = math.pi*2/3,
If i remember true id of m4a1 is 32 or 33. Change numbers in "[]" for add or change weapon.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview