beyond-all-reason / spring

A powerful free cross-platform RTS game engine
https://beyond-all-reason.github.io/spring/
Other
210 stars 100 forks source link

Add Lua interface for dealing team-sourced damage #1434

Open sprunk opened 5 months ago

sprunk commented 5 months ago

Bill of materials to be done before starting this ticket:


Add a Lua synced interface to deal damage which has no associated attacker unitID but is still sourced to a team (for endgame graphs and Lua callin purposes). Ideally it would be in Spring.AddUnitDamage but it already has a bunch of trash in its parameter list. Maybe impulse xyz could be shifted? A new function with a cleaner args list is fine too.