# Files

CS2D Lua Scripts [MECH] Balanced medic armor

# [MECH] Balanced medic armor

#### [MECH] Balanced medic armor

User Offline

[Mechanics] Balanced medic armor

I don't know how I got the idea... but I thought that medic armor is a bit imba: it gives you 10HP every second! In my opinion it's a lot for an armor - you heal yourself anywhere! That's why there's that small solution.

Feature:
Control how many HP a player gets when wearing medic armor!

You can even let a player lose HP by using the incredible power of math!

How to:
Install the script by dropping balanced_medic_armor.lua into /sys/lua/autorun

Now you would want to change the value, that decides about how many HP a player gets (by default 5HP/sec).
Just change the medic_armor_health variable!

Examples:
There's an easy formula to calculate how much a player will get:
10 + %your_value%

That means if medic_armor_health equals -5, a player gets just 5HP/sec because 10 + (-5) = +5

medic_armor_health = 5 (15HP/sec in total)

medic_armor_health = -11 (-1HP/sec in total)

PS: Do with that script whatever you want.

Enjoy!
Approved by GeoB99

Page
1 2

Tobey
User Offline

I would like a system that is based on how much health you already have, if that is possible, because right now it looks like an all players value... whatever, I like the idea. Also, riot is right with his mathematical shit. your shitstormery is over 9000...
mozilla1
User Offline

*avoiding from this discussion*

That is a nice idea, I agree that Medic Armor healing 10 HP/S is a lot, but this script is to simple and everyone can do it.

I know you can improve it, puting an advanced mechanic, like bleeding, injuries, etc. I can help you.

Keep your way in Lua Scripting.
I like it!
User Offline

Yates has written
And why not just do 10 - 5 = 5? I have always learned to use the quicker and easier way. It's easier to understand and write down of course.

I wrote the + to make it clearer for uber-idiots who may read it.

Will I am. For dumbs I wrote.
Yates
Reviewer Offline

@Ri0T: The +[outcome] makes no sense.

That is my point.

And why not just do 10 - 5 = 5? I have always learned to use the quicker and easier way. It's easier to understand and write down of course.

@ VADemon: I didn't even mean that, whatever. It would save use all a lot of hassle then to just drop it anyway.
User Offline

@ omg:
http://www.lua.org/cgi-bin/demo
1
```print(10 - (-5))
```

@ Yates:
Quote
So, next time Ri0T, just go fuck yourself. We would all be better off without you annoying the shit out of everyone with your stupidity.

And, yes, I exaggerated with "incredible power of math". What now? The 3rd World War?
mirkocar
User Offline

I like it!
Yates
Reviewer Offline

@ mirkocar: You said idiots, so I'm going to think you meant me as well.

Read my last post before the quotes directed to VADemon, I just explained why not to use + with an outcome. Makes no sense.

There, I edited my first quote so you might understand now.
mirkocar
User Offline

omg: Hahahaha... omfg kid, you goin' in 4. class?
10 - (-5) = +15

idiots.
I like it!
Yates
Reviewer Offline

@ mirkocar: You really are a dumb child aren't you.

I will not explain any more, you are just useless. No need to waste my time on someone that doesn't even get the point in such a simple explanation.

Ri0T has written
= +[number]

Oh are you fucking serious? Shit. This proves my point even more..

Ri0T has written
don't be smart genius

As I genius I will try not to act smart. Or is this you not understanding what you even type?

Ri0T has written
actually you're fuckin' kid.

Ha, says you who cannot even plus and minus.
edited 1×, last 03.09.12 09:15:29 pm
omg
User Offline

good job riot, 10-5=15
mirkocar
User Offline

Yates: lol
10 + (-5) = +5
10 - (-5) = +15
10 - (+5) = +5
10 + (+5) = +15

don't be smart genius, actually you're fuckin' kid.
I like it!
Yates
Reviewer Offline

@ VADemon: Did not insult you. If you felt that way then sorry, I decided to put Ri0T in his small little corner where no one gives a fuck what he says.

I do not get why you would be teached to use brackets on plus or minus. It is only required with -[number]^[number] sometimes or when you want to do something first, like (1 + 1) / 2.

And the plus thing is not mathematically correct. It would be terrible to even do it with every number above zero. It's useless and your teacher (If you still go to school) would probably not even mark it as correct.

And would you please google the word trolling. I find it annoying when someone comments on everything I do as trolling.
Raisun
User Offline

Then everyone will wear stealth suit and it will sucks.
SkullzOrig
User Offline

You want to make something more useful. Make a balanced version of the armors.
Light armor
Speed = 0% or 0/100
Protection = 25% or 25/100          -- 25% of 100hp = 125hp

Armor
Speed = -3% or -3/100
Protection = 50% or 50/100          -- 50% of 100hp = 150hp

Heavy armor
Speed = -5% or -5/100
Protection = 75% or 75/100          -- 75% of 100hp = 175hp

So armors are not so unevenly powered, and armor with more protection slows you down more.
User Offline

Quote
Why brackets?

We're teached this way.

Quote
Why plus?

Mathematically correct, so why not?

Thanks for trolling and insulting.
Yates
Reviewer Offline

@ mirkocar: Oh man, you fail in every aspect possible.

Quote
10 + (-5) = +5

Quote
(-5)

Why brackets?
Quote
+5

Why plus?

So, next time Ri0T, just go fuck yourself. We would all be better off without you annoying the shit out of everyone with your stupidity.

Thanks.
User Offline

Yates has written
This is what you call math?

Ha!

Congratulations! Now, we know you both aren't 10 years old or younger!
Raisun
User Offline

@ mirkocar: You are tottal moron.

On file: Idea is nice, but there isn't some special math. But since I didn't see any more scripts like this, you deserve a like.
mirkocar
User Offline

Yates: you're rly idiot, go learn math...
I like it!
Yates
Reviewer Offline

Quote
10 + (-5) = +5

This is what you call math?

Ha!
1 2