if(%obj.getMountedImage(2).getName() $= "gc_BucketMountedImage") if(getWord(%pos,2) > getWord(%obj.getWorldBoxCenter(),2) - 3.3*getWord(%obj.getScale(),2)) %damage *= 0.9;
What I want is how to make a 100% and 200% body armor stuff
The code you posted first checks if they're wearing the armor. Then checks if you were it above the armor. Then multipliers the damage by 0.9. So if they were hurt by a weapon that deals 90 damage then 90 x 0.9 = 81. The armor just stopped 9 damage.
What do you mean? If they're protected 100% then they can't get hurt, so why go to 200%, which is the same as 100%?
if(isObject(%sourceObject.client.player)) { if(isObject(%sourceObject.client.player.getMountedImage(2))) { if(%sourceObject.client.player.getMountedImage(2).getName() $= "gc_BeretRedMountedImage") %damage *= 1.2; if(%sourceObject.client.player.getMountedImage(2).getName() $= "gc_BandanaMountedImage") %damage *= 1.1; } } parent::Damage(%this,%obj,%sourceObject,%pos,%damage,%damageType); }
He probably means that it should increase the players total health by 100/200%, so they'd have 200/300 hp while wearing the armor?
I meant attack buff
Alright, thanks. Actually wait, if the damage is multiplied by 0.X, does it decrease damage dealt or taken? Similarly, does multiplying it by 1.X increase damage or protection?