Skip to content

Commit

Permalink
[IMP] Remove more unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Armitxes committed Jun 15, 2018
1 parent 7d0dd1a commit 91dab58
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 154 deletions.
9 changes: 4 additions & 5 deletions civmenuinit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ if ((player distance _civmenuciv >= 25) or (!(alive _civmenuciv))) exitWith { hi
switch (_art) do {
case 1: { (format ["if (player == %1) then {[""drugs"", %2] execVM ""civmenu.sqf"";};", _civmenuciv, player]) call toClients; };
case 2: {
//if(!(_civmenuciv call ISSE_IsVictim) || !([civmenu_civ] call plr_isUnConscious)) exitwith{hint localize "STRS_inventory_checknohands"};
if (isciv) exitWith {hintSilent "You cannot disarm people as a civilian"};
if (isciv) exitWith {hintSilent "You cannot disarm people as a civilian"};
(format ["if (player == %1) then {[""disarm""] execVM ""civmenu.sqf"";};", _civmenuciv]) call toClients;
hintSilent format [localize "STRS_civmenu_disarm", _civmenu_civ];
};
Expand All @@ -27,11 +26,11 @@ switch (_art) do {
};
case 5: {
(format ["%1 setdamage 0; if (%1 == player) then { dmgHead = 0; dmgBody = 0; dmgHands = 0; dmgLegs = 0; hintSilent localize ""STRS_civmenucheck_youarehealed"";};", _civmenuciv]) call toClients;
hintSilent format [localize "STRS_civmenu_heal", _civmenu_civ];
hintSilent format [localize "STRS_civmenu_heal", _civmenu_civ];
};
case 6: {
if(!(_civmenuciv call ISSE_IsVictim))exitwith{hint localize "STRS_inventory_checknohands"};
(format ["if (player == %1) then {[""inventcheck"", %2] execVM ""civmenu.sqf"";}", _civmenuciv,player]) call toClients;
(format ["if (player == %1) then {[""inventcheck"", %2] execVM ""civmenu.sqf"";}", _civmenuciv,player]) call toClients;
};
case 8: { (format ["if (player == %1) then {[""licencheck"", %2] execVM ""civmenu.sqf"";}", _civmenuciv,player]) call toClients; };
case 20: {
Expand All @@ -45,4 +44,4 @@ switch (_art) do {
civmenuciv attachTo [player,[0,0.5,0]];
};
};
};
};
1 change: 0 additions & 1 deletion give.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ if (_art == "uebergabe") then

_spielernum = call compile (_this select 3);
_spieler = INV_PLAYERSTRINGLIST select _spielernum;
//_playerobject = INV_PLAYERLIST select _spielernum;
_playerobject = call compile _spieler;
_closeplayers = nearestobjects [getpos player, ["LandVehicle", "Air", "Man"], 20];

Expand Down
10 changes: 5 additions & 5 deletions nametags.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ while {true} do {
_dirV = vectorDir vehicle player;
_pos = player modelToWorld [0,0,0];
_posFind = [(_pos select 0)+(_dirV select 0)*_range,(_pos select 1)+(_dirV select 1)*_range,(_pos select 2)+(_dirV select 2)*_range];

if (vehicle player == player) then {
_objs = nearestObjects [_posFind,["Man", "Infostand_1_EP1", "Infostand_2_EP1", "Misc_cargo_cont_tiny", "RUBasicAmmunitionBox","UNBasicAmmunitionBox_EP1"],1];
_vcls = nearestobjects [_posFind,["LandVehicle", "Air", "ship", "LocalBasicWeaponsBox"], 3];
Expand All @@ -17,7 +17,7 @@ while {true} do {
if(count _vcls > 0 and INV_shortcuts) then {
_car = _vcls select 0;
_distCP = (_car distance player);

if(typeof _car != "LocalBasicWeaponsBox" and !(isnull _car) and alive _car and !(locked _car) and vehicle player == player and _distCP < 3) then {
titleRsc["Rtags", "PLAIN"];
_control = (uiNamespace getVariable 'TAGS_HUD') displayCtrl 64438;
Expand All @@ -32,7 +32,7 @@ while {true} do {
if(count _atms > 0 and INV_shortcuts) then {
_atm = _atms select 0;
_distTP = (_atm distance player);

if(_atm in bankflagarray and _distTP < 3) then {
titleRsc["Rtags", "PLAIN"];
_control = (uiNamespace getVariable 'TAGS_HUD') displayCtrl 64438;
Expand All @@ -43,7 +43,7 @@ while {true} do {
if(count _objs > 0 and INV_shortcuts) then {
_tag = _objs select 0;
_distTP = _tag distance player;

if(_tag in shopusearray and _distTP < 3) then {
_text = (_tag call INV_getshopArray) select 1;
titleRsc["Rtags", "PLAIN"];
Expand All @@ -69,4 +69,4 @@ while {true} do {
};
};
sleep 0.1;
};
};
4 changes: 1 addition & 3 deletions transact.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ if (_art == "deposit") then {
_transfermoney = _transfermoney call ISSE_str_StrToInt;
if (_transfermoney <= 0) exitWith {};
_steuern = round((_transfermoney*100)/(100-bank_steuer));
//_targetString = INV_PLAYERLIST select _transfer;
_targetString = call compile (INV_PLAYERSTRINGLIST select _transfer);

// if (INV_PLAYERLIST select _transfer == player) exitWith
if (_targetString == player) exitWith {
if (_dollarz < _transfermoney) then {
["add","finances","You cannot transfer that much money!",true] execVM "armitxes\logs.sqf";
Expand Down Expand Up @@ -52,4 +50,4 @@ if (_art == "withdraw") then {
};

sleep 2;
atmscriptrunning = 0;
atmscriptrunning = 0;
4 changes: 1 addition & 3 deletions transactphone.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ if (_art == "deposit") then {
_transfermoney = _transfermoney call ISSE_str_StrToInt;
if (_transfermoney <= 0) exitWith {};
_steuern = round((_transfermoney*100)/(100-bank_steuer));
//_targetString = INV_PLAYERLIST select _transfer;
_targetString = call compile (INV_PLAYERSTRINGLIST select _transfer);

// if (INV_PLAYERLIST select _transfer == player) exitWith
if (_targetString == player) exitWith {
if (_dollarz < _transfermoney) then {
hintSilent format[localize "STRS_bank_deposit_self_no", (_transfermoney call ISSE_str_IntToStr)];
Expand Down Expand Up @@ -48,4 +46,4 @@ if (_art == "withdraw") then {
};

sleep 2;
atmscriptrunning = 0;
atmscriptrunning = 0;
137 changes: 0 additions & 137 deletions vehicle.sqf

This file was deleted.

0 comments on commit 91dab58

Please sign in to comment.