Guest User

Untitled

a guest
Nov 7th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. package BdayPartyDeath
  2. {
  3. function projectileData::onCollision(%this,%obj,%col,%fade,%pos,%normal)
  4. {
  5. if(matchBodyArea(getHitbox( %obj, %col, %pos ), $headTest ))
  6. {
  7. if(%col.getType() & $TypeMasks::PlayerObjectType)
  8. {
  9. if(%player.getState() $= "Dead" || %hBot.getState() $= "Dead")
  10. {
  11. %proj = new Projectile()
  12. {
  13. scale = %obj.getScale();
  14. dataBlock = bdayDeathProjectile;
  15. initialPosition = %obj.getPosition();
  16. sourceObject = %obj;
  17. sourceSlot = 0;
  18. client = %obj.client;
  19. };
  20. MissionCleanup.add(%proj);
  21. serverPlay3D(BdayDeathSound,%obj.getTransform());
  22. }
  23. }
  24. }
  25. parent::onCollision(%this,%obj,%col,%fade,%pos,%normal);
  26. }
  27. };
  28. activatePackage(BdayPartyDeath);
Advertisement
Add Comment
Please, Sign In to add comment