Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Tomahawk()
  2. {
  3. while(1)
  4. {
  5. self waittill("grenade_fire",grenade,weaponName);
  6. if(weaponName == "throwingknife_mp" && getDvar("mapname") == "mp_rundown")
  7. {
  8. grenade hide();
  9. tomahawk = spawn("script_model", grenade.origin);
  10. tomahawk SetModel("com_hatchet");
  11. tomahawk linkTo( grenade );
  12. while(1)
  13. {
  14. origin = tomahawk.origin;
  15. wait 0.05;
  16. neworigin = tomahawk.origin
  17. if(origin == neworigin)
  18. {
  19. tomahawk PhysicsLaunchServer(grenade.origin,(randomInt(5),randomInt(5),randomInt(5)));
  20. wait RandomIntRange(4,7);
  21. tomahawk delete();
  22. }
  23. wait 0.06;
  24. }
  25. }
  26. }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement