If someone wants to tweak it, they first should know how to launch the balance mod in command line (with the /init flag).
Then, you can edit the faforever.prw file in gamedata. It's a zip file.
You actually need to alter :
- lua/EffectTemplates.luaIt's currently splitted in two : after line 4313, these are the new template effects that override some original ones. That's the main thing.
Each unit use his own FX, and you can add/remove effects to the list.
ie:
- Code: Select all
DefaultWreckageEffectsSml01 = TableCat( SmokePlumeLightDensityMed01, SmokePlumeMedDensitySml01, SmokePlumeMedDensitySml02, SmokePlumeMedDensitySml03 )
DefaultWreckageEffectsSml01 is used for small units wreckage.
SmokePlumeLightDensityMed01, SmokePlumeMedDensitySml01, SmokePlumeMedDensitySml02, SmokePlumeMedDensitySml03 are four layers of smoke.
Second file is lua/sim/unit.lua.In this big file, you can alter some functions :
- Code: Select all
CreateDestructionEffects = function( self, overKillRatio )
That's the function called to create the effects.
as you can read into it, it use a random calls to select randomly between several effects.
- Code: Select all
DeathThread = function( self, overkillRatio, instigator)
This is the calls to CreateDestructionEffects, then CreateUnitDestructionDebris for the debris.
then lua/defaultexplosions.lua.This file is the script that create all the explosions, create the debris, shake the camera,...
Finally, the effects themselves :
effects\emitters\ These files are overriding or adding effects blueprint. (the swirl files are for the SCU teleport).
effects\Entities\ the DebrisMisc folders are for the debris.
\projectiles\FireSparks and \projectiles\ShellRiotTerran01 are two new effects for projectiles.