Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Weapons and armors damages
|
Author |
Message |
XuN
Sphere Developer
Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30
|
RE: Weapons and armors damages
(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.
|
|
04-09-2015 04:41 PM |
|
The following 1 user Likes XuN's post:1 user Likes XuN's post
Hayur (04-14-2015)
|
User(s) browsing this thread: 3 Guest(s)