Earthquake

Try it by exactly deleting this part and look what will happen.

Code:
ErrorMessage: File ca\missions_EW\campaign\description_mission.hpp, line 791: .CfgIdentities: Member already defined.
12:27:11 NetServer::finishDestroyPlayer(1106668340): DESTROY immediately after CREATE, both cancelled
12:31:06 NetServer::finishDestroyPlayer(1286563330): DESTROY immediately after CREATE, both cancelled
12:31:35 NetServer::finishDestroyPlayer(332754095): DESTROY immediately after CREATE, both cancelled
12:33:35 NetServer::finishDestroyPlayer(2132089375): DESTROY immediately after CREATE, both cancelled

;(

Code:
respawn = "BASE";
respawndelay = 5;
onLoadMission= "DayZ Epoch Chernarus";
OnLoadIntro = "Welcome to DayZ Epoch Chernarus";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[]={1,2,6};
enableItemsDropping = 0;
#include "R3F_Realism\R3F_Weight\R3F_CfgWeight.h"
#include "addons\SARGE\SAR_define.hpp"
#include "\ca\missions_EW\campaign\description_mission.hpp"
 
 
onPauseScript = "\z\addons\dayz_code\compile\player_onPause.sqf";
loadScreen = "\z\addons\dayz_code\gui\dayz_logo_ca.paa";
 
class Header
{
gameType = COOP;            //DM, Team, Coop, ...
minPlayers = 1;            //min # of players the mission supports
maxPlayers = 100;            //Max # of players the mission supports
};
 
aiKills = 1;
diagRadio = 1;
diagHit = 1;
 
 
class RscPicture
{
    access=0;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="TahomaB";
    sizeEx=0;
    lineSpacing=0;
    text="";
};
class RscLoadingText : RscText
{
    style = 2;
    x = 0.323532;
    y = 0.666672;
    w = 0.352944;
    h = 0.039216;
    sizeEx = 0.03921;
    colorText[] = {0.543,0.5742,0.4102,1.0};
};
class RscProgress
{
    x = 0.344;
    y = 0.619;
    w = 0.313726;
    h = 0.0261438;
    texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
    colorFrame[] = {0,0,0,0};
    colorBar[] = {1,1,1,1};
};
class RscProgressNotFreeze
{
    idc = -1;
    type = 45;
    style = 0;
    x = 0.022059;
    y = 0.911772;
    w = 0.029412;
    h = 0.039216;
    texture = "#(argb,8,8,3)color(0,0,0,0)";
};
//
// the loading screen itself
//
class DayZ_loadingScreen
{
    idd = -1;
    duration = 10e10;
    fadein = 0;
    fadeout = 0;
    name = "loading screen";
    class controlsBackground
    {
        class blackBG : RscText
        {
            x = safezoneX;
            y = safezoneY;
            w = safezoneW;
            h = safezoneH;
            text = "";
            colorText[] = {0,0,0,0};
            colorBackground[] = {0,0,0,1};
        };
        /*
        class nicePic : RscPicture
        {
            style = 48 + 0x800; // ST_PICTURE + ST_KEEP_ASPECT_RATIO
            x = safezoneX + safezoneW/2 - 0.25;
            y = safezoneY + safezoneH/2 - 0.2;
            w = 0.5;
            h = 0.4;
            text = "img\nicePic.paa";
        };
        */
    };
    class controls
    {
        class Title1 : RscLoadingText
        {
            text = "$STR_LOADING"; // "Loading" text in the middle of the screen
        };
        class CA_Progress : RscProgress // progress bar, has to have idc 104
        {
            idc = 104;
            type = 8; // CT_PROGRESS
            style = 0; // ST_SINGLE
            texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
        };
        class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse
        {
            idc = 103;
        };
        class Name2: RscText // the text on the top-left
        {
            idc = 101;
            x = 0.05;
            y = 0.029412;
            w = 0.9;
            h = 0.04902;
            text = "";
            sizeEx = 0.05;
            colorText[] = {0.543,0.5742,0.4102,1.0};
        };
    };
};
 
Code:
ErrorMessage: File ca\missions_EW\campaign\description_mission.hpp, line 791: .CfgIdentities: Member already defined.
12:27:11 NetServer::finishDestroyPlayer(1106668340): DESTROY immediately after CREATE, both cancelled
12:31:06 NetServer::finishDestroyPlayer(1286563330): DESTROY immediately after CREATE, both cancelled
12:31:35 NetServer::finishDestroyPlayer(332754095): DESTROY immediately after CREATE, both cancelled
12:33:35 NetServer::finishDestroyPlayer(2132089375): DESTROY immediately after CREATE, both cancelled

ask Sarge at his Support Forum for help, he is using class CfgIdentities in his SAR_define.hpp

Code:
 class CfgIdentities {
    class id_SAR {
        name = "Rincewind";
        face = "Face85";
        glasses = "None";
        speaker = "NoVoice";
        pitch = 1.00;
    };
    class id_SAR_band : id_SAR {
        name = "Cohen the Barbarian";
        face = "Face101";
    };
    class id_SAR_sold_lead : id_SAR {
        name = "Sarge";
        face = "Face89";
        glasses = "BlackSun";
    };
    class id_SAR_sold_man : id_SAR {
        face = "Face66";
    };
    class id_SAR_surv_lead : id_SAR {
        name = "Max Hero";
        face = "Face04_baf";
        glasses = "Sunglasses";     
    };
    class id_SAR_surv_man : id_SAR {
        name = "John Bambi";
        face = "Face02";
    };
};
 
What does sleep do? and what does random do? random higher or lower? And the same for sleep.

180 represents 3 minutes, the interval between earthquakes. If you want to increase that interval, just need to bump up the number a bit.
 
is there a way to make that server side? so player get that at the same time?
I would like to know if this is possible as well.

Would be kind of lame if you were to play with a group of people and only one of them can experience this earthquake while the others are like "meh?".
 
Back
Top