This is for Objects section:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
### arrow id=55 name=Arrowed group=stuff icon=gfx\arrow.png model=gfx\arrow.b3d fx=16 scale=0.5 col=1 health=5 mat=wood autofade=5000 script=start 	on:create{ 		timer "self",300000,1,"freearrow"; 	} 	on:use { 		find 53; 		freetimers "self"; 		free "self"; 	} 	on:freearrow { 		free "self"; 	} script=end
And this is for items_weapons section (changing arrow script)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
### Arrow id=53 name=Arrow group=ammo icon=gfx\arrow.bmp model=gfx\arrow.b3d fx=16 behaviour=ammo:59,ammo:60,ammo:61 scale=0.5 mat=wood weight=5 info=Arrow with stone end damage=16 healthchange=0 script=start 	on:impact{ 		$arrowpitch=getpitch("self"); 		$arrowyaw=getyaw("self"); 		$arrow=create ("object",55); 		$arrowy=impact_y(); 		if(impact_ground()==1){$arrowy+=5;} 		else{ 		$arrowy+=2; 		} 		setpos "object",$arrow,impact_x(),$arrowy,impact_z(); 		setrot "object",$arrow,$arrowpitch,$arrowyaw,0; 	} script=end
NOTE:This is for my mod if there be some problems!
Can you help me upgrade it? If yes here is list what should be fixed/added
-Pitch and yaw must be corect
-do not cast on flesh units and glass material (drop function)
Anyone help?
edited 1×, last 28.04.12 09:24:18 pm