ItsMods

Full Version: Tomahawk kills counter HUD[getWeapon]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi to everyone in this forum, this is my first post.

I have been modding for a while and i really aprecciate the job youve done on this forum, but now im stuck with a little mod i want to create.

This mod will set up a new hud which i will use to count the kills i make with tomahawks, the problem is i cannot find the function that will read through weapons and find whether i have a tomahawk or not.

ive tried with self getWeapon("tomahawk_mp") but it doesnt seem to work, maybe i have the solution in front of my eyes, but this is really driving me mad.

Thx in advance,and keep up the good work, there are really good mods out there.

Alex.
use self getCurrentweapon()

also
( kill counter )
add to onplayerconnect: player.tmkills = 0;
add to callback_playerkilled
Code:
if(attacker getCurrentOffhand() == "tomahawk_mp" || attacker GetCurrentWeapon() == "tomahawk_mp");
{
attacker.tmkills++;
}

then print self.tmkills
theres already a pres ver for tracking toma kills

might be this one

Code:
totalHumiliations

in _persistence.gsc

theres a nother one for tomas but i dont remember it

but se7ens way will work to

Thank you se7en your post was really usefull, I had to adapt it a little bit because IDK why it was giving me a bad syntax error, but i did a little research and I made it work.

Rotceh, your post was also nice and i really aprecciate your help.

I will keep you both updated with any news and i will definnately share the mod once its finished(maybe it will take a little while because I have lots of ideas).

Thanks again, if theres anything I can help you with, just let me know Wink.

Alex.