Jump to content
PSYKO_nz

working Topolka dam - CUP Terrains pond classnames?

Recommended Posts

i'm trying to get this working again...

 

http://www.armaholic.com/page.php?id=7218

 

it's from arma 2 and its awesome for missions or just a bit of immersion i'm in the early stages but, at the moment the spray works for the dam, and that's about it. i'm struggling with 2 things...

 

one... 

getting the night lights to work.. im sure this is just down to me getting the script to work right(brightness maybe?), but i may need some help with it but not just yet, i want to try crack it myself (until i get mad at it and come begging for help from you)

here it is currently

Spoiler

[    // Enable lights? (true / false)
    true,

    [
        // Color of nightlights (R,G,B) for all 3 gates.
        [1,0,0],[0,1,0],[0,0,1]
    ],

    // Gate1 open? (true / false)
    true,

    // Gate2 open? (true / false)
    true,

    // Gate3 open? (true / false)
    true,

CLAY_TopolkaDam_light1 setLightBrightness 0;

] execVM "CLAY_TopolkaDamEffects.sqf";

 

two...

this is the big one. currently the river and rocks do not work, i assume that this is down to the class names, here is the current script from arma 2
 

Spoiler

/*********************************************************************
***
***    Title: Topolka Dam Effects
***
***
***    Description: Creates water and sound effects aswell as a
***             small river with rapids at the Topolka Dam.
***
***
***    Author: Clayman    <worldofclay@gmx.de>
***
***    Version: 1.1
***
**********************************************************************/

CLAY_TopolkaDamFX = true;


_water1 = "MAP_pond_big_01" createVehicleLocal [0,0,0];
_water1 setPosASL [10315.187,3607.5203,37.4];
_water2 = "MAP_pond_big_01" createVehicleLocal [0,0,0];
_water2 setPosASL [10316.801,3538.1584,36.1];
_water3 = "MAP_pond_big_01" createVehicleLocal [0,0,0];
_water3 setPosASL [10313.91,3470.2805,36.1];
_water4 = "MAP_pond_big_28_03" createVehicleLocal [0,0,0];
_water4 setPosASL [10301.494,3397.4358,36.1];
_water5 = "MAP_pond_big_28_01" createVehicleLocal [0,0,0];
_water5 setPosASL [10306.504,3422.1577,36.1];
_water5 setDir 355;

_rock1 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock1 setPosASL [10309.365,3398.7043,5.885242];
_rock2 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock2 setPosASL [10289.212,3400.3198,12.0457];
_rock3 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock3 setPosASL [10294.988,3397.6316,5.743645];
_rock4 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock4 setPosASL [10306.603,3397.3662,8.251797];
_rock5 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock5 setPosASL [10300.585,3396.4177,10.969398];
_rock6 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock6 setPosASL [10304.021,3396.481,10.587006];
_rock7 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock7 setPosASL [10297.084,3397.292,7.810661];
_rock8 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock8 setPosASL [10290.266,3400.9587,12.590393];
_rock9 = "MAP_R2_Rock1" createVehicleLocal [0,0,0];
_rock9 setPosASL [10323.604,3570.0215,6.65696];

_boulder1 = "MAP_R2_Boulder1" createVehicleLocal [0,0,0];
_boulder1 setPosASL [10324.289,3568.2805,37.209103];
_boulder1 setDir 180;
_boulder2 = "MAP_R2_Boulder1" createVehicleLocal [0,0,0];
_boulder2 setPosASL [10321.835,3566.0767,36.486861];
_boulder3 = "MAP_R2_Boulder1" createVehicleLocal [0,0,0];
_boulder3 setPosASL [10306.476,3569.1716,36.904892];
_boulder4 = "MAP_R2_Boulder1" createVehicleLocal [0,0,0];
_boulder4 setPosASL [10307.284,3567.6069,36.230499];
_boulder4 setDir 270;
_boulder5 = "MAP_R2_Boulder1" createVehicleLocal [0,0,0];
_boulder5 setPosASL [10307.619,3569.6309,36.609241];


If (count _this == 5) Then
{
    CLAY_TopolkaDam_lights = _this select 0;

    _colors = _this select 1;
    If (count _colors == 3) Then
    {
        If (count (_colors select 0) == 3) Then
        {
            CLAY_TopolkaDam_lightCol1 = _colors select 0;
        }
        Else
        {
            CLAY_TopolkaDam_lightCol1 = [1,0,0];
        };
        If (count (_colors select 1) == 3) Then
        {
            CLAY_TopolkaDam_lightCol2 = _colors select 1;
        }
        Else
        {
            CLAY_TopolkaDam_lightCol2 = [0,1,0];
        };
        If (count (_colors select 2) == 3) Then
        {
            CLAY_TopolkaDam_lightCol3 = _colors select 2;
        }
        Else
        {
            CLAY_TopolkaDam_lightCol3 = [0,0,1];
        };
    }
    Else
    {
        CLAY_TopolkaDam_lightCol1 = [1,0,0];
        CLAY_TopolkaDam_lightCol2 = [0,1,0];
        CLAY_TopolkaDam_lightCol3 = [0,0,1];
    };

    CLAY_TopolkaDam_gate1 = _this select 2;
    CLAY_TopolkaDam_gate2 = _this select 3;
    CLAY_TopolkaDam_gate3 = _this select 4;
}
Else
{
    If (isNil "CLAY_TopolkaDam_lights") Then {CLAY_TopolkaDam_lights = true;};

    If (isNil "CLAY_TopolkaDam_lightCol1") Then {CLAY_TopolkaDam_lightCol1 = [1,0,0];};
    If (isNil "CLAY_TopolkaDam_lightCol2") Then {CLAY_TopolkaDam_lightCol2 = [0,1,0];};
    If (isNil "CLAY_TopolkaDam_lightCol3") Then {CLAY_TopolkaDam_lightCol3 = [0,0,1];};

    If (isNil "CLAY_TopolkaDam_gate1") Then {CLAY_TopolkaDam_gate1 = true;};
    If (isNil "CLAY_TopolkaDam_gate2") Then {CLAY_TopolkaDam_gate2 = true;};
    If (isNil "CLAY_TopolkaDam_gate3") Then {CLAY_TopolkaDam_gate3 = true;};
};


If (CLAY_TopolkaDam_lights) Then
{
    CLAY_TopolkaDam_light1 = "#lightpoint" createVehicleLocal [10309.4,3620,5.5];
    CLAY_TopolkaDam_light1 setLightBrightness 0.1;
    CLAY_TopolkaDam_light1 setLightColor CLAY_TopolkaDam_lightCol1;
    CLAY_TopolkaDam_light1 setLightAmbient CLAY_TopolkaDam_lightColl1;

    CLAY_TopolkaDam_light2 = "#lightpoint" createVehicleLocal [10315.5,3620,5.5];
    CLAY_TopolkaDam_light2 setLightBrightness 0.1;
    CLAY_TopolkaDam_light2 setLightColor CLAY_TopolkaDam_lightCol2;
    CLAY_TopolkaDam_light2 setLightAmbient CLAY_TopolkaDam_lightCol2;

    CLAY_TopolkaDam_light3 = "#lightpoint" createVehicleLocal [10321.9,3620,5.5];
    CLAY_TopolkaDam_light3 setLightBrightness 0.1;
    CLAY_TopolkaDam_light3 setLightColor CLAY_TopolkaDam_lightCol3;
    CLAY_TopolkaDam_light3 setLightAmbient CLAY_TopolkaDam_lightCol3;
};


[] execVM "CLAY_TopolkaDamSound.sqf";

_soundSource = "HeliHEmpty" createVehicleLocal [0,0,0];
_soundSource setPosASL [10315.187,3567.5203,36];

[_soundSource] spawn
{
    _s = _this select 0;
    while {CLAY_TopolkaDamFX} do
    {
        _s say "CLAY_WaterfallFX2";
        sleep 10;
    };
};


private ["_z", "_up"];
_z = 36.1;
_up = true;

while {CLAY_TopolkaDamFX} do
{

    If (CLAY_TopolkaDam_gate1 || CLAY_TopolkaDam_gate2 || CLAY_TopolkaDam_gate3) Then
    {
        CLAY_TopolkaDam_sound = true;
    }
    Else
    {
        CLAY_TopolkaDam_sound = false;
    };

    If (CLAY_TopolkaDam_lights) Then
    {
        If (isNull CLAY_TopolkaDam_light1) Then
        {
            CLAY_TopolkaDam_light1 = "#lightpoint" createVehicleLocal [10309.4,3620,5.5];
            CLAY_TopolkaDam_light1 setLightBrightness 0.1;
            CLAY_TopolkaDam_light1 setLightColor CLAY_TopolkaDam_lightCol1;
            CLAY_TopolkaDam_light1 setLightAmbient CLAY_TopolkaDam_lightColl1;
        };
        If (isNull CLAY_TopolkaDam_light2) Then
        {
            CLAY_TopolkaDam_light2 = "#lightpoint" createVehicleLocal [10315.5,3620,5.5];
            CLAY_TopolkaDam_light2 setLightBrightness 0.1;
            CLAY_TopolkaDam_light2 setLightColor CLAY_TopolkaDam_lightCol2;
            CLAY_TopolkaDam_light2 setLightAmbient CLAY_TopolkaDam_lightCol2;
        };
        If (isNull CLAY_TopolkaDam_light3) Then
        {
            CLAY_TopolkaDam_light3 = "#lightpoint" createVehicleLocal [10321.9,3620,5.5];
            CLAY_TopolkaDam_light3 setLightBrightness 0.1;
            CLAY_TopolkaDam_light3 setLightColor CLAY_TopolkaDam_lightCol3;
            CLAY_TopolkaDam_light3 setLightAmbient CLAY_TopolkaDam_lightCol3;
        };
    }
    Else
    {
        If (!(isNil "CLAY_TopolkaDam_light1")) Then {deleteVehicle CLAY_TopolkaDam_light1;};
        If (!(isNil "CLAY_TopolkaDam_light2")) Then {deleteVehicle CLAY_TopolkaDam_light2;};
        If (!(isNil "CLAY_TopolkaDam_light3")) Then {deleteVehicle CLAY_TopolkaDam_light3;};
    };

    If (_up) Then
    {
        If (_z < 36.2) Then
        {
            _z = _z + 0.005;
        }
        Else
        {
            _up = false;
        };
    }
    Else
    {
        If (_z > 36.1) Then
        {
            _z = _z - 0.005;
        }
        Else
        {
            _up = true;
        };
    };
    {
        _x setPosASL [getPosASL _x select 0, getPosASL _x select 1, _z];
    }
    forEach [_water2, _water3, _water4, _water5];

    If (CLAY_TopolkaDam_gate1) Then
    {
        drop ["\Ca\Data\cl_water", "", "Billboard", 1.3, 1.3, [10309.4,3620,5.5], [0,-10,0], 1, 100, 0.1, 0.1, [5,10], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", ""];
        drop ["\Ca\Data\cl_water", "", "Billboard", 1.3, 1.3, [10310.4,3620,5.5], [0,-10,0], 1, 100, 0.1, 0.1, [5,10], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", ""];
        drop ["\Ca\Data\cl_basic", "", "Billboard", 3, 3, [10309.4,3606.5,1], [0,0,0], 1, 0.25, 0.2, 0.001, [10,12], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", ""];
        drop ["\Ca\Data\cl_basic", "", "Billboard", 3, 3, [10310.4,3606.5,1], [0,0,0], 1, 0.25, 0.2, 0.001, [10,12], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", ""];
    };
    If (CLAY_TopolkaDam_gate2) Then
    {
        drop ["\Ca\Data\cl_water", "", "Billboard", 1.3, 1.3, [10314.5,3620,5.5], [0, -10, 0], 1, 100, 0.1, 0.1, [5, 10], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", ""];
        drop ["\Ca\Data\cl_water", "", "Billboard", 1.3, 1.3, [10315.5,3620,5.5], [0, -10, 0], 1, 100, 0.1, 0.1, [5, 10], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", ""];
        drop ["\Ca\Data\cl_water", "", "Billboard", 1.3, 1.3, [10316.5,3620,5.5], [0, -10, 0], 1, 100, 0.1, 0.1, [5, 10], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", ""];
        drop ["\Ca\Data\cl_basic", "", "Billboard", 3, 3, [10314.5,3606.5,1], [0,0,0], 1, 0.25, 0.2, 0.001, [10,12], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", ""];
        drop ["\Ca\Data\cl_basic", "", "Billboard", 3, 3, [10315.5,3606.5,1], [0,0,0], 1, 0.25, 0.2, 0.001, [10,12], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", ""];
        drop ["\Ca\Data\cl_basic", "", "Billboard", 3, 3, [10316.5,3606.5,1], [0,0,0], 1, 0.25, 0.2, 0.001, [10,12], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", ""];
    };
    If (CLAY_TopolkaDam_gate3) Then
    {
        drop ["\Ca\Data\cl_water", "", "Billboard", 1.3, 1.3, [10320.9,3620,5.5], [0, -10, 0], 1, 100, 0.1, 0.1, [5, 10], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", ""];
        drop ["\Ca\Data\cl_water", "", "Billboard", 1.3, 1.3, [10321.9,3620,5.5], [0, -10, 0], 1, 100, 0.1, 0.1, [5, 10], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", ""];
        drop ["\Ca\Data\cl_basic", "", "Billboard", 3, 3, [10320.9,3606.5,1], [0,0,0], 1, 0.25, 0.2, 0.001, [10,12], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", ""];
        drop ["\Ca\Data\cl_basic", "", "Billboard", 3, 3, [10321.9,3606.5,1], [0,0,0], 1, 0.25, 0.2, 0.001, [10,12], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", ""];
    };

    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-6, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-4, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-3, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-2, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-1, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [0, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [1, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [2, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [3, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [4, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [2, (3 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];

    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-6, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-5.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-4.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-4, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-3.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-3, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-2.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-2, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-1.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-1, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [-0.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [0, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [0.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [1, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [1.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [2, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [2.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [3, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [3.5, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];
    drop ["\Ca\Data\cl_water", "", "Billboard", 1, 1, [4, -(37.5 + random 1), -0.35], [0, -(5 + random 3), 0], 1, 100, 0.1, 0.1, [1, (1 + random 2)], [[1,1,1,0.9]], [0], 0.1, 0.01, "", "", _water1];

    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [-7, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [-6, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [-5, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [-4, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [-3, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [-2, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [-1, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [0, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [1, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [2, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [3, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [4, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];
    drop ["\Ca\Data\cl_basic", "", "Billboard", 2, 2, [5, -42.5, -1.35], [0, -1, 0], 1, 0.35, 0.2, 0.001, [2, 5], [[1,1,1,0.8],[1,1,1,0.4],[1,1,1,0.2],[1,1,1,0.2],[1,1,1,0.1],[1,1,1,0.1],[1,1,1,0]], [0], 0.1, 0.8, "", "", _water1];

    sleep 0.1;
};


deleteVehicle _water1;
deleteVehicle _water2;
deleteVehicle _water3;
deleteVehicle _water4;
deleteVehicle _water5;
deleteVehicle _rock1;
deleteVehicle _rock2;
deleteVehicle _rock3;
deleteVehicle _rock4;
deleteVehicle _rock5;
deleteVehicle _rock6;
deleteVehicle _rock7;
deleteVehicle _rock8;
deleteVehicle _rock9;
deleteVehicle _boulder1;
deleteVehicle _boulder2;
deleteVehicle _boulder3;
deleteVehicle _boulder4;
deleteVehicle _boulder5;
deleteVehicle _soundSource;
deleteVehicle CLAY_TopolkaDam_light1;
deleteVehicle CLAY_TopolkaDam_light2;
deleteVehicle CLAY_TopolkaDam_light3;
 

 

i assume (and have my fingers crossed) that it's just a classname issue, but i can't find the CUP terrains class names for the ponds or the rocks.

 

where would i find the cup terrains class names so i can swap them and test?

 

here is the readme for the scripts
 

Spoiler


Title:      Topolka Dam Effects (Script Version)

Author:  Clayman  <worldofclay@gmx.de>

Version: 1.1

Date:    09-09-2009


******************************


 Description:
Adds water and sound effects aswell as a small river with rapids to the Topolka Dam on Chernarus.


******************************


 Required Addons:

 * Mapfact Editor Upgrade V1.0 (MAP_EU.pbo)
   http://www.armaholic.com/page.php?id=6194


******************************


 Installation:
Copy the 'CLAY_TopolkaDamEffects.Chernarus' folder to your mission folder, e.g.

        \My Documents\ArmA2\missions or 
        \My Documents\ArmA2 Other Profiles\[profile name]\missions


******************************


 Usage:
Copy the 'description.ext', 'CLAY_TopolkaDamEffects.sqf', 'CLAY_TopolkaDamSound.sqf' and the folder 'sound' to your mission folder.
(NOTE: The included init.sqf is just an example. In this demo mission it does nothing. It's just to show you how to pass additional parameters to the script.)
To use the script, simply place the following code into an unit's init line, a trigger or a script:

    nil = [] execVM "CLAY_TopolkaDamEffects.sqf";


To deactivate the script and remove all created objects (river, rocks etc.) use:

    CLAY_TopolkaDamFX = false;


You can place a trigger around the Topolka Dam area, which starts the script whenever the player is near
and quits the script once he leaves the area:

    Size a/b: 500 / 800 (or whatever you want!)
    Activation: Everybody OR side of player (e.g. BLUFOR) OR group the trigger to the player // Repeat
    On Activation: nil = [] execVM "CLAY_TopolkaDamEffects.sqf";
    Deactivation: CLAY_TopolkaDamFX = false;

(See Demo mission!)

 Advanced:
You can pass several parameters to the script:

    [<enable lights? | bool>, [<nightlight color gate 1 | Array - RGB>, <nightlight color gate 2 | Array - RGB>, <nightlight color gate 3 | Array - RGB>], <1st gate open? | bool>, <2nd gate open? | bool>, <3rd gate open? | bool>] execVM ...

 enable lights? - Is the dam illuminated at night (true / false)
 nightlight color gate 1 / 2 / 3 - Color of the lights can be set for each of the three gates. If lights are not enabled you must at least pass empty arrays! Format is [R, G, B].
 1st / 2nd / 3rd gate open? - Each of the three gates can be opend / closed independently. (true / false)

examples:

    nil = [true, [[0,1,0], [0,0,1], [1,0,0]], true, true, true] execVM "CLAY_TopolkaDamEffects.sqf";

    nil = [false, [[], [], []], true, false, false] execVM "CLAY_TopolkaDamEffects.sqf";


Open / Close Gates:
To open / close any of the gates at any time in your mission set these global variables to true (open) or false (closed):

    CLAY_TopolkaDam_gate1
    CLAY_TopolkaDam_gate2
    CLAY_TopolkaDam_gate3


Turn Nightlights On / Off:
You can turn the nightlights on / off at any time during your mission by setting this global variable to true (lights on) or false (lights off):

    CLAY_TopolkaDam_lights

Change Color / Brightness of the nightlights:
The nightlight objects can be addressed via

    CLAY_TopolkaDam_light1
    CLAY_TopolkaDam_light2
    CLAY_TopolkaDam_light3

Use these with the 'setLightColor', 'setLightAmbient' and 'setLightBrightness' commands.
e.g.

    CLAY_TopolkaDam_light1 setLightBrightness 0;
    CLAY_TopolkaDam_light2 setLightColor [0,0,1];
    CLAY_TopolkaDam_light3 setLightAmbient [1,0,0];


******************************


 Known Bugs:

 * Overlaping water tiles sometimes look weird


******************************


 Disclaimer:
Use this whatsoever at your own risk. I take no responsibility for (im)possible damage 
to your game/system/health/relationship/life that may be caused by installation of this.

 

thanks in advance for your time and help

 

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

×