Modme Forums

Change worldfog

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: mathfag

How to change banks through script for volume_worldfog and volume_litfog?

I tried

SetWorldFogActiveBank(2);

but that crashes the game


ModmeBot:

Reply By: natesmithzombies

I have not tested myself but it looks like the function you mean to use is:

void SetVolFog(<startdist>,<halfwaydist>,<halfwayheight>,<baseheight>,<red>,<green>,<blue>,<transition time="">,<startdist>,<halfwaydist>,<halfwayheight>,<baseheight>,<red>,<green>,<blue>,<fogcolorscale>,<sunfogred>,<sunfoggreen>,<sunfogblue>,<sunfogdirx>,<sunfogdiry>,<sunfogdirz>,<sunfogstartang>,<sunfogendang>,<fog max="" opacity="">,<transition time="">)

[MANDATORY] <startdist> The distance, in world units, at which the fog begins.
[MANDATORY] <halfwaydist> The distance at which the scene will be 50% fogged.
[MANDATORY] <halfwayheight> The height at which the scene will be 50% fogged.
[MANDATORY] <baseheight> The ground-level Z position at which the fog will start from.
[MANDATORY] <red> The red component of the fog as a value between 0.0 and 1.0
[MANDATORY] <green> The green component of the fog as a value between 0.0 and 1.0
[MANDATORY] <blue> The blue component of the fog as a value between 0.0 and 1.0
[MANDATORY] <transition time=""> transition time in seconds
[MANDATORY] <startdist> The distance, in world units, at which the fog begins.
[MANDATORY] <halfwaydist> The distance at which the scene will be 50% fogged.
[MANDATORY] <halfwayheight> The height at which the scene will be 50% fogged.
[MANDATORY] <baseheight> The ground-level Z position at which the fog will start from.
[MANDATORY] <red> The red component of the fog as a value between 0.0 and 1.0
[MANDATORY] <green> The green component of the fog as a value between 0.0 and 1.0
[MANDATORY] <blue> The blue component of the fog as a value between 0.0 and 1.0
[MANDATORY] <fogcolorscale> The scaler for the colors as a value between 1 and 10000.0
[MANDATORY] <sunfogred> The red component of the fog as a value between 0.0 and 1.0
[MANDATORY] <sunfoggreen> The green component of the fog as a value between 0.0 and 1.0
[MANDATORY] <sunfogblue> The blue component of the fog as a value between 0.0 and 1.0
[MANDATORY] <sunfogdirx> The X component of the fog direction as a value between -1.0 and 1.0
[MANDATORY] <sunfogdiry> The Y component of the fog direction as a value between -1.0 and 1.0
[MANDATORY] <sunfogdirz> The Z component of the fog direction as a value between -1.0 and 1.0
[MANDATORY] <sunfogstartang> The starting angle of the sun fog as a value between 0 and 180
[MANDATORY] <sunfogendang> The ending angle of the sun fog as a value between 0 and 180
[MANDATORY] <fog max="" opacity=""> The maximum opacity of the fog as a value between 0 and 1
[MANDATORY] <transition time=""> transition time in seconds
CATEGORY: 
CLIENT/SERVER: Server
SUMMARY: Creates an exponential fog.
EXAMPLE: SetVolFog(0.0001144, 0.01, 131/255, 116/255, 71/255, 0)
</transition></fog></sunfogendang></sunfogstartang></sunfogdirz></sunfogdiry></sunfogdirx></sunfogblue></sunfoggreen></sunfogred></fogcolorscale></blue></green></red></baseheight></halfwayheight></halfwaydist></startdist></transition></blue></green></red></baseheight></halfwayheight></halfwaydist></startdist></transition></fog></sunfogendang></sunfogstartang></sunfogdirz></sunfogdiry></sunfogdirx></sunfogblue></sunfoggreen></sunfogred></fogcolorscale></blue></green></red></baseheight></halfwayheight></halfwaydist></startdist></transition></blue></green></red></baseheight></halfwayheight></halfwaydist></startdist>


ModmeBot:

Reply By: mathfag

natesmithzombies

I have not tested myself but it looks like the function you mean to use is:

void SetVolFog(,,,,,,,,,,,,,,,,,,,,,,,,,)

[MANDATORY]  The distance, in world units, at which the fog begins.
[MANDATORY]  The distance at which the scene will be 50% fogged.
[MANDATORY]  The height at which the scene will be 50% fogged.
[MANDATORY]  The ground-level Z position at which the fog will start from.
[MANDATORY]  The red component of the fog as a value between 0.0 and 1.0
[MANDATORY]  The green component of the fog as a value between 0.0 and 1.0
[MANDATORY]  The blue component of the fog as a value between 0.0 and 1.0
[MANDATORY]  transition time in seconds
[MANDATORY]  The distance, in world units, at which the fog begins.
[MANDATORY]  The distance at which the scene will be 50% fogged.
[MANDATORY]  The height at which the scene will be 50% fogged.
[MANDATORY]  The ground-level Z position at which the fog will start from.
[MANDATORY]  The red component of the fog as a value between 0.0 and 1.0
[MANDATORY]  The green component of the fog as a value between 0.0 and 1.0
[MANDATORY]  The blue component of the fog as a value between 0.0 and 1.0
[MANDATORY]  The scaler for the colors as a value between 1 and 10000.0
[MANDATORY]  The red component of the fog as a value between 0.0 and 1.0
[MANDATORY]  The green component of the fog as a value between 0.0 and 1.0
[MANDATORY]  The blue component of the fog as a value between 0.0 and 1.0
[MANDATORY]  The X component of the fog direction as a value between -1.0 and 1.0
[MANDATORY]  The Y component of the fog direction as a value between -1.0 and 1.0
[MANDATORY]  The Z component of the fog direction as a value between -1.0 and 1.0
[MANDATORY]  The starting angle of the sun fog as a value between 0 and 180
[MANDATORY]  The ending angle of the sun fog as a value between 0 and 180
[MANDATORY]  The maximum opacity of the fog as a value between 0 and 1
[MANDATORY]  transition time in seconds
CATEGORY: 
CLIENT/SERVER: Server
SUMMARY: Creates an exponential fog.
EXAMPLE: SetVolFog(0.0001144, 0.01, 131/255, 116/255, 71/255, 0)

not what i meant but it'll work