Opened 6 years ago

Last modified 5 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 Bluestone, 6 years ago

Type: defectenhancement

comment:3 by Bluestone, 6 years ago

should probably wait until #722 is fixed before doing things connected to lups

comment:4 by Bluestone, 6 years ago

Type: enhancementtask

comment:5 by beherith, 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 Bluestone, 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).

Last edited 6 years ago by Bluestone (previous) (diff)

comment:7 by beherith, 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...

Last edited 6 years ago by beherith (previous) (diff)

comment:8 by Bluestone, 6 years ago

That wouild be handy. I think defaultexplosion is a combination of magic constants and the unitdef involved in the explosion.

comment:9 by Bluestone, 5 years ago

This can only be done (properly) after #891 is fixed.

Note: See TracTickets for help on using tickets.