Option to force Gender on Spawn

This commit is contained in:
He-Man 2019-10-12 16:40:59 +02:00
parent 06a467cd11
commit 3a8b3f3fcd
2 changed files with 7 additions and 1 deletions

View File

@ -1295,7 +1295,12 @@ class FSM
{ {
name = "Open_Gender_Selection"; name = "Open_Gender_Selection";
itemno = 78; itemno = 78;
init = /*%FSM<STATEINIT""">*/"createdialog ""SelectGender"";"/*%FSM</STATEINIT""">*/; init = /*%FSM<STATEINIT""">*/"_forcegender = [""CfgEpochClient"", ""ForceGender"", """"] call EPOCH_fnc_returnConfigEntryV2;" \n
"switch (tolower _forcegender) do {" \n
" case ""male"": {EPOCH_PlayerIsMale = true;};" \n
" case ""female"": {EPOCH_PlayerIsMale = false;};" \n
" default {createdialog ""SelectGender""}" \n
"};"/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/; precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links class Links
{ {

View File

@ -17,6 +17,7 @@ class CfgEpochClient
epochVersion = "1.3.2"; epochVersion = "1.3.2";
ArmAVersion = 176; ArmAVersion = 176;
debug = "true"; // true = enable extra rpt debug lines, false to disable debug = "true"; // true = enable extra rpt debug lines, false to disable
ForceGender = ""; // Force Players to spawn as "Male" or "Female"
UseOldRevive = "false"; // Revive / Heal Player has been changed to use "HandleDamage" Eventhandler. If scripts are breaking it for you, set it to true (not recommended!) UseOldRevive = "false"; // Revive / Heal Player has been changed to use "HandleDamage" Eventhandler. If scripts are breaking it for you, set it to true (not recommended!)
UnconsciousChance = 30; // Change in percent to get unconscious by a hit with an Axe / Sledge / Sword UnconsciousChance = 30; // Change in percent to get unconscious by a hit with an Axe / Sledge / Sword