ItsMods

Full Version: tomahawk kill only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am making a mod and you get as lethal a tomahawk.
its very difficult to kill with that tomahawk in this mod so I would give something special if you kill with it.
So I want a thread that will give some things if you kill with that tomahawk but nothing else.

I made this earlier on MW2(gold deagle+normal the gold was with the extra things u get) but when i shot once with the gold and switchet to the normal one the normal one got it to :S so can you make a thread if I trow a tomahawk only not after the trow and you kill you get it to.

thx Wink
go into _callbacksetup.gsc

find this thread:
CodeCallback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset)

put this code in it:
Code:
if(sWeapon == "hatchet_mp")
{
//GIVE REWARD HERE
//EXAMPLE:
eAttacker.maxhealth = 200;
}
GiveReward(); in the callbacksetup or rank?
recheck the code