Author Topic: How does armor damage buffing work?  (Read 1841 times)

there should be a way to adjust the damage of any projectiles or whatever fired by the player. Look up the "invulnerable" player on an rtb archive; iirc it both disabled damage on the player and prevented them from damaging anyone else.
Alright, when I get the chance, I will.

To get the percentage just do

%num = 0.10;
%num *= %damage;
%damage -= %num;

This will make %damage go down by 10%.

%num = 0.10;
%num *= %damage;
%damage -= %num;
Wat

%damage *= 0.9;

Wat

%damage *= 0.9;
i think he intended to make it more clear since Space clearly doesn't have a basic background in CS

i think he intended to make it more clear since Space clearly doesn't have a basic background in CS
The only thing I know how to do tbh is just the quit(); command with the console, so I would consider it something lower than basic.
To get the percentage just do

%num = 0.10;
%num *= %damage;
%damage -= %num;

This will make %damage go down by 10%.
Alright, thanks, but I think I got a good idea that if it's *=0.9, the %damage will have 90% of original damage. Thank you for the simpler way, though!

i think he intended to make it more clear since Space clearly doesn't have a basic background in CS
You think three operations is more clear than one?

You think three operations is more clear than one?
It was to me ._.

i think he intended to make it more clear since Space clearly doesn't have a basic background in CS
This isn't even really not understanding CS. It's really just math.
a = 90
a x 0.9 = 81

%damage=90;
%damage*=0.9;
echo(%damage);  "81"

a = 90
a x 1.5 = 135

%damage=90;
%damage*=1.5;
echo(%damage);  "135"