Opened 7 years ago
Last modified 6 years ago
#645 new task
replace CEGs &/ write lua replacement for defaultexplosiongenerator
Reported by: | Bluestone | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | BAR | Version: | |
Keywords: | Cc: |
Description
Change History (9)
comment:1 by , 7 years ago
Type: | defect → enhancement |
---|
comment:3 by , 7 years ago
comment:4 by , 6 years ago
Type: | enhancement → task |
---|
comment:5 by , 6 years ago
Please avoid using lua where perfectly usable engine functionality exists. I might be ignorant, but i see no need for lua in this case.
comment:6 by , 6 years ago
I thought this was your idea?!
But - I think that this is only way to replace the engines crazily expensive smoke effect with cheaper ones. I don't think usedefaultexplosions does much else besides smoke, but nix probably knows better than I. I didn't look at it yet.
All a lua replace would do is run in XXXdefs_post and recreate params previously created by usedefaultexplosions, so there is no perf cost associated (apart from the exposions themselves, which would be strictly cheaper).
comment:7 by , 6 years ago
Sorry, i misunderstood your intent.
Usedefaultexplosions will not actually generate CEG's, the engine does this through 'magic' constants. I can link to the relevant source files, as I have read them once...
comment:8 by , 6 years ago
That wouild be handy. I think defaultexplosion is a combination of magic constants and the unitdef involved in the explosion.
should probably wait until #722 is fixed before doing things connected to lups