Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tomahawk kills counter HUD[getWeapon]
#1
Question 
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.
Reply

#2
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
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
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

Reply

#4
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.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Print kills in the console Bandarigoda123 8 5,176 04-08-2013, 16:05
Last Post: archit
  Counter-Strike: Warfare d0h! 14 18,880 03-16-2013, 21:10
Last Post: mertkanereli
  [Request] 3d tomahawk model gouveia4 8 6,120 12-16-2012, 02:29
Last Post: gateboy6
  MOAB Counter plastikgangster 11 7,511 11-25-2012, 23:43
Last Post: SuperNovaAO
  [Release] Speed Kills OneUp03 8 9,972 10-15-2012, 09:06
Last Post: choobie
  [News] Counter-Strike: GO release date is August 21, $15 price on PC Pozzuh 17 9,163 08-01-2012, 10:42
Last Post: Pozzuh
  The Kills? Arteq 0 1,498 07-07-2012, 22:33
Last Post: Arteq
  Event to happen when Player kills someone StPatrick 4 3,536 03-24-2012, 11:02
Last Post: hidra
  [Release] Tomahawk Yamato 5 4,207 12-30-2011, 17:56
Last Post: GscGunner
  Help Should I buy the new Counter Strike? Yamato 5 3,725 12-19-2011, 14:45
Last Post: Yamato

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.