SphereCommunity
Weapons and armors damages - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: General Discussion (/Forum-General-Discussion)
+--- Forum: Help Wanted (/Forum-Help-Wanted)
+--- Thread: Weapons and armors damages (/Thread-Weapons-and-armors-damages)



Weapons and armors damages - Hayur - 04-09-2015 07:42 AM

Is there any way to change the damages taken by armors and weapons using last nigthly with elemental engine.?


RE: Weapons and armors damages - XuN - 04-09-2015 04:41 PM

(Asuming you are talking about the damages, and for explanation to everyone else)
Elemental Engine was meant to be as accurate as possible in matching OSI's calculations so there's no way to directly change it, you still have however a copy of combat (a bit outdated now with all recent changes made in the source) in sphere_combat.scp so you can still have same calculations than Sphere but scripted.

I'm not going to update it again until Coruja marks as finished the combat system, I don't have enough time to waste it scripting what can be changed tomorrow. But if anyone wants to know current formulas we can reply here.

If you are talking about weapons and armors being damaged (so they have to be repaired later) there are 2 new locals:
Code:
Changed: Softcoded ItemDamageCombat / ItemDamageCombatIncrease .ini settings, the chance to get items damaged on combat now can be fully scripted using LOCAL.ItemDamageChance (value range: 0~100) on triggers @Hit (weapon) / @GetHit (armor).

This means the @Hit (for weapons) and @GetHit (for armor) have a local.ItemDamageChange (default is 40%) which tell Sphere the chance of being damaged, you can also change the hitpoints of damage received in the @Damage trigger.


RE: Weapons and armors damages - Hayur - 04-14-2015 03:54 PM

Thank you very much for the info Smile