move karma and upgrade community stats coding

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-09-24 12:26:11 -05:00
parent 3b11fc7f75
commit 2f292d889a
2 changed files with 16 additions and 7 deletions

View File

@ -78,12 +78,11 @@ EPOCH_customVarCount = count EPOCH_customVars;
// Init Community Stats // Init Community Stats
EPOCH_communityStats = []; EPOCH_communityStats = [];
EPOCH_defaultStatVars = []; EPOCH_defaultStatVars = [];
EPOCH_communityStatsLimits = [];
_communityStatsInit = ["CfgEpochClient", "defineCommunityStats", []] call EPOCH_fnc_returnConfigEntryV2; _communityStatsInit = ["CfgEpochClient", "defineCommunityStats", []] call EPOCH_fnc_returnConfigEntryV2;
EPOCH_communityStatsDefaults = _communityStatsInit; EPOCH_communityStats = _communityStatsInit apply {_x param [0,""]};
{ EPOCH_defaultStatVars = _communityStatsInit apply {_x param [1,0]};
EPOCH_communityStats pushBack (_x select 0); EPOCH_communityStatsLimits = _communityStatsInit apply {_x param [2,[]]};
EPOCH_defaultStatVars pushBack (_x select 1);
} forEach _communityStatsInit;
EPOCH_communityStatsCount = count EPOCH_communityStats; EPOCH_communityStatsCount = count EPOCH_communityStats;
//GroupSize (number) // Price (String) //GroupSize (number) // Price (String)

View File

@ -106,8 +106,6 @@ class CfgEpochClient
{"Nuisance",0,{100,0}}, {"Nuisance",0,{100,0}},
{"MissionArray",{},{}} {"MissionArray",{},{}}
}; };
// add any stats and their starting number here for better community integration and neat stats tracking too!
defineCommunityStats[] = {{"Murders",0},{"Deaths",0},{"Suicides",0},{"Revives",0},{"TraderMissions",0},{"AIKills",0},{"AntagonistKills",0},{"ZombieKills",0}};
hudConfigs[] = { hudConfigs[] = {
{{"BloodP","","",{"getPlayerDamage",">=",0.7}},"topRight","x\addons\a3_epoch_code\Data\UI\bleeding_ca.paa",{"forceUpdate"}}, {{"BloodP","","",{"getPlayerDamage",">=",0.7}},"topRight","x\addons\a3_epoch_code\Data\UI\bleeding_ca.paa",{"forceUpdate"}},
{{"Oxygen","getPlayerOxygenRemaining","",{},{1,0,2,2,1,0.55}},"topRight","x\addons\a3_epoch_code\Data\UI\oxygen_ca.paa"}, {{"Oxygen","getPlayerOxygenRemaining","",{},{1,0,2,2,1,0.55}},"topRight","x\addons\a3_epoch_code\Data\UI\oxygen_ca.paa"},
@ -120,6 +118,18 @@ class CfgEpochClient
{"Radiation","topRight","x\addons\a3_epoch_code\Data\UI\rads_ca.paa"}, {"Radiation","topRight","x\addons\a3_epoch_code\Data\UI\rads_ca.paa"},
{{"HitPoints","getPlayerHitPointDamage","HitLegs"},"topRight","x\addons\a3_epoch_code\Data\UI\broken_ca.paa"} {{"HitPoints","getPlayerHitPointDamage","HitLegs"},"topRight","x\addons\a3_epoch_code\Data\UI\broken_ca.paa"}
}; };
defineCommunityStats[] = {
// EPOCH_total + varName, starting value, {min,max or custom values array}
{"Karma",0,{-50000,50000}},
{"Murders",0,{}},
{"Deaths",0,{}},
{"Suicides",0,{}},
{"Revives",0,{}},
{"TraderMissions",0,{}},
{"AIKills",0,{}},
{"AntagonistKills",0,{}},
{"ZombieKills",0,{}}
};
group_upgrade_lvl[] = {4,"1000",6,"1500",8,"2000",10,"2500",12,"3000",14,"3500",16,"4000",32,"8000",64,"16000"}; // controls max group limit and cost group_upgrade_lvl[] = {4,"1000",6,"1500",8,"2000",10,"2500",12,"3000",14,"3500",16,"4000",32,"8000",64,"16000"}; // controls max group limit and cost
// Event handler code // Event handler code
displayAddEventHandler[] = {"keyDown","keyUp"}; displayAddEventHandler[] = {"keyDown","keyUp"};