But zombies soo...
Forum
CS2D Scripts Turrents hitTurrents hit
12 replies 1
But zombies soo...
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Turrets = {8, 11, 12} addhook("hit","_hit") function _hit(id, hpdmg) 	for k,v in ipairs(Turrets) do 		if team == 2 then 			parse("sethealth "..id.." "..player(id,"health") - (hpdmg + 0)) 			return 1 		end 	end end
Turret weapon id is somewhere near 255. Just return a hit when that happens.
1
2
3
4
5
6
2
3
4
5
6
addhook("hit","immunetoturrets") function immunetoturrets(id,src,wpn) 	if wpn == 253 then 		return 1 	end end
And hit zombies?
(CT TURRENT)
1
2
3
4
5
6
2
3
4
5
6
addhook("hit","immunetoturrets") function immunetoturrets(id,src,wpn) if wpn == 253 and player(id,"team") ~= player(src,"team") then return 1 end end
1
2
3
4
5
6
2
3
4
5
6
addhook("hit","immunetoturrets") function immunetoturrets(id,src,wpn) 	if wpn == 253 and player(id,"team") >= 2 then 		return 1 	end end
1