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

True Armor


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   Emp` (115)
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-25-2008 , 21:24   True Armor
Reply With Quote #1

True Armor
Depletes Armor Before Health

Info:
. Simply buy armor, when damaged your armor will go down.
. When it runs out, your health will go down.

. Percent Armor Protection is how much damage the armor protects.
. If you are damaged with 30 damage, and ta_perc = 0.5 then 60 damage is dealt to the armor.

CVARS:
. ta_on (def: 1) - enables the plugin
. ta_perc (def: 1.0) - percent armor protection

Requires:
. Fun
. Hamsandwich

Changelog:
. 1.1:
- Added percent cvar.

. 1.1a:
- Fixed bug Simon Logic reported.
Attached Files
File Type: sma Get Plugin or Get Source (truearmor.sma - 2280 views - 1.4 KB)
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."

Last edited by soccdoodcss; 06-18-2008 at 18:03.
soccdoodcss is offline
Send a message via AIM to soccdoodcss
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 04-25-2008 , 21:48   Re: True Armor
Reply With Quote #2

I was working on this, lol. And your code is so similar to mine.

Good job anyway.
BOYSplayCS is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-25-2008 , 21:52   Re: True Armor
Reply With Quote #3

Sorry, just made it in a couple minutes. Wanted it for my server, thought I'd post it. Feel free to give me more ideas / code and I can give you credit if you want.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 04-25-2008 , 21:57   Re: True Armor
Reply With Quote #4

I started it about ten minutes ago. No need for credit, you finished first, not a long code

;)
BOYSplayCS is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-25-2008 , 22:21   Re: True Armor
Reply With Quote #5

Fail.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-25-2008 , 22:40   Re: True Armor
Reply With Quote #6

That one doesn't have a percent cvar like mine.

Edit: Also, in that version you can still die when you aren't supposed to. Mine checks damage, changes it, the removes it from the armor. While his takes the damage, calculates what it should be, then adds the health back and removes it from the armor.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."

Last edited by soccdoodcss; 04-25-2008 at 22:46.
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-25-2008 , 22:59   Re: True Armor
Reply With Quote #7

Yes it does.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Old 04-25-2008, 23:14
soccdoodcss
This message has been deleted by soccdoodcss.
Old 04-25-2008, 23:28
BOYSplayCS
This message has been deleted by BOYSplayCS. Reason: Then, never mind.
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-25-2008 , 23:30   Re: True Armor
Reply With Quote #8

I don't know what all that was about, but thank you for the approval.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
cs1.6
Senior Member
Join Date: Dec 2006
Old 04-26-2008 , 00:04   Re: True Armor
Reply With Quote #9

also there is q3 armor (allready).

Q3 Armour v1.0.1


I think the one of SimonLogic is most versatile though.
cs1.6 is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-26-2008 , 00:11   Re: True Armor
Reply With Quote #10

Yea his is well done, but is a bit more advanced, and still doesn't have the percent like mine. His is more specific, mine is for general use, more or less.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
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 15:46.


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