Remove needless logging from client scripts.

This commit is contained in:
Chris Cardozo 2018-11-27 20:45:35 -05:00
parent 4c94e9e42c
commit d52b40457d
2 changed files with 22 additions and 22 deletions

View File

@ -6,16 +6,16 @@
_hostage switchMove "";
//uisleep 0.1;
_animations = _hostage getVariable["GMSAnimations",[""]];
diag_log format["_fnc_nextAnimation: _hostage = %1 and _animations = %2",_hostage,_animations];
//diag_log format["_fnc_nextAnimation: _hostage = %1 and _animations = %2",_hostage,_animations];
_hostage switchMove (selectRandom _animations);
};
GMS_EH_onAnimationDone = {
diag_log format["GMS_EH_onAnimationDone: _this = %1",_this];
//diag_log format["GMS_EH_onAnimationDone: _this = %1",_this];
private _hostage = _this select 0;
if (alive _hostage) then
{
diag_log format["GMS_EH_onAnimationDone: _animations = %1",_hostage getVariable["GMSAnimations",[""]]];
//diag_log format["GMS_EH_onAnimationDone: _animations = %1",_hostage getVariable["GMSAnimations",[""]]];
_hostage call GMS_fnc_nextAnimation;
} else {
_hostage removeAllEventHandlers "AnimDone";
@ -23,7 +23,7 @@
};
GMS_fnc_freeHostage = {
diag_log format["fn_freeHostage: _this = %1",_this];
//diag_log format["fn_freeHostage: _this = %1",_this];
private _hostage = _this select 0;
if (_hostage getVariable["blck_unguarded",0] isEqualTo 1) then
{
@ -63,18 +63,18 @@
private _asset = _this;
_asset addEventHandler ["AnimDone", {_this call GMS_EH_onAnimationDone}];
_asset call GMS_fnc_nextAnimation;
diag_log format["_fnc_addAssetAnimations: Animation and event handler added for asset %1",_asset];
//diag_log format["_fnc_addAssetAnimations: Animation and event handler added for asset %1",_asset];
};
GMS_fnc_initHostage = {
private _hostage = _this;
_hostage call GMS_fnc_addHostageActions;
_hostage call GMS_fnc_addAssetAnimations;
diag_log format["_fnc_initHostage: hostage %1 initialized",_hostage];
//diag_log format["_fnc_initHostage: hostage %1 initialized",_hostage];
};
GMS_fnc_arrestLeader = {
diag_log format["GMS_fnc_arrestLeader: _this = %1",_this];
//diag_log format["GMS_fnc_arrestLeader: _this = %1",_this];
private _leader = _this select 0;
if (_leader getVariable["blck_unguarded",0] isEqualTo 1) then
{
@ -117,7 +117,7 @@
private _leader = _this;
_leader call GMS_fnc_addLeaderActions;
_leader call GMS_fnc_addAssetAnimations;
diag_log format["_fnc_initLeader: Leader %1 initialized",_leader];
//diag_log format["_fnc_initLeader: Leader %1 initialized",_leader];
};
if !(isServer) then
@ -281,7 +281,7 @@ if !(isServer) then
fn_handleMessage = {
//private["_event","_msg","_mission"];
diag_log format["fn_handleMessage ====] Paremeters = _this = %1",_this];
//diag_log format["fn_handleMessage ====] Paremeters = _this = %1",_this];
params["_event","_message",["_mission",""]];
//diag_log format["blck_Message ====] Paremeters _event %1 _message %2 paramter #3 %3",_event,_message,_mission];
@ -335,6 +335,6 @@ if !(isServer) then
};
};
diag_log "blck client loaded ver 4/2/18 for Version 6.81 8 PM";
diag_log "blck client loaded";
};
};

View File

@ -6,16 +6,16 @@
_hostage switchMove "";
//uisleep 0.1;
_animations = _hostage getVariable["GMSAnimations",[""]];
diag_log format["_fnc_nextAnimation: _hostage = %1 and _animations = %2",_hostage,_animations];
//diag_log format["_fnc_nextAnimation: _hostage = %1 and _animations = %2",_hostage,_animations];
_hostage switchMove (selectRandom _animations);
};
GMS_EH_onAnimationDone = {
diag_log format["GMS_EH_onAnimationDone: _this = %1",_this];
//diag_log format["GMS_EH_onAnimationDone: _this = %1",_this];
private _hostage = _this select 0;
if (alive _hostage) then
{
diag_log format["GMS_EH_onAnimationDone: _animations = %1",_hostage getVariable["GMSAnimations",[""]]];
//diag_log format["GMS_EH_onAnimationDone: _animations = %1",_hostage getVariable["GMSAnimations",[""]]];
_hostage call GMS_fnc_nextAnimation;
} else {
_hostage removeAllEventHandlers "AnimDone";
@ -23,7 +23,7 @@
};
GMS_fnc_freeHostage = {
diag_log format["fn_freeHostage: _this = %1",_this];
//diag_log format["fn_freeHostage: _this = %1",_this];
private _hostage = _this select 0;
if (_hostage getVariable["blck_unguarded",0] isEqualTo 1) then
{
@ -63,18 +63,18 @@
private _asset = _this;
_asset addEventHandler ["AnimDone", {_this call GMS_EH_onAnimationDone}];
_asset call GMS_fnc_nextAnimation;
diag_log format["_fnc_addAssetAnimations: Animation and event handler added for asset %1",_asset];
//diag_log format["_fnc_addAssetAnimations: Animation and event handler added for asset %1",_asset];
};
GMS_fnc_initHostage = {
private _hostage = _this;
_hostage call GMS_fnc_addHostageActions;
_hostage call GMS_fnc_addAssetAnimations;
diag_log format["_fnc_initHostage: hostage %1 initialized",_hostage];
//diag_log format["_fnc_initHostage: hostage %1 initialized",_hostage];
};
GMS_fnc_arrestLeader = {
diag_log format["GMS_fnc_arrestLeader: _this = %1",_this];
//diag_log format["GMS_fnc_arrestLeader: _this = %1",_this];
private _leader = _this select 0;
if (_leader getVariable["blck_unguarded",0] isEqualTo 1) then
{
@ -117,7 +117,7 @@
private _leader = _this;
_leader call GMS_fnc_addLeaderActions;
_leader call GMS_fnc_addAssetAnimations;
diag_log format["_fnc_initLeader: Leader %1 initialized",_leader];
//diag_log format["_fnc_initLeader: Leader %1 initialized",_leader];
};
if !(isServer) then
@ -281,7 +281,7 @@ if !(isServer) then
fn_handleMessage = {
//private["_event","_msg","_mission"];
diag_log format["fn_handleMessage ====] Paremeters = _this = %1",_this];
//diag_log format["fn_handleMessage ====] Paremeters = _this = %1",_this];
params["_event","_message",["_mission",""]];
//diag_log format["blck_Message ====] Paremeters _event %1 _message %2 paramter #3 %3",_event,_message,_mission];
@ -335,6 +335,6 @@ if !(isServer) then
};
};
diag_log "blck client loaded ver 4/2/18 for Version 6.81 8 PM";
diag_log "blck client loaded";
};
};