Raised This Month: $32 Target: $400
 8% 

[TF2] Question about vaccinator's resist types.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nursik
Senior Member
Join Date: Jul 2016
Location: In TF2
Old 08-04-2016 , 06:12   [TF2] Question about vaccinator's resist types.
Reply With Quote #1

So m_iChargeResistType can be checked with numbers (if) (GetEntPropFloat(client, Prop_Send, "m_iChargeResistType") == 1 (for bullet))? Or with words (if) (GetEntPropFloat(client, Prop_Send, "m_iChargeResistType") == bullet)?
Nursik is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 08-04-2016 , 10:53   Re: [TF2] Question about vaccinator's resist types.
Reply With Quote #2

I'm going to guess numbers. Then you can create a custom enum so that instead of specifying 1, you could do == VaccinatorResist_Bullet.
__________________
~Wliu
Wliu is offline
Nursik
Senior Member
Join Date: Jul 2016
Location: In TF2
Old 08-05-2016 , 00:11   Re: [TF2] Question about vaccinator's resist types.
Reply With Quote #3

Quote:
Originally Posted by Wliu View Post
I'm going to guess numbers. Then you can create a custom enum so that instead of specifying 1, you could do == VaccinatorResist_Bullet.
i don't really know what is enum, but i thought i could use "new 1 = VaccinatorResist_Bullet".
Nursik is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 08-05-2016 , 07:04   Re: [TF2] Question about vaccinator's resist types.
Reply With Quote #4

PHP Code:
enum VaccinatorResistTypes
{
    
/* Enter enum value name here with respective int value, example: VaccinatorResistType_Bullet = 1 */
}; 
__________________
WildCard65 is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 08-05-2016 , 09:03   Re: [TF2] Question about vaccinator's resist types.
Reply With Quote #5

Code:
// m_nChargeResistType
enum
{
    VacResist_Bullet = 0,
    VacResist_Blast,
    VacResist_Fire
}

wth is "new 1 = VaccinatorResist_Bullet"
__________________

Last edited by Chdata; 08-05-2016 at 09:04.
Chdata is offline
Reply


Thread Tools
Display Modes

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 01:33.


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