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

need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exstream
Member
Join Date: Feb 2013
Old 08-28-2013 , 01:05   need help
Reply With Quote #1

the zombies do damage when thay hit you
whare am I messing up
Attached Files
File Type: txt armor.txt (3.2 KB, 129 views)
exstream is offline
Doodil
Senior Member
Join Date: Mar 2012
Old 08-28-2013 , 03:27   Re: need help
Reply With Quote #2

you didn't post the whole source, but my guess is, that "DamageResistance" and "pourcent" are ints and not floats, therefore have no decimal point and "pourcent = DamageResistance / 100" will always evaluate to 0. This will result in the plugin never decreasing the base damage, since "intdamage =* 0" is 0, "maxdamage -= intdamage" is maxdamage and everything pretty much stays the same.

Try "new:Float DamageResistance" and "new:Float pourcent" instead.
Doodil is offline
exstream
Member
Join Date: Feb 2013
Old 08-28-2013 , 09:25  
Reply With Quote #3

here is the hole thing

sorry to say that new:Float DamageResistance" and "new:Float pourcent did not work thanks for the help the zombies still do damage throw the armor

the only problem I see is dammage is on some of the line but I fixed that and still does not work in l4d2
Attached Files
File Type: txt Armor_pack_V6_3.txt (13.2 KB, 105 views)

Last edited by exstream; 08-30-2013 at 19:40. Reason: learn to use the damn edit button. merged triple post.
exstream is offline
exstream
Member
Join Date: Feb 2013
Old 08-31-2013 , 00:33   Re: need help
Reply With Quote #4

got it working http://forums.alliedmods.net/showthr...=218844&page=8
exstream 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 19:09.


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