Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tomahawk()
- {
- while(1)
- {
- self waittill("grenade_fire",grenade,weaponName);
- if(weaponName == "throwingknife_mp" && getDvar("mapname") == "mp_rundown")
- {
- grenade hide();
- tomahawk = spawn("script_model", grenade.origin);
- tomahawk SetModel("com_hatchet");
- tomahawk linkTo( grenade );
- while(1)
- {
- origin = tomahawk.origin;
- wait 0.05;
- neworigin = tomahawk.origin
- if(origin == neworigin)
- {
- tomahawk PhysicsLaunchServer(grenade.origin,(randomInt(5),randomInt(5),randomInt(5)));
- wait RandomIntRange(4,7);
- tomahawk delete();
- }
- wait 0.06;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement