LUA unitdamaged needs weaponID!!!!

LUA unitdamaged needs weaponID!!!!

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Zpock
Posts: 1218
Joined: 16 Sep 2004, 23:20

LUA unitdamaged needs weaponID!!!!

Post by Zpock »

Code: Select all

function gadgetHandler:UnitDamaged(unitID, unitDefID, unitTeam,
                                   damage, paralyzer,
                                   attackerID, attackerDefID, attackerTeam)
As seen there's no way to know wich weapon was actually hitting. You could go trough LUACOB I guess, but that would be horribly inefficient, inconvenient and glitchyprone.

I'm planning on trying to overthrow springs damagesystem completly and make my own mechanics for it in LUA, so it's easy to add in resistances, armor, shields, damagemodifiers and whatnot.

Another workaround I would probably use is to use the standard damage as identifiers, tough this would probably be hard due to variations like the flanking damagebonuses and the like.
Post Reply

Return to “Feature Requests”