mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
a0e9ec0153
-use the second set of GVARs to track adding and removing attributes. -Epoch_player* vars moved to local vars only accessible inside the master loop. -TODO: finish digest system with a config entry to control digest limits. Some extra logic is needed. Basically, when you consume some food, it will not increase your hunger level immediately but raise over time. Each of these should have limits on how much you can store in the digest and how much each tick the digest var can affect the local player var in the master loop.
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
/*
|
|
Author: Aaron Clark - EpochMod.com
|
|
|
|
Contributors:
|
|
|
|
Description:
|
|
Initalize player variables
|
|
|
|
Licence:
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
Github:
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/setup/EPOCH_clientInit.sqf
|
|
|
|
Example:
|
|
call EPOCH_clientInit;
|
|
|
|
Parameter(s):
|
|
NONE
|
|
|
|
Returns:
|
|
NOTHING
|
|
*/
|
|
EPOCH_buildMode = 0;
|
|
EPOCH_buildDirection = 0;
|
|
EPOCH_buildDirectionPitch = 0;
|
|
EPOCH_buildDirectionRoll = 0;
|
|
EPOCH_target_attachedTo = player;
|
|
EPOCH_debugMode = false;
|
|
EPOCH_snapDirection = 0;
|
|
EPOCH_stabilityTarget = objNull;
|
|
EPOCH_equippedItem_PVS = [];
|
|
EPOCH_pendingP2ptradeTarget = objNull;
|
|
EPOCH_lastNPCtradeTarget = objNull;
|
|
EPOCH_lastJumptime = diag_tickTime;
|
|
EPOCH_lastAGTime = diag_tickTime;
|
|
EPOCH_lastMineRocks = diag_tickTime;
|
|
EPOCH_target = objNull;
|
|
EPOCH_Z_OFFSET = 0;
|
|
EPOCH_X_OFFSET = 0;
|
|
EPOCH_Y_OFFSET = 5;
|
|
EPOCH_arr_snapPoints = [];
|
|
EPOCH_prevTarget = objNull;
|
|
EPOCH_interactOption = 0;
|
|
EPOCH_playerStaminaMax = 100;
|
|
|
|
{
|
|
missionNamespace setVariable [format ["EPOCH_player%1",_x],EPOCH_defaultVars select _forEachIndex];
|
|
}forEach EPOCH_customVars;
|
|
|
|
// suppress group chatter
|
|
0 fadeRadio 0;
|
|
enableSentences false;
|
|
enableRadio false;
|
|
player setVariable["BIS_noCoreConversations", true];
|