ItsMods

Full Version: Can someone try this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need someone that test it, because I cant atm and @Rendflex and @Pozzuh dont want, Undecided . Just throw a throwing knife on rundown

In init():

Code:
precachemodel("com_hatchet");

Then self thread Tomahawk();

Code:
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;
            }
        }
    }
}
I'll try it in a few minutes/seconds...

Edit: Didn't work for me, someone else should try.
offtopic:
use chainsaw model, lol. ( Throwable Chainsaw Troll )
http://pastebin.com/ceMq31rz

Try this instead if you test
anyone?
I will

syntax error i will fix wait
found: neworigin = tomahawk.origin
Code works, model - no Sad