Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
armazac committed Jun 22, 2017
1 parent f23e313 commit e9e2760
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ while {sleep 10;true} do {
_civid = _x;
if(count _civ == 0) then {
//Civ has died, welp, generate a replacement
player globalchat format["replacing civ %1",_civid];
_cash = round(random 200);
_civ = [call OT_fnc_randomLocalIdentity,true,_cash,-1];
OT_civilians setVariable [format["%1",_civid],_civ,true];
Expand Down
2 changes: 1 addition & 1 deletion addons/overthrow_main/functions/player/fn_mapSystem.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ _handler = {
_pos,
0.3/ctrlMapScale (_this select 0),
0.3/ctrlMapScale (_this select 0),
""
0
];
};
}foreach(player getvariable ["owned",[]]);
Expand Down
7 changes: 7 additions & 0 deletions addons/overthrow_main/functions/player/fn_wantedSystem.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@ while {alive _unit} do {
_unit spawn OT_fnc_revealToNATO;
}
};
if(_unit getvariable ["ot_isSmoking",false]) exitWith {
_unit setCaptive false;
_unit spawn OT_fnc_revealToNATO;
if(isPlayer _unit) then {
"NATO has seen your spliff!" call OT_fnc_notifyMinor;
};
};
if(count attachedObjects _unit > 0) exitWith {
{
if(typeOf _x in OT_staticWeapons) exitWith {
Expand Down

0 comments on commit e9e2760

Please sign in to comment.