Remove OEMPos variable

I do not see any use for this variable any longer. Ive tested building, upgrading lock/unlock objects. It seems it has no affect and can be replaced with the normal getPosATL from objects.
This commit is contained in:
A Man
2022-03-26 14:53:12 +01:00
parent cf6ca366d3
commit fc6680c360
8 changed files with 7 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ _typeOf = typeOf _object;
if !(_typeOf in DZE_unlockedStorage) exitWith {diag_log "server_changeCode called with invalid storage object!"};
_lockedClass = getText (configFile >> "CfgVehicles" >> _typeOf >> "lockedClass");
_pos = _object getVariable ["OEMPos",getPosATL _object];
_pos = getPosATL _object;
_dir = getDir _object;
_vector = [vectorDir _object, vectorUp _object];
_charID = _object getVariable ["CharacterID","0"];
@@ -49,7 +49,6 @@ _holder setVariable ["memDir",_dir,true];
_holder setVectorDirAndUp _vector;
_holder setPosATL _pos;
_holder setVariable ["CharacterID",_characterID,true];
_holder setVariable ["OEMPos",_pos,true];
_ownerPUID = if (_charID == "0000" || _charID == "10000") then {_playerUID} else {_ownerID};
_worldSpace = [_dir,_pos,_ownerPUID,_vector];

View File

@@ -6,7 +6,7 @@ _status = _this select 2;
_name = ["Dead Player",name _player] select (alive _player);
_type = typeOf _obj;
_pos = _obj getVariable ["OEMPos",getPosATL _obj];
_pos = getPosATL _obj;
_dir = direction _obj;
_vector = [vectorDir _obj, vectorUp _obj];
_charID = _obj getVariable ["CharacterID","0"];
@@ -72,7 +72,6 @@ call {
_holder setVariable ["CharacterID",_charID,true];
_holder setVariable ["ObjectID",_objectID];
_holder setVariable ["ObjectUID",_objectUID];
_holder setVariable ["OEMPos",_pos,true];
_holder setDamage _damage;
_holder setVariable ["ownerPUID",_ownerID,true];
if (_isZSC && {_unlockedClass in DZE_MoneyStorageClasses}) then {_holder setVariable ["cashMoney",_coins,true];};
@@ -100,7 +99,6 @@ call {
_holder setVariable ["CharacterID",_charID,true];
_holder setVariable ["ObjectID",_objectID];
_holder setVariable ["ObjectUID",_objectUID];
_holder setVariable ["OEMPos",_pos,true];
_holder setDamage _damage;
_holder setVariable ["ownerPUID",_ownerID,true];
if (_isZSC && {_lockedClass in DZE_MoneyStorageClasses}) then {_holder setVariable ["cashMoney",_coins,true];};

View File

@@ -69,8 +69,6 @@ if (!_allowed || !_proceed) exitWith {
// Publish variables
_object setVariable ["CharacterID",_charID,true];
_object setVariable ["OEMPos",(_worldspace select 1),true];
//diag_log ("PUBLISH: Attempt " + str(_object));
//get UID