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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
### Sniper rifle
id=270
name=Sniper Rifle
group=weapon
icon=gfx/sniper rifle.bmp
model=gfx/shotgun.b3d
scale=0.6
mat=metal
info=a sniper rifle. has very long range and so the high damage on animals. recommended to aim on the head
speed=1000
drag=0.01
rate=1500
behaviour=gun
weight=2000
damage=20
range=2000
healthchange=0
script=start
on:noammo {
speech "negative";
msg "no ammo!",3;
play "crack1.wav";
}
on:inhand {
play "crack1.wav";
}
on:attack1 {
if (playergotitem(290)>0) { play "explode1.wav"; }
}
script=end
### Sniper rifle bullet
id=290
name=Sniper Rifle Bullet
group=weapon
icon=gfx/bullet.bmp
model=gfx/bullet.b3d
scale=0.3
mat=metal
info=a special bullet shaped for a sniper rifle. this thing is dangerously damaging!
behaviour=ammo:270
damage=200
weight=3
healthchange=0
script=start
on:impact {
		$tmp=impact_class();
		$tmp2=impact_id();
		//+50 Bonus Damage on Flesh
		if (compare_material($tmp,$tmp2,"flesh")==1){
			damage $tmp,$tmp2,50;
		}
		freevar $tmp;
		freevar $tmp2;
	}
script=end
EDIT:can u give me an english translating to the telescope script?