I need help understanding an array for server effects.

DangerRuss

OpenDayZ Rockstar!
using this script for a server effects which is not my own and I dont' know who the original creator was/is.

Code:
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectAdjust [2, 30, 0, [0.0, 0.0, 0.0, 0.0], [0.8*2, 0.5*2, 0.0, 0.7], [0.9, 0.9, 0.9, 0.0]];
_hndl ppEffectCommit 0;
_hndl ppEffectAdjust [1, 0.8, -0.001, [0.0, 0.0, 0.0, 0.0], [0.8*2, 0.5*2, 0.0, 0.7], [0.9, 0.9, 0.9, 0.0]];
_hndl ppEffectCommit 3;
_hndl ppEffectEnable true;
 
//--- Wind & Dust
[] spawn {
    waituntil {isplayer player};
    setwind [0.201112,0.204166,true];
    while {true} do {
        _ran = ceil random 5;
        playsound format ["wind_%1",_ran];
        _obj = vehicle player;
        _pos = position _obj;
 
        //--- Dust
            setwind [0.201112*2,0.204166*2,false];
        _velocity = [random 10,random 10,-1];
        _color = [1.0, 0.9, 0.8];
        _alpha = 0.02 + random 0.02;
        _ps = "#particlesource" createVehicleLocal _pos;
        _ps setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 12, 8], "", "Billboard", 1, 3, [0, 0, -6], _velocity, 1, 1.275, 1, 0, [9], [_color + [0], _color + [_alpha], _color + [0]], [1000], 1, 0, "", "", _obj];
        _ps setParticleRandom [3, [30, 30, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.01], 0, 0];
        _ps setParticleCircle [0.1, [0, 0, 0]];
        _ps setDropInterval 0.01;
 
        sleep (random 1);
        deletevehicle _ps;
        _delay = 10 + random 20;
        sleep _delay;
 
    };
};
 
//--- Ash
[] spawn {
    waituntil {isplayer player};
    _pos = position player;
    _parray = [
    /* 00 */        ["\Ca\Data\ParticleEffects\Universal\Universal", 16, 12, 8, 1],//"\Ca\Data\cl_water",
    /* 01 */        "",
    /* 02 */        "Billboard",
    /* 03 */        1,
    /* 04 */        4,
    /* 05 */        [0,0,0],
    /* 06 */        [0,0,0],
    /* 07 */        1,
    /* 08 */        0.000001,
    /* 09 */        0,
    /* 10 */        1.4,
    /* 11 */        [0.05,0.05],
    /* 12 */        [[0.1,0.1,0.1,1]],
    /* 13 */        [0,1],
    /* 14 */        0.2,
    /* 15 */        1.2,
    /* 16 */        "",
    /* 17 */        "",
    /* 18 */        vehicle player
    ];
    _snow = "#particlesource" createVehicleLocal _pos;
    _snow setParticleParams _parray;
    _snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0];
    _snow setParticleCircle [0.0, [0, 0, 0]];
    _snow setDropInterval 0.01;
 
    _oldPlayer = vehicle player;
    while {true} do {
        waituntil {vehicle player != _oldPlayer};
        _parray set [18,vehicle player];
        _snow setParticleParams _parray;
        _oldPlayer = vehicle player;
    };
};

I want to make the ash larger and more noticeable on the server. Looking at this here
http://community.bistudio.com/wiki/setParticleRandom
It says I need to look at this line here
Code:
_snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0];
But which one would increase the particle size? Im having trouble comparing to the wiki to this line of code. Thanks for any help
 
Code:
_snow setParticleRandom [LifetimeLength, [PositionXYZ], [VelocityXYZ], RotationVelocity, ParticleSize, [HexColor], DirectionPeriod, DirectionIntensity];

So I believe 0.01 is the value you need to change.

Also that code is originally from the Arma 2 Bonus Mission Eagle Wing where a nuke goes off.
 
Code:
_snow setParticleRandom [LifetimeLength, [PositionXYZ], [VelocityXYZ], RotationVelocity, ParticleSize, [HexColor], DirectionPeriod, DirectionIntensity];

So I believe 0.01 is the value you need to change.

Also that code is originally from the Arma 2 Bonus Mission Eagle Wing where a nuke goes off.
yea I know that's kinda what I was going for, minus the actual nuke going off.
I see how that would make sense now I'll give it a go thanks man.
 
Did you try to change it to 0.1? I have tried setting both
_snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0]; and
_snow setDropInterval 0.01; for 0.05 but it didn't really seem to help. Plus I notice if you put the
_hndl ppEffectCommit 3; on 2 instead of 3 it makes the camera not as yellow IMO, but may be I'm wrong.
 
Did you try to change it to 0.1? I have tried setting both
_snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0]; and
_snow setDropInterval 0.01; for 0.05 but it didn't really seem to help. Plus I notice if you put the
_hndl ppEffectCommit 3; on 2 instead of 3 it makes the camera not as yellow IMO, but may be I'm wrong.

Did it work for you?
Code:
    _snow = "#particlesource" createVehicleLocal _pos;
    _snow setParticleParams _parray;
    _snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.1, [0, 0, 0, 0.1], 0, 0];
    _snow setParticleCircle [0.0, [0, 0, 0]];
    _snow setDropInterval 0.07;

This is how I have mine set, wont be able to tell if it worked until next restart so I'll report back.
 
Code:
_snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.1, [0, 0, 0, 0.2], 0, 0];
tried this, was originally 0.01 and is now 0.2.. still can't see anything.. bizarre
 
Back
Top