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

How to fix the CSGO's max armor is 127 ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wangningyu
Member
Join Date: Dec 2011
Location: China.GuangDong
Old 12-31-2012 , 13:53   How to fix the CSGO's max armor is 127 ?
Reply With Quote #1

I test many times, I found the CSGO's max armor is 127.

if big than this , it will be wrong like negative number.

How to fix this ?

Thanks for your reply !

Happy New Years !







__________________
One Code , One Dream !

Last edited by wangningyu; 12-31-2012 at 13:59.
wangningyu is offline
wangningyu
Member
Join Date: Dec 2011
Location: China.GuangDong
Old 12-31-2012 , 13:58   Re: How to fix the CSGO's max armor is 127 ?
Reply With Quote #2

may be it used "signed char" ??

^_^
__________________
One Code , One Dream !
wangningyu is offline
wangningyu
Member
Join Date: Dec 2011
Location: China.GuangDong
Old 01-03-2013 , 00:31   Re: How to fix the CSGO's max armor is 127 ?
Reply With Quote #3

is there anybody can help me ?

thanks !
__________________
One Code , One Dream !
wangningyu is offline
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 01-03-2013 , 05:13   Re: How to fix the CSGO's max armor is 127 ?
Reply With Quote #4

Well, what do you want to do? If you are using a plugin to augment a player's armor value, then you could manage the player's armor value in the scope of the plugin, and just add to a player's armor (up to the maximum allowed value of 127) whenever they get hurt. Something like:

Plugin sets player 1's armor to "250".
-Make player 1's actual armor 127.
-Plugin tracks an additional 123 armor.

Player 1 takes 8 armor damage.
-Plugin adds 8 armor to player 1 so that they have 127 armor.
-Plugin tracks an additional 115 armor (subtract the 8).
__________________

Last edited by Sheepdude; 01-03-2013 at 05:14.
Sheepdude 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 03:30.


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