Tutorial 4 – Dayz Epoch Linux Server – Gender Select & Play as Zombie – Commands (1.0.5.1)

Here are the commands/infos used in the tutorial video (Gender Select & Play as Zombie)

Chapter 1 – How to get infected:

Get infection (by chance):
– eat raw meat
– hits from a zombie
– consume unknown food can
– player gets too cold (e.g. in water)

medical data in Character_DATA table:
e.g. [false,false,true,false,false,false,false,12000,[],[0,0],0,[0.9,53.1923]]
–> 3rd value is changed to true (player starts to cough)

Chapter 3 – Conditions:
dayz_code / system / player_monitor.fsm:

From line 586 (for Gender Selection Screen):
/*%FSM*/
class New_Character
{
priority = 5.000000;
to=”Gender_Selection”;
precondition = /*%FSM*/””/*%FSM*/;
condition=/*%FSM*/”_isNew && _isInfected == 0″/*%FSM*/;
action=/*%FSM*/””/*%FSM*/;
};

To switch off Gender Selection Screen make sure the condition gets never true: e.g. _isInfected == 10 or something like that.

From line 576 (for Play as Zombie):
/*%FSM*/
class New_Infected_Cha
{
priority = 5.000000;
to=”Player_Zombie__S”;
precondition = /*%FSM*/””/*%FSM*/;
condition=/*%FSM*/”_isNew && _isInfected == 1″/*%FSM*/;
action=/*%FSM*/””/*%FSM*/;
};

Chapter 4 – Database Change:
mysql -u root -p
(enter password )

use epoch; // use your epoch database name here

ALTER TABLE Character_DATA ADD Infected TINYINT(3) DEFAULT '0';
(default value is added to all existing table entries…Question for the DB experts: is an additional NOT NULL needed here???)

quit;

Chapter 5 – default.sqf:
cache / players / default.sqf:
,0 // as last field of the line

Chapter 6 – server_playerLogin.sqf:
dayz_server.pbo / compile / server_playerLogin.sqf:

From line 98.
//_isNew = count _primary < 7; //_result select 1; _isNew = false; _isNew = count (_primary select 3) < 1; From line 123: if (DZE_PlayerZed) then { _isInfected = _primary select 9; } else { _isInfected = 0; }; _model = _primary select 7; _hiveVer = _primary select 8; Link to the full file in the video description. Chapter 7 – server file writer.pl:
Added infected information in all functions which read/update character_data und write to .sqf
(writer.pl needs to be the version from 25th of September on Github with the JSON model fix if you may update manually.)
– init_default_player
– update_player_cache
– h_load_player
– h_player_death

Link to the full file in the video description.

Chapter 8 – mission file init.sqf:
//Default Loadout example (see DayZ Epoch Homepage: http://epochmod.gamepedia.com/Init.sqf)

DefaultMagazines = [“ItemBandage”,”ItemBandage”,”ItemPainkiller”,”FoodBeefRaw”];
DefaultWeapons = [“ItemFlashlight”,”ItemHatchet”];
DefaultBackpack = “DZ_Patrol_Pack_EP1”;
DefaultBackpackWeapon = “”;


Category: Lists of commands used

← Tutorial 4 – Dayz Epoch Linux Server – Gender Select & Play as Zombie – Commands (1.0.5.1)