Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addHook("MobjMoveCollide", function(mo, touched2)
- if mo.state == S_NPCJUMP2
- or mo.state == S_NPCJUMP4 then
- if mo.z > (touched2.z + touched2.height) or touched2.z > (mo.z + mo.height) or touched2.health == 0 or mo.health == 0 or (touched2.flags & MF_ENEMY) then return end
- A_ZThrust(mo, 10, (0<<16)+0)
- P_KillMobj(touched2)
- S_StartSound(touched2, sfx_pop)
- end
- end, MT_NPC )
- addHook("MobjMoveCollide", function(mo, touched3)
- if mo.state == S_NPCWALK1
- or mo.state == S_NPCWALK2
- or mo.state == S_NPCWALK3
- or mo.state == S_NPCWALK4
- or mo.state == S_NPCWALK5
- or mo.state == S_NPCWALK6
- or mo.state == S_NPCWALK7
- or mo.state == S_NPCWALK8 then
- if mo.z > (touched3.z + touched3.height) or touched3.z > (mo.z + mo.height) or touched3.health == 0 or mo.health == 0 or (touched3.flags & MF_ENEMY) then return end
- P_DamageMobj(mo,1)
- end
- end, MT_NPC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement