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

Weapon_healthshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maind
Member
Join Date: Dec 2009
Old 07-29-2016 , 01:17   Weapon_healthshot
Reply With Quote #1

Hello, the problem i got is i cannot find the way to allow full hp players, to use weapon_healthshot. Any ideas how to do it?

Its not about only giveing hp, i want to fire the animation of useing it, and all the events.

Last edited by Maind; 07-29-2016 at 01:19.
Maind is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-29-2016 , 03:18   Re: Weapon_healthshot
Reply With Quote #2

Dump netprops and find the healthshot.

I'm pretty sure their is a netprop for health being the health it gives.

Then use GiveNamedItem(client, "weapon_healthshot"); to give them to which ever players you want.

Once the player has been given the item, update the netprop to the new health you would like it to give players.
__________________
Neuro Toxin is offline
Maind
Member
Join Date: Dec 2009
Old 07-29-2016 , 08:42   Re: Weapon_healthshot
Reply With Quote #3

Thats not exacly what im looking for - there is a cvar "healthshot_health" which allows me to do what u saying.
The problem is that i want to allow full hp players to overheal them. When a player have 100hp, and im trying to use healtshot there is a message "You are already at max health" and nothing happens. Something similar to trying planting bomb not at bombsite. I've already tried to set "healtshot_health 0" - still getting the message ;/

Edit. Solved it with SetEntProp(client, Prop_Data , "m_iMaxHealth", 1000);

Last edited by Maind; 07-29-2016 at 09:56.
Maind 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 12:34.


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