diff --git a/CHANGE LOG 1.0.5.txt b/CHANGE LOG 1.0.5.txt index 52652a870..153b1c2e0 100644 --- a/CHANGE LOG 1.0.5.txt +++ b/CHANGE LOG 1.0.5.txt @@ -4,6 +4,7 @@ [ADDED] Variable DZE_ForceNameTagsInTrader to force name tags in traders. @Skaronator @Fank [ADDED] Switch seats in all vehicles. @icomrade [ADDED] Self transfusions (works in vehicles) must be enabled in mission using DZE_SelfTransfuse. @icomrade +[ADDED] Default player skin for fresh spawns DZE_defaultSkin = ["Male skin","Female skin"]. @icomrade [FIXED] Instance already initialized error in server_monitor.sqf @vbawol [FIXED] Fixed infinite chainsaw fuel when put into vaults/lockboxes. @SilvDev diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 7ac0af09a..f65b063da 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -436,7 +436,7 @@ dayz_spawnArea = 200; // radius around player where we can spawn loot & Z dayz_cantseeDist = 150; // distance from which we can spawn a Z in front of any player without ray-tracing and angle checks dayz_cantseefov = 70; // half player field-of-view. Visible Z won't be spawned in front of any near players dayz_canDelete = 300; // Z, further than this distance from its "owner", will be deleted -selfTransfusionTime = -300; //time to keep for last self transfusion. +selfTransfusionTime = time; //time to keep for last self transfusion. if(isNil "DZE_SelfTransfuse") then { DZE_SelfTransfuse = false; diff --git a/SQF/dayz_code/system/player_monitor.fsm b/SQF/dayz_code/system/player_monitor.fsm index 14ae67497..a78ab9d20 100644 --- a/SQF/dayz_code/system/player_monitor.fsm +++ b/SQF/dayz_code/system/player_monitor.fsm @@ -170,7 +170,7 @@ link86[] = {76,78}; link87[] = {77,76}; link88[] = {78,57}; globals[] = {25.000000,1,0,0,0,640,480,1,143,6316128,1,-629.823975,628.807434,621.934326,-518.250671,1137,1030,1}; -window[] = {2,-1,-1,-1,-1,1018,260,1538,260,3,1155}; +window[] = {2,-1,-1,-32000,-32000,862,104,1382,104,3,1155}; *//*%FSM*/ class FSM { @@ -636,7 +636,15 @@ class FSM class Phase_One { name = "Phase_One"; - init = /*%FSM*/"dayz_playerName = name player;" \n + init = /*%FSM*/"if ((!isNil ""DZE_defaultSkin"") && _isNew && (_isInfected == 0)) then {" \n + " if (dayz_selectGender == ""Survivor2_DZ"") then {" \n + " _model = getText (configFile >> ""CfgSurvival"" >> ""Skins"" >> (DZE_defaultSkin select 0) >> ""playerModel""); //MALE" \n + " } else {" \n + " _model = getText (configFile >> ""CfgSurvival"" >> ""Skins"" >> (DZE_defaultSkin select 1) >> ""playerModel""); //FEMALE" \n + " };" \n + "};" \n + "" \n + "dayz_playerName = name player;" \n "_model call player_switchModel;" \n "" \n "gear_done= true;" \n