Raised This Month: $51 Target: $400
 12% 

Kunai max overheal?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cheatscom
Junior Member
Join Date: Oct 2013
Location: I forget
Old 10-01-2013 , 05:29   Kunai max overheal?
Reply With Quote #1

Hi, This may sound like a dumb question, but how can I change the max overheal that the kunai gives on backstab? I've tried a large range of attributes, but each one to no avail, here is a list of all the problems I've encountered...
  • Upon backstab, I gain 2000 health (that's the amount of health I want), and I see it, but it instantly goes back down to 125
  • Sometimes I can only gain a maximum of 90 health
  • Even if I set the attribute to give me 1800 on kill, it only gives me 3 :c

Here are a list of the attributes I use,
  • 180 ; 2000, to (well, try) and gain 2000 overheal on backstab
  • 11 ; 2000, I believe this sets your maximum overheal, However I think I'm wrong
  • 140 ; -25 So I start with 35 health (Hey, gotta give people a chance to kill me )

Any advice as to what I'm doing wrong would be greatly appreciated, again, sorry if this seems stupid

Last edited by cheatscom; 10-01-2013 at 05:34.
cheatscom is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-01-2013 , 09:13   Re: Kunai max overheal?
Reply With Quote #2

It's likely hard-coded as part of the sanguisuge attribute (#217) to 3 times the player's max health.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-01-2013 at 09:14.
Powerlord is offline
cheatscom
Junior Member
Join Date: Oct 2013
Location: I forget
Old 10-01-2013 , 09:17   Re: Kunai max overheal?
Reply With Quote #3

Is there any way I can change that? Like doing 217 ; 0 and setting up something different?

Last edited by cheatscom; 10-01-2013 at 09:19.
cheatscom is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 10-01-2013 , 16:44   Re: Kunai max overheal?
Reply With Quote #4

Quote:
Originally Posted by Powerlord View Post
It's likely hard-coded as part of the sanguisuge attribute (#217) to 3 times the player's max health.
Unless x10 does it differently, that's not right.
__________________
~Wliu
Wliu is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-01-2013 , 17:25   Re: Kunai max overheal?
Reply With Quote #5

Quote:
Originally Posted by Wliu View Post
Unless x10 does it differently, that's not right.
x10 servers would have to do it differently with the Kunai or else the Kunai Spy on those server would have -525 health to start... i.e. be dead.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
cheatscom
Junior Member
Join Date: Oct 2013
Location: I forget
Old 10-02-2013 , 02:22   Re: Kunai max overheal?
Reply With Quote #6

So I'm guessing that I can't do it with TF2Items, I'll try out some different attributes and mess around with the kunai, but thanks for all the information
Oh, and do you know if TF2Items can change a classes max overheal, like giving heavy 800 overheal if he eatsa dalokohs bar?

Last edited by cheatscom; 10-02-2013 at 02:33.
cheatscom is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-02-2013 , 10:27   Re: Kunai max overheal?
Reply With Quote #7

Quote:
Originally Posted by cheatscom View Post
So I'm guessing that I can't do it with TF2Items, I'll try out some different attributes and mess around with the kunai, but thanks for all the information
Oh, and do you know if TF2Items can change a classes max overheal, like giving heavy 800 overheal if he eatsa dalokohs bar?
Max overheal is a netprop on the CTFPlayerResource object. Specifically, m_iMaxBuffedHealth (with a client index as the last arg to SetEntProp / GetEntProp).

Note that there's a SourceMod native to get the player resource object: GetPlayerResourceEntity() in sdktools.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-02-2013 at 10:27.
Powerlord is offline
cheatscom
Junior Member
Join Date: Oct 2013
Location: I forget
Old 10-02-2013 , 11:30   Re: Kunai max overheal?
Reply With Quote #8

Sorry for this completely noob-ish question but how on earth can I change that? (New to this kinda thing you see :c)
I mean like where to put it, the values etc

Last edited by cheatscom; 10-02-2013 at 12:51.
cheatscom is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-02-2013 , 18:34   Re: Kunai max overheal?
Reply With Quote #9

You'd need to write a plugin to do it for you
__________________
DarthNinja is offline
cheatscom
Junior Member
Join Date: Oct 2013
Location: I forget
Old 10-03-2013 , 02:26   Re: Kunai max overheal?
Reply With Quote #10

OK, guess I should get started on that, thanks for your help, If I manage to complete the plugin I might release it, again, thanks for all the help
cheatscom is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode