1.7.5.M1D9 + tag friend system from

This commit is contained in:
A Clark
2013-01-12 15:24:48 -06:00
parent 8c735ce9c2
commit 7e52d6ee28
21 changed files with 121 additions and 34 deletions

View File

@@ -1,4 +1,4 @@
private["_characterID","_playerObj","_playerID","_dummy","_worldspace","_state","_doLoop","_key","_primary","_medical","_stats","_humanity","_lastinstance","_randomSpot","_position","_debug","_distance","_hit","_fractures","_score","_findSpot","_mkr","_counter","_isNear","_isZero","_pos","_isIsland","_w","_clientID"];
private["_characterID","_playerObj","_playerID","_dummy","_worldspace","_state","_doLoop","_key","_primary","_medical","_stats","_humanity","_lastinstance","_randomSpot","_position","_debug","_distance","_hit","_fractures","_score","_findSpot","_mkr","_counter","_isNear","_isZero","_pos","_isIsland","_w","_clientID","_friendlies"];
//Wait for HIVE to be free
//diag_log ("SETUP: attempted with " + str(_this));
@@ -56,6 +56,7 @@ _state = _primary select 3;
_worldspace = _primary select 4;
_humanity = _primary select 5;
_lastinstance = _primary select 6;
_friendlies = [];
//Set position
_randomSpot = false;
@@ -237,6 +238,7 @@ _playerObj setVariable["humanity_CHK",_humanity];
//_playerObj setVariable["worldspace",_worldspace,true];
//_playerObj setVariable["state",_state,true];
_playerObj setVariable["lastPos",getPosATL _playerObj];
_playerObj setVariable["friendlies",_friendlies];
dayzPlayerLogin2 = [_worldspace,_state];
_clientID = owner _playerObj;

View File

@@ -158,6 +158,6 @@ switch (_type) do {
call _object_killed;
};
case "repair": {
call _object_repair;
call _object_damage;
};
};

View File

@@ -315,10 +315,10 @@ spawn_roadblocks = {
//_isRoad = isOnRoad _position;
//_marker = createMarker [str(_position) , _position];
//_marker setMarkerShape "ICON";
//_marker setMarkerType "DOT";
//_marker setMarkerText "ON";
_marker = createMarker [str(_position) , _position];
_marker setMarkerShape "ICON";
_marker setMarkerType "DOT";
_marker setMarkerText "ON";
waitUntil{!isNil "BIS_fnc_selectRandom"};