Raised This Month: $ Target: $400
 0% 

funny consequences [armor problem]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 07-25-2013 , 17:19   funny consequences [armor problem]
Reply With Quote #1

Im my plugin I use armor calculations. so it takes 2/3 of damage like this

Code:
  

iDamage = DAMAGE / 3
set_pev(i, pev_armorvalue,Armor-floatround(damage) / 1.5)
as you see if some one dealt 100 damage to me, 100/3=33.33 , I would have - 100-33=77hp
and armor 100-66=33.

the problem is when damage is too high (100-120) and I have Low armor (10-30) after hit I have armor with negative values like -20, -30 ...
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 07-25-2013 at 17:57.
avril-lavigne is offline
 



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:23.


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