Advertisement
VADemon

Exploding ZOOOMBIES!

Aug 7th, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. addhook("die","zombie_explode")
  2. function zombie_explode(id,killer,weapon,x,y)
  3.     if player(id,"team")==1 then
  4.         if math.random(1,100)==1 then --chance to explode 1:100
  5.             parse("explosion "..x.." "..y.." "..math.random(48,128).." "..math.random(50,150).." "..id)
  6.             --  x   y       random range        random damage
  7.         end
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement