Jump to content
Sign in to follow this  
Spozzi

ppEffect volumetric fog help!!!

Recommended Posts

Hi guys, I need some help achieving a very atmospheric "fog" effect that I pulled from a BI campaign mission "delaying the bear". I can get it to work in my mission fine, BUT my issue is it only happens around the players spawn area, but I would like to make it appear all over the island if possible so here's the code;

"colorCorrections" ppEffectAdjust [1, 1, -0.002, [0.1, 0.05, 0.0, 0.02], [1.2, 1.0, 0.8, 0.666], [0.5, 0.5, 0.5, 0.0]]; "colorCorrections" ppEffectCommit 0; "colorCorrections" ppEffectEnable true;

//light film grain

"filmGrain" ppEffectEnable true;

"filmGrain" ppEffectAdjust [0.02, 1, 1, 0.1, 1, false];

"filmGrain" ppEffectCommit 0;

_pos = position vehicle player;

_ps = "#particlesource" createVehicleLocal _pos;

// _ps setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 7, 48], "", "Billboard", 1, 10, [0, 0, -6], [0, 0, 0], 1, 1.275, 1, 0.066, [4], [[1, 1, 1, 0], [1, 1, 1, 0.05], [1, 1, 1, 0]], [0], 1, 0, "", "", _obj];

_ps setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 12, 13, 0], "", "Billboard", 1, 10, [0, 0, -6], [0, 0, 0], 1, 1.275, 1, 0, [4], [[1, 1, 1, 0], [1, 1, 1, 0.04], [1, 1, 1, 0]], [1000], 1, 0, "", "", _obj];

_ps setParticleRandom [3, [40, 40, 0], [0, 0, 0], 2, 0.5, [0, 0, 0, 0.1], 0, 0];

_ps setParticleCircle [0.1, [0, 0, 0]];

_ps setDropInterval 0.01;

while {true} do {

waituntil {vehicle player == player};

_ps setpos position vehicle player;

Please take note I am still very much a newb when it comes to scripting so please try to your replies "Homer friendly" as the Simpson's would say :D. BTW I'm executing this at the start of my init.sqf just after executing the briefing. Thanks in advance...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×