Raised This Month: $ Target: $400
 0% 

[TF2] - Set a Demoman's shield charge?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zethax
Member
Join Date: Sep 2015
Location: In my couch
Old 05-29-2016 , 19:54   [TF2] - Set a Demoman's shield charge?
Reply With Quote #1

Hi. I'd like to know if it is possible to set a Demoman's shield charge to a certain amount? I'd like to know this so I can disable a Demoman's shield charge unless they get a kill.

Sorry if it's an easy answer, I'm new to this Sourcepawn stuff.
__________________
I code, I guess.
Zethax is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 05-29-2016 , 21:22   Re: [TF2] - Set a Demoman's shield charge?
Reply With Quote #2

Taken from Advanced Infinite Ammo:
Code:
float flAmount = 0.0;
SetEntPropFloat(client, Prop_Send, "m_flChargeMeter", flAmount);
You may need to reset that every now and then.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
Zethax
Member
Join Date: Sep 2015
Location: In my couch
Old 05-30-2016 , 11:57   Re: [TF2] - Set a Demoman's shield charge?
Reply With Quote #3

Quote:
Originally Posted by nosoop View Post
Taken from Advanced Infinite Ammo:
Code:
float flAmount = 0.0;
SetEntPropFloat(client, Prop_Send, "m_flChargeMeter", flAmount);
You may need to reset that every now and then.
Thanks!
__________________
I code, I guess.
Zethax 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 06:59.


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