mirror of
https://github.com/Bjanski/ExAd.git
synced 2024-08-30 16:52:14 +00:00
Compare commits
252 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c50e5be955 | ||
|
cad1173871 | ||
|
76b7b794c9 | ||
|
8d7cb05ccc | ||
|
c4311287b7 | ||
|
23f8c101ec | ||
|
8c3a6f1aa6 | ||
|
69b839e263 | ||
|
d2bf0dfa40 | ||
|
415cb7247d | ||
|
423579c6aa | ||
|
fb43a8d6a6 | ||
|
4bad1d730e | ||
|
42084d68a7 | ||
|
c7369a668d | ||
|
747cd86da5 | ||
|
f6ba0fb660 | ||
|
a63a8924cb | ||
|
4375edb167 | ||
|
fc9ea59304 | ||
|
677b93c789 | ||
|
cd69bc1dcd | ||
|
c4039f1e63 | ||
|
c5817a75ec | ||
|
c10482f9ba | ||
|
e98f43ec83 | ||
|
31cccc44ac | ||
|
2fd2b3fb58 | ||
|
5895f69034 | ||
|
67b0efcc2c | ||
|
943d51131b | ||
|
281cebaa83 | ||
|
e416577f5f | ||
|
781206eab5 | ||
|
e27f50d1f8 | ||
|
6afcf5b07a | ||
|
bfaf4c1d46 | ||
|
d1508c6a56 | ||
|
f6fc9708c7 | ||
|
3ff3ad38e2 | ||
|
775a89c169 | ||
|
df2782ce1b | ||
|
024fcd3bab | ||
|
fc6a4bdc4d | ||
|
04d170f42e | ||
|
62f9055c6a | ||
|
29f8023759 | ||
|
e9bc7e922c | ||
|
1f1ad99825 | ||
|
8096c969a2 | ||
|
8c905b8b47 | ||
|
700487f832 | ||
|
7b23d55f6d | ||
|
86ead5defd | ||
|
1a122945c8 | ||
|
06a7b87978 | ||
|
b05f3ebd51 | ||
|
06b5f4e737 | ||
|
de75e480e9 | ||
|
c6d085ebe4 | ||
|
5348057ebb | ||
|
e34320e6b7 | ||
|
01a45904d2 | ||
|
ccdaaee941 | ||
|
814c80ed8e | ||
|
a4653c9db6 | ||
|
d1a1e831e7 | ||
|
7c34eea742 | ||
|
268662309f | ||
|
3fb6d18dd7 | ||
|
1b371ae88c | ||
|
af897d0503 | ||
|
d99ff6812d | ||
|
856674dd03 | ||
|
cc1f8cd4ab | ||
|
fa3591d939 | ||
|
c5a371edbd | ||
|
bc762b9877 | ||
|
8ffe82a541 | ||
|
ba9a79e72f | ||
|
81f6e6080e | ||
|
7bb0bfafcc | ||
|
b72a002c5b | ||
|
e43099adb1 | ||
|
9243234902 | ||
|
0356a93687 | ||
|
9e4a5ea638 | ||
|
de4d68996c | ||
|
f76ffbe618 | ||
|
23b4ab3632 | ||
|
f639dfea38 | ||
|
0b4afec1f1 | ||
|
621167afb9 | ||
|
ad8459e0ab | ||
|
f85c0cbfe2 | ||
|
429b35a197 | ||
|
0752e777d4 | ||
|
b1e7671662 | ||
|
10f3711659 | ||
|
a84b34b033 | ||
|
eee51e2fc1 | ||
|
92c5bf5bf5 | ||
|
fb7c47242e | ||
|
09e435e85e | ||
|
9d7696fbab | ||
|
978dc1b333 | ||
|
0df23647ef | ||
|
7c3efafb95 | ||
|
44506c6265 | ||
|
6e9c5cc1d9 | ||
|
e26c0a2426 | ||
|
8c81e31ca1 | ||
|
fc41f89e57 | ||
|
8cb2a778da | ||
|
ef5cdffcc5 | ||
|
eccaa71907 | ||
|
5baab224df | ||
|
242adfb2db | ||
|
24be1cfa8d | ||
|
48f8ffeafd | ||
|
7ca7a126df | ||
|
836746d60f | ||
|
b36d94d927 | ||
|
fe39bc6f76 | ||
|
e401fd6a9f | ||
|
99debcb7c4 | ||
|
696417c204 | ||
|
c4662b50d2 | ||
|
49ac41533b | ||
|
abb9cf13af | ||
|
5d139df2e2 | ||
|
e1e1f53caa | ||
|
9e78fcdf95 | ||
|
c15e45a53c | ||
|
f2374b242b | ||
|
1c6eca2b56 | ||
|
39a1fd8afb | ||
|
256de41c64 | ||
|
6edcf96df5 | ||
|
8f42005e84 | ||
|
8d5007f2b2 | ||
|
fe9923594f | ||
|
0887e49687 | ||
|
a59474586e | ||
|
fe3447ddbc | ||
|
ae880411ab | ||
|
c1320a9bc0 | ||
|
8c74dee46e | ||
|
f33422cdf1 | ||
|
c78d91099a | ||
|
8ef6f724bd | ||
|
0c81c048cf | ||
|
dd47fa0c02 | ||
|
eb12baf640 | ||
|
b3c2e7c8f1 | ||
|
f60fe7f5e8 | ||
|
8000b985db | ||
|
910cc04918 | ||
|
3896765c15 | ||
|
d113445fef | ||
|
27b0c0adcf | ||
|
3463f534da | ||
|
3a1dae36a7 | ||
|
dc9d3ae6ee | ||
|
e30a439a2a | ||
|
896efafdd6 | ||
|
abece6bad1 | ||
|
ae51823a1c | ||
|
82b9ccf8b9 | ||
|
2d19626711 | ||
|
091c30afc4 | ||
|
9efef8c383 | ||
|
4f6a833e6f | ||
|
60cc8b9c2d | ||
|
2fdf113f7b | ||
|
88a93cbcaa | ||
|
dfdeef9415 | ||
|
4adde68ad1 | ||
|
329383d33c | ||
|
db2722b77e | ||
|
a6421d561f | ||
|
fbea791206 | ||
|
6135d8967a | ||
|
051433f345 | ||
|
a4992d7afb | ||
|
40e3a95246 | ||
|
c017d42c6c | ||
|
6a9a1a8874 | ||
|
df832a5932 | ||
|
516efad1db | ||
|
fc976938f4 | ||
|
d57ea6d63a | ||
|
862957bb28 | ||
|
e72a9bbba3 | ||
|
b3d84d2b70 | ||
|
95ecd6f076 | ||
|
ba35823aa2 | ||
|
cb38927562 | ||
|
49c307c1b0 | ||
|
f1d8a9fa27 | ||
|
28770808a9 | ||
|
1b7681782b | ||
|
b9f820ba87 | ||
|
5d11afc426 | ||
|
956d492d43 | ||
|
f222940c3c | ||
|
7ee9b7e3ef | ||
|
e2740f3584 | ||
|
ca7ef6cafc | ||
|
6b5931416c | ||
|
30aaced456 | ||
|
f4eecd1ac8 | ||
|
9a5d64003f | ||
|
612243de04 | ||
|
1d36ec1170 | ||
|
90f961d2ce | ||
|
383547f123 | ||
|
b899910d20 | ||
|
e9eae04662 | ||
|
46a7a4667a | ||
|
4b2d8ee02a | ||
|
6100cc07f5 | ||
|
d4063eb645 | ||
|
cc26d3d442 | ||
|
e004cf63b1 | ||
|
0e9f249035 | ||
|
916e91a4db | ||
|
6e7d916b2f | ||
|
dd0ffa6194 | ||
|
8c4311c94c | ||
|
be51d71361 | ||
|
07155b0d4a | ||
|
c54ff9ce2b | ||
|
33445d4b1b | ||
|
c848fc4cd2 | ||
|
b86f73d767 | ||
|
020b43c865 | ||
|
7e358ec103 | ||
|
92f7278d44 | ||
|
849f49b552 | ||
|
ecfbeafc5d | ||
|
e9ded6a9c3 | ||
|
3b272ce6ea | ||
|
7a3f8c92aa | ||
|
77447f06b6 | ||
|
72091d23ec | ||
|
71bdf5d33d | ||
|
c0988373d2 | ||
|
8e99eef74c | ||
|
2a08c31866 | ||
|
3be888efc5 | ||
|
e1a60f782d |
@ -1,5 +1,5 @@
|
||||
/*
|
||||
fn_showDetachParachute.sqf
|
||||
fn_log.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
@ -16,4 +16,8 @@
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
((getPos player) select 2 > ExAd_ACTION_PARACHUTE_HEIGHT && vehicle player isKindOf "Steerable_Parachute_F")
|
||||
params ["_file","_msg"];
|
||||
|
||||
if(ExAd_Logging)then{
|
||||
"Arma_Log" callExtension format['%1\%2:%3',ExAd_Log_Folder,_file,_msg];
|
||||
}
|
@ -0,0 +1 @@
|
||||
/*
fn_territoryPlayerPresent.sqf
Copyright 2016 Jan Babor
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
params ["_flag","_res"];
_res = false;
{
if( (([_flag, getPlayerUID _x ] call ExileClient_util_territory_getAccessLevel) select 0) > 0 ) exitWith {
_res = true
}
}forEach playableUnits;
_res
|
@ -25,6 +25,10 @@ class CfgPatches {
|
||||
|
||||
class CfgFunctions {
|
||||
class ExAdServer {
|
||||
class Debug {
|
||||
file = "exad_core\Functions\Debug";
|
||||
class log {};
|
||||
};
|
||||
class System {
|
||||
file = "exad_core\Functions\System";
|
||||
class clientDispatch {};
|
||||
@ -36,6 +40,7 @@ class CfgFunctions {
|
||||
class createCrate {};
|
||||
class createMarker {};
|
||||
class putInContainer {};
|
||||
class territoryPlayerPresent {};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
1
@ExileServer/addons/exad_dv/$PREFIX$
Normal file
1
@ExileServer/addons/exad_dv/$PREFIX$
Normal file
@ -0,0 +1 @@
|
||||
exad_dv
|
@ -0,0 +1,73 @@
|
||||
/*
|
||||
fn_createMarker.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
params ["_vehObjNetId"];
|
||||
|
||||
_vehObj = objectFromNetId _vehObjNetId;
|
||||
_vehClass = typeOf _vehObj;
|
||||
_vehPos = getPosATL _vehObj;
|
||||
|
||||
moveOut (driver _vehObj);
|
||||
_vehObj call ExileServer_system_vehicleSaveQueue_removeVehicle;
|
||||
_vehObj call ExileServer_system_simulationMonitor_removeVehicle;
|
||||
deleteVehicle _vehObj;
|
||||
|
||||
{
|
||||
if(getText(missionConfigFile >> "CfgXM8" >> _x >> "vehicleClass") == _vehClass)exitWith{
|
||||
|
||||
_lootHolder = createVehicle ["LootWeaponHolder", _vehPos, [], 0, "CAN_COLLIDE"];
|
||||
_lootHolder setDir (random 360);
|
||||
_lootHolder setPosATL _vehPos;
|
||||
|
||||
{
|
||||
_amount = if(count _x > 1)then{_x select 1}else{1};
|
||||
if(_amount > 0)then{
|
||||
_itemClassName = _x select 0;
|
||||
_cargoType = _itemClassName call ExileClient_util_cargo_getType;
|
||||
switch (_cargoType) do
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
if (_itemClassName isEqualTo "Exile_Item_MountainDupe") then
|
||||
{
|
||||
_lootHolder addMagazineCargoGlobal [_itemClassName, _amount];
|
||||
}
|
||||
else
|
||||
{
|
||||
_lootHolder addMagazineCargoGlobal [_itemClassName, _amount];
|
||||
};
|
||||
};
|
||||
case 3:
|
||||
{
|
||||
_lootHolder addBackpackCargoGlobal [_itemClassName, _amount];
|
||||
};
|
||||
case 2:
|
||||
{
|
||||
_lootHolder addWeaponCargoGlobal [_itemClassName, _amount];
|
||||
};
|
||||
default
|
||||
{
|
||||
_lootHolder addItemCargoGlobal [_itemClassName, _amount];
|
||||
};
|
||||
};
|
||||
};
|
||||
}forEach getArray(missionConfigFile >> "CfgXM8" >> _x >> "recipe");
|
||||
};
|
||||
}forEach ((missionConfigfile >> "CfgXM8") call BIS_fnc_getCfgSubClasses);
|
||||
|
||||
true
|
@ -0,0 +1,64 @@
|
||||
/*
|
||||
fn_createMarker.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
params ["_playerNetId","_configClass","_player","_spawnPos","_spawnDir","_usePositionATL","_vehObj"];
|
||||
|
||||
_player = objectFromNetId _playerNetId;
|
||||
|
||||
_spawnPos = _player modelToWorld [0,2,0];
|
||||
_spawnDir = direction _player;
|
||||
_usePositionATL = true;
|
||||
|
||||
_vehicleClass = getText(missionConfigFile >> "CfgXM8" >> _configClass >> "vehicleClass");
|
||||
|
||||
_vehObj = [_vehicleClass, _spawnPos, _spawnDir, _usePositionATL] call ExileServer_object_vehicle_createNonPersistentVehicle;
|
||||
|
||||
if( getNumber(missionConfigFile >> "CfgXM8" >> _configClass >> "packable") > 0 ) then {
|
||||
_vehObj setVariable ["ExAd_DV_Packable", true, true];
|
||||
};
|
||||
|
||||
if( getNumber(missionConfigFile >> "CfgXM8" >> _configClass >> "autoCleanUp") > 0 ) then {
|
||||
[_vehObj] spawn {
|
||||
private ["_wait","_tick", "_vehObj","_driver"];
|
||||
_wait = true;
|
||||
_tick = 0;
|
||||
_vehObj = [_this,0,objNull] call BIS_fnc_param;
|
||||
|
||||
while {_wait} do {
|
||||
UISleep 1;
|
||||
if(isNull _vehObj)exitWith{_wait = false};
|
||||
|
||||
_driver = driver _vehObj;
|
||||
if(isNull _driver)then{
|
||||
_tick = _tick + 1;
|
||||
}else{
|
||||
_tick = 0;
|
||||
};
|
||||
|
||||
if(_tick >= ExAd_DV_DESPAWN_IDLE_TIME)exitWith{_wait = false};
|
||||
};
|
||||
|
||||
moveOut (driver _vehObj);
|
||||
_vehObj call ExileServer_system_vehicleSaveQueue_removeVehicle;
|
||||
_vehObj call ExileServer_system_simulationMonitor_removeVehicle;
|
||||
deleteVehicle _vehObj;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
true
|
1
@ExileServer/addons/exad_dv/PboPrefix.txt
Normal file
1
@ExileServer/addons/exad_dv/PboPrefix.txt
Normal file
@ -0,0 +1 @@
|
||||
exad_dv
|
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
class CfgPatches {
|
||||
class ExAd_VG {
|
||||
class ExAd_DV {
|
||||
requiredVersion = 0.1;
|
||||
requiredAddons[] = {"ExAd_Core"};
|
||||
};
|
||||
@ -25,27 +25,22 @@ class CfgPatches {
|
||||
|
||||
class CfgFunctions {
|
||||
class ExAdServer {
|
||||
class VG {
|
||||
file = "exad_vg\Functions";
|
||||
class requestVGDetailInfo {};
|
||||
class VGLoad {};
|
||||
class VGStore {};
|
||||
class DV {
|
||||
file = "exad_dv\Functions";
|
||||
class spawnDeployableVehicle {};
|
||||
class despawnDeployableVehicle {};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class CfgNetworkMessages
|
||||
{
|
||||
class VGStore
|
||||
class spawnDeployableVehicle
|
||||
{
|
||||
parameters[] = {"STRING","STRING","STRING"};
|
||||
parameters[] = {"STRING","STRING"};
|
||||
};
|
||||
class VGLoad
|
||||
class despawnDeployableVehicle
|
||||
{
|
||||
parameters[] = {"STRING","STRING","STRING"};
|
||||
};
|
||||
class requestVGDetailInfo
|
||||
{
|
||||
parameters[] = {"STRING","STRING","SCALAR","STRING","SCALAR"};
|
||||
parameters[] = {"STRING"};
|
||||
};
|
||||
};
|
@ -1 +0,0 @@
|
||||
exad_vg
|
@ -1,52 +0,0 @@
|
||||
/*
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
private ["_objVehNetId","_objVeh","_flagNetId","_flag","_objVehId","_flagId","_data","_extDB2Message","_vehList"];
|
||||
|
||||
_objId = [_this,0,"",[""]] call BIS_fnc_param;
|
||||
_flagNetId = [_this,1,"",[""]] call BIS_fnc_param;
|
||||
_playerNetId = [_this,2,"",[""]] call BIS_fnc_param;
|
||||
_flag = objectFromNetId _flagNetId;
|
||||
_requestFrom = owner (objectFromNetId _playerNetId);
|
||||
|
||||
_proceed = false;
|
||||
_vehList = _flag getVariable ["ExAdVGVeh", []];
|
||||
|
||||
{
|
||||
if((format["%1",_x select 0]) isEqualTo _objId)exitWith{
|
||||
_vehList deleteAt _forEachIndex;
|
||||
_proceed = true;
|
||||
}
|
||||
}forEach _vehList;
|
||||
|
||||
if(!_proceed)exitWith{[_requestFrom, "notificationRequest", ["Whoops", ["They vehicle is not available anymore"]]] call ExileServer_system_network_send_to};
|
||||
|
||||
_flag setVariable ["ExAdVGVeh", _vehList, true];
|
||||
|
||||
_vehObj = (parseNumber _objId) call ExileServer_object_vehicle_database_load;
|
||||
_extDB2Message = ["loadVehFromVG", [parseNumber _objId]] call ExileServer_util_extDB2_createMessage;
|
||||
_extDB2Message call ExileServer_system_database_query_fireAndForget;
|
||||
|
||||
if(ExAd_VG_SHOW_ADVHINT)then{
|
||||
[["advancedHint", ["VGLoad",[_vehObj getVariable["ExileAccessCode",""]]]], _requestFrom] call ExAdServer_fnc_clientDispatch;
|
||||
};
|
||||
|
||||
_pos = getPosATL _vehObj;
|
||||
_pos set [2, (_pos select 2) + 0.1];
|
||||
_vehObj setPosATL _pos;
|
||||
|
||||
true
|
@ -1,62 +0,0 @@
|
||||
/*
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
private ["_objVehNetId","_objVeh","_flagNetId","_flag","_owner","_objVehId","_flagId","_data","_extDB2Message","_vehList"];
|
||||
|
||||
_objVehNetId = [_this,0,"",[""]] call BIS_fnc_param;
|
||||
_objVeh = objectFromNetId _objVehNetId;
|
||||
_flagNetId = [_this,1,"",[""]] call BIS_fnc_param;
|
||||
_flag = objectFromNetId _flagNetId;
|
||||
_owner = owner _objVeh;
|
||||
if!(_objVeh getVariable ["ExileIsPersistent", false])exitWith{(localize "STR_VG_STORE_NOTPERSISTENT") remoteExec ["hint", _owner]; false};
|
||||
|
||||
if!(_objVeh setOwner 2)exitWith{format["Get out of the vehicle before storing it."] remoteExec ["hint", _owner]; false};
|
||||
|
||||
if!(isNil "ExAd_VG_CLEAN_ON_STORE")then{
|
||||
if(ExAd_VG_CLEAN_ON_STORE)then{
|
||||
clearBackpackCargoGlobal _objVeh;
|
||||
clearItemCargoGlobal _objVeh;
|
||||
clearMagazineCargoGlobal _objVeh;
|
||||
clearWeaponCargoGlobal _objVeh;
|
||||
}
|
||||
};
|
||||
|
||||
_objVeh call ExileServer_object_vehicle_database_update;
|
||||
|
||||
_objVehId = _objVeh getVariable ["ExileDatabaseID",-1];
|
||||
_flagId = _flag getVariable ["ExileDatabaseID", -1];
|
||||
|
||||
if(_objVehId > -1 && _flagId > -1)then{
|
||||
_data = [_flagId, _objVehId];
|
||||
|
||||
_extDB2Message = ["loadVehToVG", _data] call ExileServer_util_extDB2_createMessage;
|
||||
_extDB2Message call ExileServer_system_database_query_fireAndForget;
|
||||
|
||||
_objVeh call ExileServer_system_vehicleSaveQueue_removeVehicle;
|
||||
_objVeh call ExileServer_system_simulationMonitor_removeVehicle;
|
||||
deleteVehicle _objVeh;
|
||||
|
||||
_vehList = _flag getVariable ["ExAdVGVeh", []];
|
||||
_vehList pushBack [_objVehId, typeOf _objVeh];
|
||||
_flag setVariable ["ExAdVGVeh", _vehList, true];
|
||||
|
||||
if(ExAd_VG_SHOW_ADVHINT)then{
|
||||
[["advancedHint", ["VGStore",[]]], _owner] call EXOServer_fnc_clientDispatch;
|
||||
};
|
||||
};
|
||||
|
||||
true
|
@ -1,40 +0,0 @@
|
||||
/*
|
||||
fn_requestVGDetailInfo.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
private ["_objVehNetId","_objVeh","_flagNetId","_flag","_objVehId","_flagId","_data","_extDB2Message","_vehList"];
|
||||
|
||||
_objId = [_this,0,"",[""]] call BIS_fnc_param;
|
||||
_flagNetId = [_this,1,"",[""]] call BIS_fnc_param;
|
||||
_streamFriendlyUI = [_this,2,0,[0]] call BIS_fnc_param;
|
||||
_playerNetId = [_this,3,"",[""]] call BIS_fnc_param;
|
||||
_ctrl = [_this,4,-1,[0]] call BIS_fnc_param;
|
||||
_flag = objectFromNetId _flagNetId;
|
||||
_requestFrom = owner (objectFromNetId _playerNetId);
|
||||
|
||||
/*Check if vehicle is in flag - avoid cheaters fishing for pin codes*/
|
||||
|
||||
_data = format ["loadVehicle:%1", _objId] call ExileServer_system_database_query_selectSingle;
|
||||
|
||||
_displayName = getText(ConfigFile >> "CfgVehicles" >> (_data select 1) >> "displayName");
|
||||
_pinCode = if(_streamFriendlyUI == 0)then{_data select 20}else{"XXXX"};
|
||||
|
||||
_text = format["%1 <br/>Pin code: %2<br/>",_displayName, _pinCode];
|
||||
|
||||
[_text,_ctrl] remoteExec ["ExAd_fnc_loadVGDetailView", _requestFrom];
|
||||
|
||||
true
|
@ -1 +0,0 @@
|
||||
exad_vg
|
38
@ExileServer/extDB/sql_custom (64-bit)/exile.ini
Normal file
38
@ExileServer/extDB/sql_custom (64-bit)/exile.ini
Normal file
@ -0,0 +1,38 @@
|
||||
;1. Find following sections and replace the commented lines;
|
||||
;This is the 64-Bit version of the exile.ini addons for ExAd just to make it easier for those who use 64-Bit servers.
|
||||
|
||||
[loadVehicleIdPage]
|
||||
;SQL1_1 = SELECT id FROM vehicle LIMIT ?,?
|
||||
SQL1_1 = SELECT id FROM vehicle WHERE deleted_at IS NULL AND territory_id IS NULL LIMIT ?,?
|
||||
SQL1_INPUTS = 1,2
|
||||
OUTPUT = 1
|
||||
|
||||
; Removes vehicles that were not used within ? days
|
||||
[deleteOldVehicles]
|
||||
;SQL1_1 = DELETE FROM vehicle WHERE deleted_at < DATE_SUB(NOW(), INTERVAL ? DAY)
|
||||
SQL1_1 = DELETE FROM vehicle WHERE territory_id IS NULL AND deleted_at < DATE_SUB(NOW(), INTERVAL ? DAY)
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
; Marks for deletion vehicles that were not used within ? days
|
||||
[markDeleteOldVehicles]
|
||||
; SQL1_1 = UPDATE vehicle SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY)
|
||||
SQL1_1 = UPDATE vehicle SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND territory_id IS NULL
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
;2. Add all below in the end of the file.
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Virtual Garage related queries | ADDED BY [ExAd]Jan
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
[loadTerritoryVehicles]
|
||||
SQL1_1 = SELECT id, class FROM vehicle WHERE territory_id = ?
|
||||
SQL1_INPUTS = 1
|
||||
OUTPUT = 1,2-STRING
|
||||
|
||||
[loadVehFromVG]
|
||||
SQL1_1 = UPDATE vehicle SET territory_id = NULL WHERE id = ?
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
[loadVehToVG]
|
||||
SQL1_1 = UPDATE vehicle SET territory_id = ? WHERE id = ?
|
||||
SQL1_INPUTS = 1,2
|
@ -1,12 +1,26 @@
|
||||
;1. Find [loadVehicleIdPage] and replace the section with this;
|
||||
;1. Find following sections and replace the commented lines;
|
||||
|
||||
[loadVehicleIdPage]
|
||||
;SQL1_1 = SELECT id FROM vehicle LIMIT ?,?
|
||||
SQL1_1 = SELECT id FROM vehicle WHERE territory_id IS NULL LIMIT ?,?
|
||||
SQL1_1 = SELECT id FROM vehicle WHERE deleted_at IS NULL AND territory_id IS NULL LIMIT ?,?
|
||||
Number Of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
OUTPUT = 1
|
||||
|
||||
; Removes vehicles that were not used within ? days
|
||||
[deleteOldVehicles]
|
||||
;SQL1_1 = DELETE FROM vehicle WHERE deleted_at < DATE_SUB(NOW(), INTERVAL ? DAY)
|
||||
SQL1_1 = DELETE FROM vehicle WHERE territory_id IS NULL AND deleted_at < DATE_SUB(NOW(), INTERVAL ? DAY)
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
; Marks for deletion vehicles that were not used within ? days
|
||||
[markDeleteOldVehicles]
|
||||
; SQL1_1 = UPDATE vehicle SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY)
|
||||
SQL1_1 = UPDATE vehicle SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND territory_id IS NULL
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
;2. Add all below in the end of the file.
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Virtual Garage related queries | ADDED BY [ExAd]Jan
|
||||
@ -26,4 +40,4 @@ SQL1_INPUTS = 1
|
||||
[loadVehToVG]
|
||||
SQL1_1 = UPDATE vehicle SET territory_id = ? WHERE id = ?
|
||||
Number Of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
@ -1,7 +1,10 @@
|
||||
eventHandler !="ExAd_ACTION_PARACHUTE_DETACH = (findDisplay 46) displayAddEventHandler ["KeyDown",{"
|
||||
compile !="call compile format[\"_messageParameters call ExAd_fnc_%1;\",_messageName]"
|
||||
eventHandler !="ExAd_ACTION_PARACHUTE_DETACH = (findDisplay 46) displayAddEventHandler [\"KeyDown\",{"
|
||||
compile !="call compile format[\"_messageParameters call ExAd_fnc_%1;\",_messageName]" !="call compile format['%1 = if(isLocalized \"%1\")then{localize \"%1\"}else{\"%3"
|
||||
createVehicle !="_parachuteObject = createVehicle [\"Steerable_Parachute_F\", getPosATL player, [], 0, \"CAN_COLLIDE\"]"
|
||||
addAction !="ExAd_ACTION_PARACHUTE = player addaction [format"
|
||||
Entities !="waitUntil {sleep 0.1; {player distance _x < 10 max (sizeOf typeOf _x)} count (player nearEntities [\"Helicopter_Base_F\", 20]) == 0}"
|
||||
drawLine3D !="drawLine3D [cursorTarget modelToWorld ["
|
||||
playableUnits !="(({alive _x}count playableUnits) >= ExAd_HACKING_MIN_PLAYERS_ONLINE)"
|
||||
Entities !="waitUntil {sleep 0.1; ({player distance _x < (10 max (sizeOf typeOf _x))} count (player nearEntities [\"Air\", 20])) == 0};"
|
||||
Units !="(({alive _x}count playableUnits) >= ExAd_HACKING_MIN_PLAYERS_ONLINE)"
|
||||
disableCollisionWith !="_parachuteObject disableCollisionWith player"
|
||||
remoteexec !="_this remoteExec [\"ExAdServer_fnc_clientRequest\",2]"
|
152
CHANGELOG.md
152
CHANGELOG.md
@ -1,13 +1,143 @@
|
||||
#<img src="logo.png" alt="ExAd" width="200" />
|
||||
# Changelog:
|
||||
|
||||
## Changelog:
|
||||
### 160426 14:04 . v0.5.14
|
||||
#### Fixed
|
||||
* BattlEye filters been updated
|
||||
* VG App return to sideApp on unLoad
|
||||
* VG App clear lists before onLoad and content being loaded.
|
||||
* AdvHint trying to show EXO Logo
|
||||
#### Added
|
||||
* ExAd Logo.png
|
||||
#### Deleted
|
||||
* EXO Logo.png
|
||||
## 160801 17:00 . v0.8.0
|
||||
### Fixed
|
||||
* "ExadClient\CfgFunctions.cpp" to work with StatsBar (Core)
|
||||
* "ExadClient\RscTitles.cpp" to work with StatsBar (Core)
|
||||
* Go Back button didn't show text when VG wasn't loaded in the package (Apps; Info, Journal)
|
||||
* Loading before ExileClientLoadedIn was declared
|
||||
|
||||
### Added
|
||||
* New plugin - StatsBar (StatsBar)
|
||||
* New App to configure the StatsBar (XM8)
|
||||
* New functions (XM8)
|
||||
* Stringtable compability (StatsBar)
|
||||
|
||||
### Removed
|
||||
* removed all individual changelogs - took to much time to update.
|
||||
|
||||
## 1607330 11:00 . v0.7.11
|
||||
### Fixed
|
||||
* Modified fn_addApps. (XM8)
|
||||
|
||||
### Added
|
||||
* New App function , fn_createCombo (XM8)
|
||||
|
||||
## 160726 17:15 . v0.7.10
|
||||
### Fixed
|
||||
* Apply custom functions to "More" app buttons. (XM8)
|
||||
|
||||
### Added
|
||||
* New App, deploy vehicles (XM8)
|
||||
|
||||
## 160720 01:15 . v0.7.9
|
||||
### Fixed
|
||||
* Some design flaws in the Apps functions. (XM8)
|
||||
* Added ExAd_Journal class to config.cpp (XM8)
|
||||
|
||||
### Added
|
||||
* New App, which is a tutorial app on YouTube (XM8)
|
||||
|
||||
## 160703 20:15 . v0.7.7
|
||||
###Fixed
|
||||
* Made the ExAd system compatible with Exile 0.9.8 (All)
|
||||
|
||||
###Added
|
||||
* XM8 - a feature to add apps to the XM8 "More" button
|
||||
* App for XM8 (Virtual Garage)
|
||||
|
||||
###Removed
|
||||
* Support for Improved_XM8_Apps by Vitaly
|
||||
|
||||
## 160610 01:20 . v0.7.6
|
||||
###Fixed
|
||||
* Quick-fix - VG App scroll for stored list(Virtual Garage)
|
||||
* The configuration file could be reed after the postInit script (All) - IMPORTANT TO UPDATE ALL PLUGINS.
|
||||
|
||||
###Added
|
||||
* Extra loggin functionality (All)
|
||||
* Progress bar height customizable (Grinding)
|
||||
* Added a lot of new custom UI Display texts - Check stringtabl.xml for new ones. (All)
|
||||
* Added vehicle details to VirtualGarage DetailsView (Virtual Garage)
|
||||
* Added function ExAd_fnc_territoryPlayerPresent, to see if a player with permissions for a specific flag is online (Core)
|
||||
* Added a feature so the server owner can decide if hacking should require a player with premissions to be online.(Hacking)
|
||||
|
||||
## 160510 21:00 . v0.7.5
|
||||
###Fixed
|
||||
* Syntax error in postInit.sqf (HaloParachute)
|
||||
* Added battleye exceptions (HaloParachute)
|
||||
|
||||
## 160510 18:00 . v0.7.4
|
||||
###Fixed
|
||||
* Various documentation has been updated.
|
||||
|
||||
###Added
|
||||
* Some small features for HaloParachute
|
||||
|
||||
## 160510 16:00 . v0.7.3
|
||||
###Fixed
|
||||
* Cleaned the code (Hacking)
|
||||
* Declaration of un custamized variables (All)
|
||||
|
||||
## 160507 09:00 . v0.7.2
|
||||
### Added
|
||||
* "docs\core\update.md" & "docs\core\changelog.md"
|
||||
* "docs\Grinding\update.md" & "docs\Grinding\changelog.md"
|
||||
* "docs\Hacking\update.md" & "docs\Hacking\changelog.md"
|
||||
* "docs\HaloParachute\update.md" & "docs\HaloParachute\changelog.md"
|
||||
* "docs\VirtualGarage\update.md" & "docs\VirtualGarage\changelog.md"
|
||||
|
||||
### Deleted
|
||||
* "mpmissions\Exile.Altis\ExAdClient\core\update.md" & "mpmissions\Exile.Altis\ExAdClient\core\changelog.md"
|
||||
* "mpmissions\Exile.Altis\ExAdClient\Grinding\update.md" & "mpmissions\Exile.Altis\ExAdClient\Grinding\changelog.md"
|
||||
* "mpmissions\Exile.Altis\ExAdClient\Hacking\update.md" & "mpmissions\Exile.Altis\ExAdClient\Hacking\changelog.md"
|
||||
* "mpmissions\Exile.Altis\ExAdClient\HaloParachute\update.md" & "mpmissions\Exile.Altis\ExAdClient\HaloParachute\changelog.md"
|
||||
* "mpmissions\Exile.Altis\ExAdClient\VirtualGarage\update.md" & "mpmissions\Exile.Altis\ExAdClient\VirtualGarage\changelog.md"
|
||||
|
||||
## 160507 09:00 . v0.7.1
|
||||
### Fixed
|
||||
* Hacking isn't dependent on VirtualGarage anymore (Hacking)
|
||||
|
||||
## 160506 09:00 . v0.7.0
|
||||
### Fixed
|
||||
* Small issue where VG didn't show an advancedHint when storing. (VirtualGarage)
|
||||
|
||||
### Added
|
||||
* New stringtable values (VirtualGarage)
|
||||
* New customizable values (Core)
|
||||
Must be implemented for Hacking to work proparly
|
||||
* Implemented Hacking (Hacking)
|
||||
* Added battleye Hacking exceptions
|
||||
|
||||
## 160505 01:40 . v0.6.1
|
||||
### Fixed
|
||||
* Display null when entering Virtual Garage from Flag (Virtual Garage)
|
||||
* Sound error for grinding, tmp fix, sound will work on Chernarus (Grinding)
|
||||
|
||||
## 160502 23:15 . v0.6.0
|
||||
### Added
|
||||
* Implemented Grinding
|
||||
* Added battleye grinding exceptions
|
||||
|
||||
## 160423 14:04 . v0.5.2
|
||||
### Fixed
|
||||
* Description.ext was wrongly configured (Core)
|
||||
|
||||
## 160426 14:04 . v0.5.1
|
||||
### Fixed
|
||||
* BattlEye filters been updated (All)
|
||||
* VG App return to sideApp on unLoad (VirtualGarage)
|
||||
* VG App clear lists before onLoad and content being loaded. (VirtualGarage)
|
||||
* AdvHint trying to show EXO Logo (VirtualGarage)
|
||||
|
||||
### Added
|
||||
* ExAd Logo.png (Core)
|
||||
|
||||
### Deleted
|
||||
* EXO Logo.png (Core)
|
||||
|
||||
## 160426 . v0.5.0
|
||||
### Added
|
||||
* Changelog introduced (All)
|
||||
* Repo public (All)
|
||||
|
49
README.md
49
README.md
@ -1,33 +1,52 @@
|
||||
#<img src="logo.png" alt="ExAd" width="200" />
|
||||
Exile Addons - originally small projects developed for the Arma Exile communities EXO and SP4R but now rewritten and collected here for public use.
|
||||
<img src="logo.png" alt="ExAd" width="200" />
|
||||
|
||||
I'll gradually add all features I built, encouragements always helps the project to stay alive a little longer :smirk: | [Donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=jan%2ebabor%2e383%40gmail%2ecom&lc=GB&item_name=ExAd¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
|
||||
# PLEASE STOP USING EXAD. It does not work in Exile V1.0.4. Although others have got it working, it's laggy and was built when Exile used a lot of hacky code to fix Arma. There are plenty standalone alternatives out there. - Monkeynutz
|
||||
|
||||
|
||||
|
||||
[](https://dev.arma3.com/post/spotrep-00077) [](http://www.exilemod.com/topic/25026-104-pineapple/) [](http://bjanski.github.io/ExAd/)
|
||||
|
||||
Exile Addons by Janski - originally small projects developed for the Arma Exile communities EXO and SP4R but now rewritten and collected here for public use. Contributers to the code can be found in the "Contributers" section at the top of the Repo.
|
||||
Repo now looked after and updated by [[GADD]](https://gamingatdeathsdoor.com)Monkeynutz.
|
||||
|
||||
Janski No longer works on ExAd but you can donate to him here to appreciate his work... :smirk: | [Donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=jan%2ebabor%2e383%40gmail%2ecom&lc=GB&item_name=ExAd¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
|
||||
|
||||
## Installation & Examples
|
||||
Instructions for installation is found under [docs](https://github.com/Bjanski/ExAd/tree/master/docs).
|
||||
Each plugin must be installed seperately, I've done it this way to make the update procedure easier.
|
||||
Below you can see what dependencies each plugin has.
|
||||
|
||||
##Collection
|
||||
## Update Instructions
|
||||
After you have installed the entire or parts of the ExAd Package you will easiest update by checking each subproject documentation folder to retrieve the changelog and update instructions.
|
||||
|
||||
## Collection
|
||||
* Core
|
||||
* Halo & Parachute
|
||||
* Virtual Garage
|
||||
* Grinding
|
||||
* Hacking
|
||||
* StatsBar
|
||||
* XM8
|
||||
* Admin Events .. *Coming Soon*
|
||||
* Hacking .. *Coming Soon*
|
||||
* Grinding .. *Coming Soon*
|
||||
* VehicleUpgrade -- *Coming Soon*
|
||||
|
||||
##Dependencies
|
||||
## Dependencies
|
||||
* Core
|
||||
* [Exile](http://www.exilemod.com/downloads/)
|
||||
* Virtual Garage
|
||||
* Core
|
||||
* [XM8 Apps Improved](https://github.com/vitalymind/XM8_apps_improved)
|
||||
* XM8
|
||||
* XM8
|
||||
* Core
|
||||
* StatsBar
|
||||
* Core
|
||||
* XM8
|
||||
* Admin Events
|
||||
* Core
|
||||
* [Infistar](https://infistar.de/)
|
||||
* Hacking
|
||||
* Virtual Garage
|
||||
* Core
|
||||
* (Virtual Garage)
|
||||
* Grinding
|
||||
* Core
|
||||
* Halo & Parachute
|
||||
@ -35,14 +54,16 @@ Below you can see what dependencies each plugin has.
|
||||
* VehicleUpgrade
|
||||
* Core
|
||||
|
||||
##Contribute
|
||||
## Contribute
|
||||
Contributions are allways welcome, please read [Contribution Guidlines](CONTRIBUTING.md) first.
|
||||
|
||||
All contributed code first needs to be rewieved and tested before pushed to master.
|
||||
|
||||
##License
|
||||
## License
|
||||
Apache License
|
||||
|
||||
##Contact
|
||||
For this project I only reply through my [Exile profile](http://www.exilemod.com/profile/7143-janski/)
|
||||
If you want help with an issue, report a bug or maybe just request a new feature first make sure now one else have had the same issue by searching the [Issue Tracker](https://github.com/Bjanski/ExAd/issues) and the [Exile Forum](http://www.exilemod.com/).
|
||||
## Contact
|
||||
Janski doesn't reply as much anymore as he is not in the ArmA scene. But here is his [Exile profile](http://www.exilemod.com/profile/7143-janski/)
|
||||
Contact Monkeynutz Directly for a fast reply: [Monkey's Profile](http://www.exilemod.com/profile/61794-monkeynutz/)
|
||||
|
||||
If you want help with an issue, report a bug or maybe just request a new feature first make sure now one else have had the same issue by searching the [Issue Tracker](https://github.com/Bjanski/ExAd/issues) and the [Exile Forum](http://www.exilemod.com/topic/13865-exad-package-of-virtual-garagexm8statsbarhalo-parachuteadmin-eventshackinggrindingvehicle-upgrade/).
|
||||
|
@ -5,7 +5,7 @@
|
||||
## Client
|
||||
|
||||
* Place the folder "HaloParachute" into "mpmissions\exile.<MAP>\ExAd\"
|
||||
* Goto "mpmissions\exile.<MAP>\ExAd\CfgFunctions" and uncomment
|
||||
* Goto "mpmissions\exile.<MAP>\ExAdClient\CfgFunctions" and uncomment
|
||||
|
||||
From
|
||||
```cpp
|
||||
@ -16,6 +16,8 @@ To
|
||||
#include "HaloParachute\CfgFunctions.cpp"
|
||||
```
|
||||
|
||||
* Modify - "mpmissions\exile.<MAP>\stringtable.xml" - add if missing package="HaloParachute" and change to desirable notifications
|
||||
|
||||
* Now you can go into "mpmissions\exile.<MAP>\ExAdClient\HaloParachute\customize.sqf" and change to desirable settings.
|
||||
|
||||
## Server
|
||||
|
30
docs/HaloParachute/update.md
Normal file
30
docs/HaloParachute/update.md
Normal file
@ -0,0 +1,30 @@
|
||||
#HaloParachute
|
||||
## Instructions:
|
||||
|
||||
### v0.7.6
|
||||
* Replace or merge "mpmissions\Exile.<map>\ExAdClient\HaloParachute\customize.sqf"
|
||||
* Replace or merge "mpmissions\Exile.<map>\stringtable.xml"
|
||||
* Replace "mpmissions\Exile.<map>\ExAdClient\HaloParachute" - Big update
|
||||
|
||||
## v0.7.5
|
||||
* replace "mpmissions\Exile.<map>\ExAdClient\HaloParachute\postInit.sqf"
|
||||
* replace "mpmissions\Exile.<map>\ExAdClient\HaloParachute\Functions"
|
||||
* Replace battleye exceptions - Entities
|
||||
```cpp
|
||||
!="waitUntil {sleep 0.1; ({player distance _x < (10 max (sizeOf typeOf _x))} count (player nearEntities [\"Air\", 20])) == 0};"
|
||||
```
|
||||
|
||||
### v0.7.4
|
||||
* Replace folder "mpmissions\Exile.<map>\ExAdClient\HaloParachute\Functions"
|
||||
* Replace file "mpmissions\Exile.<map>\ExAdClient\HaloParachute\CfgFunctions.cpp"
|
||||
* Replace file "mpmissions\Exile.<map>\ExAdClient\HaloParachute\postInit.sqf"
|
||||
* Replace, or update manually, file "mpmissions\Exile.<map>\ExAdClient\HaloParachute\customize.sqf"
|
||||
|
||||
### v0.7.3
|
||||
* Replace "mpmissions\Exile.<map>\ExAdClient\HaloParachute\postInit.sqf"
|
||||
|
||||
### v0.5.1
|
||||
* Add battleye exceptions
|
||||
|
||||
### v0.5.0
|
||||
* Full installation
|
@ -1,2 +1,15 @@
|
||||
#Documentation
|
||||
Each subfolder withholds the choosen dokumentation including installation instruction and examples on useage.
|
||||
Each subfolder withholds the subproject's documentation including installation instruction and examples of usage.
|
||||
|
||||
To simplify the process for me, I've decided to simply divide everything and leave a changelog and update instructions in every subprojects documentation folder. This way you won't miss any information related to that subproject and it will be simple for me to keep the track off all changes with out skimming a general changelog.
|
||||
|
||||
## How to Update
|
||||
Since this project consist of multiple subprojects I've had some issues deciding how to structure the project for a simple update process.
|
||||
|
||||
#### Problems remember which version you have?
|
||||
General update for all mods are to
|
||||
* Replace plugin specific server files
|
||||
* Copy and save plugin specific customization file
|
||||
* Replace plugin client folder, e.g. "mpmission\Exile.<map>\ExAdClient\HaloParachute"
|
||||
* Compare old with new customize.sqf file - add extras
|
||||
* Replace app specific files if there are any, e.g. for Virtual Garage
|
||||
|
45
docs/Scratchie/installation.md
Normal file
45
docs/Scratchie/installation.md
Normal file
@ -0,0 +1,45 @@
|
||||
# Introduction
|
||||
|
||||
PLEASE NOTE THIS GUIDE ONLY COVERES THE ExAd MISSION FILE INSTALLATION.<br />
|
||||
THE MISSING SERVER AND DATABASE INSTRUCTION CAN BE FOUND [HERE](https://github.com/ole1986/a3-exile-scratchie/tree/ExAd)
|
||||
|
||||
**Requirements**
|
||||
|
||||
Please note that the Scratchie plugin has the following ExAd dependencies
|
||||
|
||||
* Core
|
||||
* XM8
|
||||
|
||||
**Installation**
|
||||
|
||||
* Copy the folder "source\ExAdClient\Scratchie" into "mpmissions\exile.\ExAdClient"
|
||||
|
||||
* Open the "mpmissions\exile.\ExAdClient\CfgFunctions.cpp" and add the following line inside `class ExAd`
|
||||
|
||||
```
|
||||
#include "Scratchie\CfgFunctions.cpp"
|
||||
```
|
||||
|
||||
* Amend the `class CfgXM8` from "mpmissions\exile.\config.cpp" the following (to make Scratchie app available in XM8)
|
||||
|
||||
```
|
||||
class CfgXM8 {
|
||||
extraApps[] = {"ExAd_Scratchie"};
|
||||
|
||||
class ExAd_Scratchie
|
||||
{
|
||||
title = "Play Scratchie";
|
||||
controlID = 80000;
|
||||
logo = "ExAdClient\Scratchie\icons\scratchie.paa";
|
||||
onLoad = "ExAdClient\Scratchie\onLoad.sqf";
|
||||
onOpen = "ExAdClient\Scratchie\onOpen.sqf";
|
||||
onClose = "ExAdClient\Scratchie\onClose.sqf";
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
* Customize the "mpmissions\exile.\description.ext" by adding the below line into `class CfgRemoteExec` -> `class Functions`
|
||||
|
||||
```
|
||||
class ExileServer_lottery_network_request { allowedTargets = 2; }
|
||||
```
|
39
docs/StatsBar/installation.md
Normal file
39
docs/StatsBar/installation.md
Normal file
@ -0,0 +1,39 @@
|
||||
# Installation
|
||||
|
||||
Remember for this plugin to work you first need to install
|
||||
* [Core](https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md)
|
||||
* [XM8](https://github.com/Bjanski/ExAd/blob/master/docs/xm8/installation.md)
|
||||
|
||||
## Client
|
||||
|
||||
* Place the folder "StatsBar" into "mpmissions\exile.<MAP>\ExAdClient\"
|
||||
* Goto "mpmissions\exile.<MAP>\ExAdClient\RscTitles.cpp" and uncomment
|
||||
```cpp
|
||||
//#include "StatsBar\RscTitles.cpp"
|
||||
```
|
||||
* Goto "mpmissions\exile.<MAP>\ExAdClient\CfgFunctions" and uncomment
|
||||
|
||||
_From_
|
||||
```cpp
|
||||
//#include "StatsBar\CfgFunctions.cpp"
|
||||
```
|
||||
_To_
|
||||
```cpp
|
||||
#include "StatsBar\CfgFunctions.cpp"
|
||||
```
|
||||
|
||||
* In "config.cpp" in the mission root folder, add to the following class "CfgXM8"
|
||||
```js
|
||||
class CfgXM8
|
||||
{
|
||||
extraApps[] = {"ExAd_SB"};
|
||||
|
||||
class ExAd_SB
|
||||
{
|
||||
title = "Statsbar Settings";
|
||||
controlID = 50400; //IDC:50400 -> 50475 || These need to be unique and out of range from each other
|
||||
logo = "exile_assets\texture\ui\xm8_app_settings_ca.paa";
|
||||
onLoad = "ExAdClient\XM8\Apps\SB_Settings\onLoad.sqf";
|
||||
};
|
||||
};
|
||||
```
|
5
docs/StatsBar/update.md
Normal file
5
docs/StatsBar/update.md
Normal file
@ -0,0 +1,5 @@
|
||||
#StatsBar
|
||||
## Instructions:
|
||||
|
||||
### 160801 . v0.8.0
|
||||
* Full installation
|
40
docs/VehicleSalvage/installation.md
Normal file
40
docs/VehicleSalvage/installation.md
Normal file
@ -0,0 +1,40 @@
|
||||
# Installation
|
||||
|
||||
Remember for this plugin to work you first need to install
|
||||
* [Core]((https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md)
|
||||
|
||||
## Client
|
||||
|
||||
* Make sure the VehicleSalvage folder is present in mpmissions\missionname.mapname\ExAdClient
|
||||
|
||||
* Goto "mpmissions\exile.<MAP>\ExAdClient\CfgFunctions" and uncomment
|
||||
|
||||
_From_
|
||||
```cpp
|
||||
//#include "VehicleSalvage\CfgFunctions.cpp"
|
||||
```
|
||||
_To_
|
||||
```cpp
|
||||
#include "VehicleSalvage\CfgFunctions.cpp"
|
||||
```
|
||||
|
||||
* In "config.cpp" find "CfgInteractionMenus"
|
||||
|
||||
* Under CfgInteractionMenus you will see "class Car"
|
||||
|
||||
* Add to the bottom of "class Car" menus this:
|
||||
|
||||
```cpp
|
||||
class ExAdSalvage: ExileAbstractAction
|
||||
{
|
||||
title = "<t color='#ff0000'>ExAd Salvage Aircraft</t>";
|
||||
condition = "(!(alive (ExileClientInteractionObject)))";
|
||||
action = "_this call ExAd_fnc_vehicleSalvage";
|
||||
};
|
||||
```
|
||||
|
||||
* Make sure it follows the formatting of the rest of the actions.
|
||||
|
||||
* Repeat this to add it to "class Air", "class Boat" and "class Tank" if you have it. Vanilla servers do not have "class Tank" so you may need to add it yourself.
|
||||
|
||||
ALL DONE! Enjoy :D
|
@ -1,48 +0,0 @@
|
||||
# Installation
|
||||
|
||||
Remember for this plugin to work you first need to install
|
||||
* [Core](https://github.com/Bjanski/ExAd/blob/Core/docs/core/installation.md)
|
||||
* [XM8 Apps Improved](https://github.com/vitalymind/XM8_apps_improved)
|
||||
|
||||
## Client
|
||||
|
||||
* Place the folder "VirtualGarage" into "mpmissions\exile.<MAP>\ExAdClient\"
|
||||
|
||||
* Goto "mpmissions\exile.<MAP>\ExAd\CfgFunctions" and uncomment
|
||||
|
||||
_From_
|
||||
```cpp
|
||||
//#include "VirtualGarage\CfgFunctions.cpp"
|
||||
```
|
||||
_To_
|
||||
```cpp
|
||||
#include "VirtualGarage\CfgFunctions.cpp"
|
||||
```
|
||||
* Repeat last step for "CfgHints"
|
||||
|
||||
* In "config.cpp" in the mission root folder, find class CfgExileCustomCode and add the following row
|
||||
```js
|
||||
ExileServer_system_territory_database_load = "EXOClient\CustomCode\ExileServer_system_territory_database_load.sqf";
|
||||
```
|
||||
* In "config.cpp" you can also add the ("CfgInteractionMenus" >> "Flag" >> "VG") class if you want to be able to fast load the app through your flag pole.
|
||||
|
||||
* Now you can go into "mpmissions\exile.<MAP>\ExAdClient\VirtualGarage\customize.sqf" and change to desirable settings.
|
||||
|
||||
### XM8 App
|
||||
|
||||
* Copy over "XM8_apps\apps\XM8_VG"
|
||||
* Add the app inside "XM8_apps\XM8_apps_config.sqf"
|
||||
* Add "mainVGSlide" in "XM8_apps\XM8_apps\XM8_apps_sliders.hpp"
|
||||
|
||||
## Server
|
||||
|
||||
* Copy over and pack "@ExileServer\addons\exad_vg" into a pbo.
|
||||
|
||||
## Database
|
||||
* Run the following sql command in you database.
|
||||
```sql
|
||||
ALTER TABLE `vehicle` ADD `territory_id` INT(11) UNSIGNED NULL DEFAULT NULL;
|
||||
ALTER TABLE `vehicle` ADD CONSTRAINT `vehicle_ibfk_2` FOREIGN KEY (`territory_id`) REFERENCES `territory`(`id`) ON DELETE CASCADE ON UPDATE RESTRICT;
|
||||
```
|
||||
|
||||
* Copy over content from "@ExileServer\extDB\sql_custom_v2\exile.ini" - Follow the instructions in the file.
|
11
docs/XM8/createApp.md
Normal file
11
docs/XM8/createApp.md
Normal file
@ -0,0 +1,11 @@
|
||||
#Create Apps
|
||||
|
||||
To create an app you need follow 4 simple steps
|
||||
|
||||
1.
|
||||
|
||||
2.
|
||||
|
||||
3.
|
||||
|
||||
4.
|
1
docs/XM8/examples.md
Normal file
1
docs/XM8/examples.md
Normal file
@ -0,0 +1 @@
|
||||
#Examples
|
42
docs/XM8/installation.md
Normal file
42
docs/XM8/installation.md
Normal file
@ -0,0 +1,42 @@
|
||||
# Installation
|
||||
|
||||
Remember for this plugin to work you first need to install
|
||||
* [Core](https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md)
|
||||
|
||||
## Client
|
||||
|
||||
* Place the folder "XM8" into "mpmissions\exile.<MAP>\ExAdClient\"
|
||||
|
||||
* Goto "mpmissions\exile.<MAP>\ExAdClient\CfgFunctions" and uncomment
|
||||
|
||||
_From_
|
||||
```cpp
|
||||
//#include "XM8\CfgFunctions.cpp"
|
||||
```
|
||||
_To_
|
||||
```cpp
|
||||
#include "XM8\CfgFunctions.cpp"
|
||||
```
|
||||
|
||||
* In "config.cpp" in the mission root folder, find class CfgExileCustomCode and add the following row
|
||||
```js
|
||||
ExileClient_gui_xm8_slide = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_slide.sqf";
|
||||
ExileClient_gui_xm8_show = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_show.sqf";
|
||||
```
|
||||
|
||||
* In "config.cpp" in the mission root folder, create following class "CfgXM8", e.g. with Virtual Garage app
|
||||
```js
|
||||
class CfgXM8
|
||||
{
|
||||
extraApps[] = {"ExAd_VG"};
|
||||
|
||||
class ExAd_VG
|
||||
{
|
||||
title = "Virtual Garage";
|
||||
controlID = 50000; //IDC:50000 -> 50014
|
||||
onLoad = "ExAdClient\XM8\Apps\VG\onLoad.sqf";
|
||||
onOpen = "ExAdClient\XM8\Apps\VG\onOpen.sqf";
|
||||
onClose = "ExAdClient\XM8\Apps\VG\onClose.sqf";
|
||||
};
|
||||
};
|
||||
```
|
5
docs/XM8/update.md
Normal file
5
docs/XM8/update.md
Normal file
@ -0,0 +1,5 @@
|
||||
#XM8
|
||||
## Instructions:
|
||||
|
||||
### 160603 . v0.7.7
|
||||
* Full installation
|
@ -3,7 +3,7 @@
|
||||
This is the core package that needs to be installed for all other ExAd plugins/addons to work.
|
||||
|
||||
IMPORTANT!!
|
||||
Keep the folder struction att all time when copying over files.
|
||||
Keep the folder structure at all time when copying over files.
|
||||
|
||||
## Client
|
||||
* Copy missionconfig classes from "mpmissions\Exile.Altis\description.ext\" into your own description.ext
|
||||
@ -29,9 +29,13 @@ class CfgFunctions
|
||||
};
|
||||
```
|
||||
* Copy over "Core" from "mpmissions\Exile.Altis\ExAdClient\"
|
||||
|
||||
* Copy over all files in "mpmissions\Exile.Altis\ExAdClient\"
|
||||
These files includes the installation requirements for all other ExAd plugins
|
||||
E.g in "mpmissions\Exile.Altis\ExAdClient\CfgFunctions.cpp" you can see that there are alot of lines commented out some of these need to be uncommented for plugins to work. Each plugin will describe more in detail which ones need to be adjusted.
|
||||
E.g in "mpmissions\Exile.Altis\ExAdClient\CfgFunctions.cpp" you can see that there are alot of lines commented out some of these need to be uncommented for plugins to work. Each plugin will describe more in detail which ones need to be adjusted.
|
||||
|
||||
* Copy over "mpmissions\exile.<MAP>\stringtable.xml"
|
||||
|
||||
## Server
|
||||
|
||||
* Navigate to "@ExileServer\addons\"
|
||||
|
29
docs/core/update.md
Normal file
29
docs/core/update.md
Normal file
@ -0,0 +1,29 @@
|
||||
#Core
|
||||
## Instructions:
|
||||
|
||||
### v0.7.7
|
||||
* Replace "mpmissions\Exile.<map>\ExAdClient\Core"
|
||||
|
||||
### v0.7.6
|
||||
* Replace or merge "mpmissions\Exile.<map>\ExAdClient\Core\customize.sqf"
|
||||
* Replace or merge "mpmissions\Exile.<map>\stringtable.xml"
|
||||
* Replace "mpmissions\Exile.<map>\ExAdClient\Core" - Big update
|
||||
* Replace and pack "@ExileServer\addons\exad_core"
|
||||
|
||||
### v0.7.3
|
||||
* Replace "mpmissions\Exile.<map>\ExAdClient\Core\postInit.sqf"
|
||||
|
||||
### v0.7.0
|
||||
* Replace "ExAdClient\Core\customize.sqf"
|
||||
|
||||
### v0.5.1
|
||||
* Description.ext was wrongly configured fixed ("CfgRemoteExec" >> "Functions")
|
||||
```js
|
||||
class ExAdServer_fnc_clientRequest { allowedTargets=2; };
|
||||
```
|
||||
|
||||
### v0.5.1
|
||||
* Add "ExAdClient\Core\Img"
|
||||
|
||||
### v0.5.0
|
||||
* Full installation
|
BIN
logo.png
BIN
logo.png
Binary file not shown.
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 10 KiB |
@ -21,9 +21,9 @@ class ExAd
|
||||
{
|
||||
tag = "ExAd";
|
||||
#include "Core\CfgFunctions.cpp"
|
||||
//#include "VirtualGarage\CfgFunctions.cpp"
|
||||
//#include "AdminEvents\CfgFunctions.cpp"
|
||||
//#include "Hacking\CfgFunctions.cpp"
|
||||
//#include "Grinding\CfgFunctions.cpp"
|
||||
//#include "HaloParachute\CfgFunctions.cpp"
|
||||
//#include "XM8\CfgFunctions.cpp"
|
||||
//#include "StatsBar\CfgFunctions.cpp"
|
||||
//#include "VehicleSalvage\CfgFunctions.cpp"
|
||||
};
|
||||
|
@ -30,4 +30,5 @@ class Utilities
|
||||
class advancedHint {};
|
||||
class call {};
|
||||
class getNearByLocalVeh {};
|
||||
class localize {};
|
||||
};
|
@ -15,8 +15,8 @@
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
params ["_fnc","_exception",["_server", false]];
|
||||
params ["_fnc","_exception"];
|
||||
|
||||
if(ExAd_Debug)then{
|
||||
diag_log format["ExAd%3 Debugger: Error in %1 - '%2'",_fnc, _exception, (if(_server)then{"Server"}else{""})]
|
||||
diag_log format["ExAd%3 Debugger: Error in %1 - '%2'",_fnc, _exception, (if(isDedicated)then{"Server"}else{""})]
|
||||
}
|
@ -0,0 +1 @@
|
||||
/*
fn_localize.sqf
Copyright 2016 Jan Babor
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
params [
["_key", "", [""]],
["_value","N/A",[""]]
];
if(count _key == 0)exitWith{["localize", "_key is undefined/empty"] call ExAd_fnc_DebugHandler};
call compile format['%1 = if(isLocalized "%1")then{localize "%1"}else{"%2"};', _key, _value];
true
|
BIN
mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_128.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_128.paa
Normal file
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_256.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_256.paa
Normal file
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_512.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_512.paa
Normal file
Binary file not shown.
Binary file not shown.
@ -16,4 +16,14 @@
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
ExAd_Debug = true; //True/False If you want the ExAd code to generate debug logs.
|
||||
ExAd_Debug = true; //BOOLEAN - If you want the ExAd code to generate debug logs
|
||||
Exad_Logging = true; //BOOLEAN - If you want the ExAd code to generate extra logs. - Requires InfiStar installed
|
||||
ExAd_Log_Folder = "ExAd_Logs"; //STRING - The folder ExAd writes logs to. You need to create the defined folder if it doesn't exist. If you don't create it - the DLL won't be able to write any Log files
|
||||
|
||||
ExAd_Hint_Title_Color = "#E48A36"; //STRING - Hint message color
|
||||
ExAd_Hint_Title_Size = 1.5; //SCALAR - Hint title size
|
||||
ExAd_Hint_Title_Font = "TahomaB"; //STRING - Hint title font
|
||||
|
||||
ExAd_Hint_Msg_Color = "#ffffff"; //STRING - Hint message color
|
||||
ExAd_Hint_Msg_Size = 1; //SCALAR - Hint message size
|
||||
ExAd_Hint_Msg_Font = "TahomaB"; //STRING - Hint message font
|
||||
|
@ -14,7 +14,25 @@
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
execVM "ExAdClient\Core\customize.sqf";
|
||||
_path = "ExAdClient\Core\customize.sqf";
|
||||
call compile preprocessFileLineNumbers _path;
|
||||
|
||||
if(isNil "ExAd_Debug")then{ExAd_Debug = true;};
|
||||
if(isNil "ExAd_Logging")then{ExAd_Logging = true;};
|
||||
if(isDedicated)then{
|
||||
if(!isClass(ConfigFile >> "CfgPatches" >> "a3_infiSTAR_Exile"))then{
|
||||
ExAd_Logging = false;
|
||||
["Core/postInit","Server can't find InfiStar addon"] call ExAd_fnc_debugHandler
|
||||
}
|
||||
};
|
||||
if(isNil "ExAd_Log_Folder")then{ExAd_Log_Folder = "ExAd_Logs";};
|
||||
|
||||
if(isNil "ExAd_Hint_Title_Color")then{ExAd_Hint_Title_Color = "#E48A36";};
|
||||
if(isNil "ExAd_Hint_Title_Size")then{ExAd_Hint_Title_Size = 1.5;};
|
||||
if(isNil "ExAd_Hint_Title_Font")then{ExAd_Hint_Title_Font = "TahomaB";};
|
||||
|
||||
if(isNil "ExAd_Hint_Msg_Color")then{ExAd_Hint_Msg_Color = "#ffffff";};
|
||||
if(isNil "ExAd_Hint_Msg_Size")then{ExAd_Hint_Msg_Size = 1;};
|
||||
if(isNil "ExAd_Hint_Msg_Font")then{ExAd_Hint_Msg_Font = "TahomaB";};
|
@ -18,8 +18,5 @@
|
||||
|
||||
|
||||
//#include "Core\ExAd.cpp"
|
||||
//#include "VirtualGarage\ExAd.cpp"
|
||||
//#include "AdminEvents\ExAd.cpp"
|
||||
//#include "Hacking\ExAd.cpp"
|
||||
//#include "Grinding\ExAd.cpp"
|
||||
//#include "HaloParachute\ExAd.cpp"
|
||||
//#include "HaloParachute\ExAd.cpp"
|
||||
|
@ -20,11 +20,10 @@
|
||||
class HaloParachute
|
||||
{
|
||||
file = "ExAdClient\HaloParachute\Functions";
|
||||
class canDetachParachute {};
|
||||
class ejectPlayer {};
|
||||
class parachutesafemode {};
|
||||
class pullParachute {};
|
||||
class showEject {};
|
||||
class showParachute {};
|
||||
class customize {file = "ExAdClient\HaloParachute\postInit.sqf"; postInit = 1;};
|
||||
class postInitHP {file = "ExAdClient\HaloParachute\postInit.sqf"; postInit = 1;};
|
||||
};
|
@ -18,10 +18,12 @@
|
||||
|
||||
private ["_parachuteObject"];
|
||||
|
||||
waitUntil {sleep 0.1; {player distance _x < 10 max (sizeOf typeOf _x)} count (player nearEntities ["Helicopter_Base_F", 20]) == 0};
|
||||
waitUntil {sleep 0.1; ({player distance _x < (10 max (sizeOf typeOf _x))} count (player nearEntities ["Air", 20])) == 0};
|
||||
|
||||
if (!alive player || vehicle player != player) exitWith {};
|
||||
|
||||
if(backpack player == "B_Parachute")then{removeBackpack player};
|
||||
|
||||
_parachuteObject = createVehicle ["Steerable_Parachute_F", getPosATL player, [], 0, "CAN_COLLIDE"];
|
||||
_parachuteObject setDir getDir player;
|
||||
|
||||
@ -37,8 +39,9 @@ if(ExAd_HALOPARACHUTE_SAFE_MODE)then{
|
||||
[ExAd_PARACHUTE_SAFE_THREAD] call ExileClient_system_thread_removeTask;
|
||||
};
|
||||
|
||||
if(ExAd_HALOPARACHUTE_DETACH_PARACHUTE_MODE)then{
|
||||
hint localize "STR_ExAd_HALOPARACHUTE_INFO_DETACH"
|
||||
if(ExAd_HALOPARACHUTE_USE_KEY_ACTIONS)then{
|
||||
//hint localize "STR_ExAd_HALOPARACHUTE_INFO_DETACH"
|
||||
[localize "STR_ExAd_HALOPARACHUTE_INFO_DETACH"] spawn ExileClient_gui_baguette_show;
|
||||
};
|
||||
|
||||
true
|
||||
true
|
||||
|
@ -17,6 +17,8 @@
|
||||
*/
|
||||
if(vehicle player != player)exitWith{false};
|
||||
|
||||
if(backpack player == "B_Parachute")exitWith{false};
|
||||
|
||||
_condition = false;
|
||||
|
||||
if((getPos player) select 2 > ExAd_ACTION_PARACHUTE_HEIGHT)then{
|
||||
|
@ -17,7 +17,8 @@
|
||||
*/
|
||||
|
||||
ExAd_HALOPARACHUTE_SAFE_MODE = false; //BOOLEAN - Force pull parachute when player reaches ExAd_ACTION_PARACHUTE_HEIGHT if they ejected from vehicle
|
||||
ExAd_HALOPARACHUTE_DETACH_PARACHUTE_MODE = false; //BOOLEAN - Allows player to detach himself from parachute
|
||||
ExAd_HALOPARACHUTE_USE_ACTIONS = true; //BOOLEAN - Allows player to eject from all vehicles with a pressed key combination 'Alt+Shift+V'
|
||||
ExAd_HALOPARACHUTE_USE_KEY_ACTIONS = true; //BOOLEAN - Show addActions on the screen
|
||||
|
||||
ExAd_ACTION_PARACHUTE_HEIGHT = 10; //SCALAR - What is the minimum altitude a player can pull a parachute. |RECOMMENDED 30 meters when safe_mode activated
|
||||
ExAd_ACTION_EJECT_HEIGHT = 100; //SCALAR - What is the minimum altitude a player can Halo/Eject from a vehicle.
|
||||
ExAd_ACTION_EJECT_HEIGHT = 100; //SCALAR - What is the minimum altitude a player can Halo/Eject from a vehicle.
|
||||
|
@ -17,7 +17,15 @@
|
||||
|
||||
*/
|
||||
|
||||
execVM "ExAdClient\HaloParachute\customize.sqf";
|
||||
_path = "ExAdClient\HaloParachute\customize.sqf";
|
||||
call compile preprocessFileLineNumbers _path;
|
||||
|
||||
|
||||
if(isNil "ExAd_HALOPARACHUTE_SAFE_MODE")then{ExAd_HALOPARACHUTE_SAFE_MODE = false;};
|
||||
if(isNil "ExAd_HALOPARACHUTE_USE_ACTIONS")then{ExAd_HALOPARACHUTE_USE_ACTIONS = true;};
|
||||
if(isNil "ExAd_HALOPARACHUTE_USE_KEY_ACTIONS")then{ExAd_HALOPARACHUTE_USE_KEY_ACTIONS = true;};
|
||||
if(isNil "ExAd_ACTION_PARACHUTE_HEIGHT")then{ExAd_ACTION_PARACHUTE_HEIGHT = 10;};
|
||||
if(isNil "ExAd_ACTION_EJECT_HEIGHT")then{ExAd_ACTION_EJECT_HEIGHT = 0;};
|
||||
|
||||
[] spawn {
|
||||
while {true} do {
|
||||
@ -27,25 +35,33 @@ execVM "ExAdClient\HaloParachute\customize.sqf";
|
||||
UISleep 0.1;
|
||||
waitUntil{alive player};
|
||||
|
||||
ExAd_ACTION_PARACHUTE = player addaction [format["<t color='#E48A36'><img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />%1</t>", localize "STR_ExAd_HALOPARACHUTE_ACTIONS_PARACHUTE"], {call ExAd_fnc_pullParachute}, [], 6, true, true, "", "call ExAd_fnc_showParachute"];
|
||||
ExAd_ACTION_EJECT = player addaction [format["<t color='#E48A36'><img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />%1</t>", localize "STR_ExAd_HALOPARACHUTE_ACTIONS_HALO"], {call ExAd_fnc_ejectPlayer}, [], 6, false, true, "", "call ExAd_fnc_showEject;"];
|
||||
if(ExAd_HALOPARACHUTE_USE_ACTIONS)then{
|
||||
ExAd_ACTION_PARACHUTE = player addaction [format["<t color='#E48A36'><img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />%1</t>", localize "STR_ExAd_HALOPARACHUTE_ACTIONS_PARACHUTE"], {[] spawn ExAd_fnc_pullParachute}, [], 6, true, true, "", "call ExAd_fnc_showParachute"];
|
||||
ExAd_ACTION_EJECT = player addaction [format["<t color='#E48A36'><img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />%1</t>", localize "STR_ExAd_HALOPARACHUTE_ACTIONS_HALO"], {call ExAd_fnc_ejectPlayer}, [], 6, false, true, "", "call ExAd_fnc_showEject;"];
|
||||
};
|
||||
|
||||
if(ExAd_HALOPARACHUTE_DETACH_PARACHUTE_MODE)then{
|
||||
ExAd_ACTION_PARACHUTE_DETACH = (findDisplay 46) displayAddEventHandler ["KeyDown",{
|
||||
if(call ExAd_fnc_canDetachParachute)then{
|
||||
if(_this select 1 == 45 && _this select 2 && _this select 4)then{
|
||||
if(ExAd_HALOPARACHUTE_USE_KEY_ACTIONS)then{
|
||||
ExAd_ACTION_HALOPARACHUTE_USE_KEY_ACTIONS = (findDisplay 46) displayAddEventHandler ["KeyDown",{
|
||||
if(_this select 1 == 47 && _this select 2 && _this select 4)then{
|
||||
if((getPos player) select 2 > ExAd_ACTION_EJECT_HEIGHT && vehicle player != player)then{
|
||||
call ExAd_fnc_ejectPlayer
|
||||
}
|
||||
}else{
|
||||
if(call ExAd_fnc_showParachute)then{
|
||||
[] spawn ExAd_fnc_pullParachute
|
||||
}
|
||||
}
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
waitUntil{!alive player};
|
||||
player removeAction ExAd_ACTION_PARACHUTE;
|
||||
player removeAction ExAd_ACTION_EJECT;
|
||||
if(ExAd_HALOPARACHUTE_USE_ACTIONS)then{
|
||||
player removeAction ExAd_ACTION_PARACHUTE;
|
||||
player removeAction ExAd_ACTION_EJECT;
|
||||
};
|
||||
|
||||
if(ExAd_HALOPARACHUTE_DETACH_PARACHUTE_MODE)then{
|
||||
(findDisplay 46) displayRemoveEventHandler ["KeyDown", ExAd_ACTION_PARACHUTE_DETACH];
|
||||
if(ExAd_HALOPARACHUTE_USE_KEY_ACTIONS)then{
|
||||
(findDisplay 46) displayRemoveEventHandler ["KeyDown", ExAd_ACTION_HALOPARACHUTE_USE_KEY_ACTIONS];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -17,4 +17,4 @@
|
||||
*/
|
||||
|
||||
|
||||
//#include "HUD\RscTitles.cpp"
|
||||
//#include "StatsBar\RscTitles.cpp"
|
@ -0,0 +1,3 @@
|
||||
class Scratchie {
|
||||
class postInitScratchie {file = "ExAdClient\Scratchie\postInit.sqf"; postInit = 1;};
|
||||
}
|
Binary file not shown.
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/Scratchie/icons/scratchie.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/Scratchie/icons/scratchie.paa
Normal file
Binary file not shown.
4
mpmissions/Exile.Altis/ExAdClient/Scratchie/onClose.sqf
Normal file
4
mpmissions/Exile.Altis/ExAdClient/Scratchie/onClose.sqf
Normal file
@ -0,0 +1,4 @@
|
||||
if (ExileClientXM8CurrentSlide == "ExAd_Scratchie") then {
|
||||
ExileClientXM8CurrentSlide = "apps";
|
||||
};
|
||||
ExAdCurFlagNetId = nil;
|
51
mpmissions/Exile.Altis/ExAdClient/Scratchie/onLoad.sqf
Normal file
51
mpmissions/Exile.Altis/ExAdClient/Scratchie/onLoad.sqf
Normal file
@ -0,0 +1,51 @@
|
||||
/*
|
||||
onLoad.sqf
|
||||
|
||||
Copyright 2017 ole
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
params["_display","_slide","_idc"];
|
||||
|
||||
_pW = 0.025;
|
||||
_pH = 0.04;
|
||||
_leftCol = 0;
|
||||
_leftColW = 10;
|
||||
|
||||
_margin = 0.02;
|
||||
|
||||
_posX = _margin + _leftCol * _pW;
|
||||
|
||||
_slideClass = "ExAd_Scratchie";
|
||||
|
||||
// fixing index issue from ExAd_fnc_getNextIDC and ExAd_fnc_getAppCtrl
|
||||
[_slideClass,"dummy"] call ExAd_fnc_getNextIDC;
|
||||
|
||||
[_display,_slide,([_slideClass,"InfoTitle"] call ExAd_fnc_getNextIDC),[_leftCol * _pW, 2.75 * _pH, 20 * _pW, 2 * _pH],"Counting Scratchies...","PuristaMedium",1.2,"#ffffff","left",1] call ExAd_fnc_createStructuredText;
|
||||
[_display,_slide,([_slideClass,"backButton"] call ExAd_fnc_getNextIDC),[27.6 * _pW, 17.7 * _pH, 6 * _pW, 1 * _pH],'["extraApps", 1] call ExileClient_gui_xm8_slide;','Back'] call ExAd_fnc_createButton;
|
||||
|
||||
/* Buy button */
|
||||
[_display,_slide,([_slideClass,"picBuy"] call ExAd_fnc_getNextIDC),[_posX, 5 * _pH, _leftColW * _pW, 7 * _pH],"ExAdClient\Scratchie\icons\scratchie-buy.paa",[1,1,1,1],false,false,""] call ExAd_fnc_createPicture;
|
||||
[_display,_slide,([_slideClass,"buyButton"] call ExAd_fnc_getNextIDC),[_posX, 12 * _pH, _leftColW*_pW, 1*_pH],"['buy',ExileClientSessionId, player, ''] remoteExecCall ['ExileServer_lottery_network_request', 2]; [] spawn Scratchie_UpdateCount;",'Buy Scratchie',""] call ExAd_fnc_createButton;
|
||||
|
||||
/* Use button */
|
||||
_posX = _posX + _margin + _leftColW * _pW;
|
||||
[_display,_slide,([_slideClass,"picUse"] call ExAd_fnc_getNextIDC),[_posX, 5 * _pH, _leftColW * _pW, 7 * _pH],"ExAdClient\Scratchie\icons\scratchie.paa",[1,1,1,1],false,false,""] call ExAd_fnc_createPicture;
|
||||
[_display,_slide,([_slideClass,"useButton"] call ExAd_fnc_getNextIDC),[_posX, 12 * _pH, _leftColW * _pW, 1 * _pH],"['use',ExileClientSessionId, player, ''] remoteExecCall ['ExileServer_lottery_network_request', 2]; [] spawn Scratchie_UpdateCount;",'Use Scratchie',""] call ExAd_fnc_createButton;
|
||||
|
||||
/* Get Prize button */
|
||||
_posX = _posX + _margin + _leftColW * _pW;
|
||||
[_display,_slide,([_slideClass,"picPrize"] call ExAd_fnc_getNextIDC),[_posX, 5 * _pH, _leftColW * _pW, 7 * _pH],"ExAdClient\Scratchie\icons\scratchie-prize.paa",[1,1,1,1],false,false,""] call ExAd_fnc_createPicture;
|
||||
[_display,_slide,([_slideClass,"useButton"] call ExAd_fnc_getNextIDC),[_posX, 12 * _pH, _leftColW * _pW, 1 * _pH],"['get',ExileClientSessionId, player, ''] remoteExecCall ['ExileServer_lottery_network_request', 2];",'Get Prize',""] call ExAd_fnc_createButton;
|
||||
|
||||
true
|
18
mpmissions/Exile.Altis/ExAdClient/Scratchie/onOpen.sqf
Normal file
18
mpmissions/Exile.Altis/ExAdClient/Scratchie/onOpen.sqf
Normal file
@ -0,0 +1,18 @@
|
||||
private ["_flags","_flag"];
|
||||
|
||||
try
|
||||
{
|
||||
_display = uiNameSpace getVariable ["RscExileXM8", displayNull];
|
||||
if(isNull _display)exitWith{
|
||||
throw "XM8 not loaded!";
|
||||
};
|
||||
|
||||
diag_log "Opening Scratchies slide";
|
||||
|
||||
[] spawn Scratchie_UpdateCount;
|
||||
}
|
||||
catch
|
||||
{
|
||||
["ErrorTitleAndText", ["ExAd - Scratchies", _exception]] call ExileClient_gui_toaster_addTemplateToast;
|
||||
["extraApps", 1] call ExileClient_gui_xm8_slide
|
||||
}
|
34
mpmissions/Exile.Altis/ExAdClient/Scratchie/postInit.sqf
Normal file
34
mpmissions/Exile.Altis/ExAdClient/Scratchie/postInit.sqf
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
postInit.sqf - Scratchie postInit used for ExAd
|
||||
|
||||
Copyright 2017 - ole1986
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
if (isDedicated) exitWith {};
|
||||
|
||||
private _code = {
|
||||
disableSerialization;
|
||||
|
||||
private _display = uiNameSpace getVariable ["RscExileXM8", displayNull];
|
||||
private _ctrl = [_display,"ExAd_Scratchie","InfoTitle"] call ExAd_fnc_getAppCtrl;
|
||||
|
||||
_ctrl ctrlSetStructuredText parseText "Counting Scratchies...";
|
||||
sleep 3;
|
||||
_ctrl ctrlSetStructuredText parseText (format ["You have <t color='#1ab42e'>%1 Scratchies</t> in your pocket", missionNamespace getVariable ["scratchieCount", 0]]);
|
||||
};
|
||||
|
||||
missionNamespace setVariable ['Scratchie_UpdateCount', _code];
|
||||
|
||||
diag_log "Loaded Scratchie postInit";
|
49
mpmissions/Exile.Altis/ExAdClient/StatsBar/CfgFunctions.cpp
Normal file
49
mpmissions/Exile.Altis/ExAdClient/StatsBar/CfgFunctions.cpp
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
CfgFunctions.cpp
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
class StatsBar
|
||||
{
|
||||
file = "ExAdClient\StatsBar\Functions";
|
||||
class formatNbrToPrefixStr {};
|
||||
class formatSBImage {};
|
||||
class formatSBOutput {};
|
||||
class getBankStr {};
|
||||
class getClanStr {};
|
||||
class getCompassStr {};
|
||||
class getFPSStr {};
|
||||
class getGridStr {};
|
||||
class getHPStr {};
|
||||
class getHungerStr {};
|
||||
class getKDStr {};
|
||||
class getPlayersStr {};
|
||||
class getRespectStr {};
|
||||
class getTempStr {};
|
||||
class getThirstStr {};
|
||||
class getTimerStr {};
|
||||
class getSBColor {};
|
||||
class getWalletStr {};
|
||||
class loadSB {};
|
||||
class sbPowerToggle {};
|
||||
class sbSave {};
|
||||
class sbStop {};
|
||||
class sbThread {};
|
||||
class toggleExileHUD {};
|
||||
class updateSB {};
|
||||
class postInitSB {file = "ExAdClient\StatsBar\postInit.sqf"; postInit = 1;};
|
||||
};
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
CfgFunctions.cpp
|
||||
|
||||
fn_formatNbrToPrefixStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -14,15 +14,10 @@
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
params [["_nbr", 0, [0]], ["_response", ""], ["_prefix", ""]];
|
||||
|
||||
_prefix = if( _nbr >= 1000 ) then { if( _nbr >= 1000000 ) then {_nbr = _nbr / 1000000; "M" } else {_nbr = _nbr / 1000; "K" } }else{ "" };
|
||||
|
||||
class VirtualGarage
|
||||
{
|
||||
file = "ExAdClient\VirtualGarage\Functions";
|
||||
class allowVGStore {};
|
||||
class fillVGList {};
|
||||
class loadVGDetailView {};
|
||||
class onBtnClickVG {};
|
||||
class postInit {file = "ExAdClient\VirtualGarage\postInit.sqf"; postInit = 1;};
|
||||
};
|
||||
format["%1%2", floor _nbr, _prefix]
|
@ -0,0 +1,21 @@
|
||||
/*
|
||||
fn_formatSBImage.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
params [["_src","",[""]],["_size",ExAd_SB_Img_Size,[0]]];
|
||||
|
||||
format["<img size='%2' image='%1' />", _src,_size]
|
@ -0,0 +1,26 @@
|
||||
/*
|
||||
fn_formatSBOutput.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
params [["_elements", [], [[]]], ["_color","",[""]], ["_text",""]];
|
||||
|
||||
{
|
||||
_text = format["%1%3%2", _text, _x, ExAd_SB_Text_InnerMargin];
|
||||
}forEach _elements;
|
||||
|
||||
_color = if(count _color > 0)then{format["color='%1'",_color]}else{_color};
|
||||
format["<t %3>%1%2%1</t>", ExAd_SB_Text_Margin , _text , _color ]
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
fn_loadVGDetailView.sqf
|
||||
|
||||
fn_getBankStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -14,14 +14,11 @@
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
params ["_text","_idc"];
|
||||
disableSerialization;
|
||||
private["_img","_text"];
|
||||
|
||||
_display = uiNameSpace getVariable ["RscExileXM8", displayNull];
|
||||
_img = [ExAd_SB_ICON_BANK] call ExAd_fnc_formatSBImage;
|
||||
_text = [player getVariable ["ExileLocker", 0]] call ExAd_fnc_formatNbrToPrefixStr;
|
||||
|
||||
if(isNull _display)exitWith{false};
|
||||
|
||||
(_display displayCtrl _idc) ctrlSetStructuredText parseText _text;
|
||||
|
||||
true
|
||||
[[_img, _text]] call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
fn_getClanStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_img","_text"];
|
||||
|
||||
_img = [ExAd_SB_ICON_CLAN] call ExAd_fnc_formatSBImage;
|
||||
_text = "N/A";
|
||||
|
||||
[[_img, _text]] call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,40 @@
|
||||
/*
|
||||
fn_getCompassStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_img","_dir"];
|
||||
|
||||
_img = [ExAd_SB_ICON_COMPASS] call ExAd_fnc_formatSBImage;
|
||||
_dir = direction player;
|
||||
|
||||
try
|
||||
{
|
||||
if(_dir >= 337.5 || _dir < 22.5 )then{throw "N"};
|
||||
if(_dir >= 22.5 && _dir < 67.5 )then{throw "NE"};
|
||||
if(_dir >= 67.5 && _dir < 112.5 )then{throw "E"};
|
||||
if(_dir >= 112.5 && _dir < 157.5 )then{throw "SE"};
|
||||
if(_dir >= 157.5 && _dir < 202.5 )then{throw "S"};
|
||||
if(_dir >= 202.5 && _dir < 247.5 )then{throw "SW"};
|
||||
if(_dir >= 247.5 && _dir < 292.5 )then{throw "W"};
|
||||
if(_dir >= 292.5 && _dir < 337.5 )then{throw "NW"};
|
||||
|
||||
throw "N/A"
|
||||
}
|
||||
catch
|
||||
{
|
||||
[[_img, _exception, round _dir]] call ExAd_fnc_formatSBOutput
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
fn_getFPSStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_request","_img","_text"];
|
||||
|
||||
_request = [];
|
||||
|
||||
_img = format["<t size='%1'>FPS</t>", ExAd_SB_Img_Size];
|
||||
_text = floor diag_fps;
|
||||
_request pushBack [_img,_text];
|
||||
|
||||
if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{
|
||||
_request pushBack ([0,40,_text] call ExAd_fnc_getSBColor)
|
||||
};
|
||||
|
||||
_request call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,26 @@
|
||||
/*
|
||||
fn_getGridStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_img","_grid","_text"];
|
||||
|
||||
_grid = mapGridPosition player;
|
||||
|
||||
_img = [ExAd_SB_ICON_GRID] call ExAd_fnc_formatSBImage;
|
||||
_text = format["%1|%2",_grid select [0,3],_grid select [3,3]];
|
||||
|
||||
[[_img, _text]] call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
fn_getHPStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_request","_img","_text"];
|
||||
|
||||
_request = [];
|
||||
|
||||
_img = [ExAd_SB_ICON_HP] call ExAd_fnc_formatSBImage;
|
||||
_text = round (ExileClientPlayerAttributes select 0);
|
||||
_request pushBack [_img,_text];
|
||||
|
||||
if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{
|
||||
_request pushBack ([0,100,_text] call ExAd_fnc_getSBColor)
|
||||
};
|
||||
|
||||
_request call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
fn_getHungerStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_request","_img","_text"];
|
||||
|
||||
_request = [];
|
||||
|
||||
_img = [ExAd_SB_ICON_HUNGER] call ExAd_fnc_formatSBImage;
|
||||
_text = round (ExileClientPlayerAttributes select 2);
|
||||
_request pushBack [_img,_text];
|
||||
|
||||
if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{
|
||||
_request pushBack ([0,100,_text] call ExAd_fnc_getSBColor)
|
||||
};
|
||||
|
||||
_request call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,34 @@
|
||||
/*
|
||||
fn_getClanStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_request","_death","_img","_text"];
|
||||
|
||||
_request = [];
|
||||
|
||||
_death = if(ExileClientPlayerDeaths == 0)then{0.001}else{ExileClientPlayerDeaths};
|
||||
|
||||
_img = [ExAd_SB_ICON_KD] call ExAd_fnc_formatSBImage;
|
||||
_text = [ExileClientPlayerKills / _death, 2] call ExileClient_util_math_round;
|
||||
|
||||
_request pushBack [_img,_text];
|
||||
|
||||
if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{
|
||||
_request pushBack ([0,2,_text] call ExAd_fnc_getSBColor)
|
||||
};
|
||||
|
||||
_request call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
fn_getPlayersStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_img","_text"];
|
||||
|
||||
_img = [ExAd_SB_ICON_PLAYERS] call ExAd_fnc_formatSBImage;
|
||||
_text = count allPlayers;
|
||||
|
||||
[[_img, _text]] call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
fn_getRespectStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_img","_text"];
|
||||
|
||||
_img = [ExAd_SB_ICON_RESPECT] call ExAd_fnc_formatSBImage;
|
||||
_text = [ExileClientPlayerScore] call ExAd_fnc_formatNbrToPrefixStr;
|
||||
|
||||
[[_img, _text]] call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,44 @@
|
||||
/*
|
||||
fn_getSBColor.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
params[["_min",0,[0]],["_max",1,[0]],["_cur",1,[0]],"_count","_diff","_color",""];
|
||||
|
||||
try
|
||||
{
|
||||
if(isNil "ExAd_SB_COMPONENTS_COLORS")then{throw ""};
|
||||
|
||||
_count = count ExAd_SB_COMPONENTS_COLORS;
|
||||
if(_count == 0)then{throw ""};
|
||||
|
||||
if(_cur > _max)then{_max = _cur};
|
||||
_diff = (_max - _min) / _count;
|
||||
_color = ExAd_SB_COMPONENTS_COLORS select 0;
|
||||
|
||||
for "_i" from 0 to _count do {
|
||||
if(_cur >= (_i * _diff) && _cur <= ((_i + 1) * _diff))then{throw (ExAd_SB_COMPONENTS_COLORS select _i);}
|
||||
};
|
||||
|
||||
throw _color;
|
||||
}
|
||||
catch
|
||||
{
|
||||
if(count _exception == 0)then{
|
||||
ExAd_SB_COMPONENTS_ACTIVE_COLORS = false;
|
||||
};
|
||||
_exception
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
/*
|
||||
fn_getTempStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_request","_img","_text"];
|
||||
|
||||
_request = [];
|
||||
|
||||
_img = [ExAd_SB_ICON_TEMP] call ExAd_fnc_formatSBImage;
|
||||
_temp = [ExileClientPlayerAttributes select 5, 1] call ExileClient_util_math_round;
|
||||
_text = _temp;
|
||||
|
||||
_request pushBack [_img,_text, "°C"];
|
||||
|
||||
if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{
|
||||
_request pushBack ([0,37,_text] call ExAd_fnc_getSBColor)
|
||||
};
|
||||
|
||||
_request call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
fn_getThirstStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_request","_img","_text"];
|
||||
|
||||
_request = [];
|
||||
|
||||
_img = [ExAd_SB_ICON_THIRST] call ExAd_fnc_formatSBImage;
|
||||
_text = round (ExileClientPlayerAttributes select 3);
|
||||
_request pushBack [_img,_text];
|
||||
|
||||
if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{
|
||||
_request pushBack ([0,100,_text] call ExAd_fnc_getSBColor)
|
||||
};
|
||||
|
||||
_request call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,39 @@
|
||||
/*
|
||||
fn_getTimerStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_request","_time","_hours","_minutes","_img","_text"];
|
||||
|
||||
_request = [];
|
||||
|
||||
_time = serverTime;
|
||||
_hours = (ExAd_SB_Timer - 1) - floor (_time / 3600);
|
||||
_minutes = 59 - floor ((_time % 3600) / 60);
|
||||
|
||||
_img = [ExAd_SB_ICON_TIMER] call ExAd_fnc_formatSBImage;
|
||||
_text = format["%1:%2", _hours,(if(_minutes < 10 )then{format["0%1",_minutes]}else{_minutes})];
|
||||
_request pushBack [_img,_text];
|
||||
|
||||
if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{
|
||||
if(_hours > 0)then{
|
||||
_request pushBack ([0,1,_hours] call ExAd_fnc_getSBColor)
|
||||
}else{
|
||||
_request pushBack ([0,60,_minutes] call ExAd_fnc_getSBColor)
|
||||
};
|
||||
};
|
||||
|
||||
_request call ExAd_fnc_formatSBOutput
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
fn_getWalletStr.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_img","_text"];
|
||||
|
||||
_img = [ExAd_SB_ICON_Wallet] call ExAd_fnc_formatSBImage;
|
||||
_text = [player getVariable ["ExileMoney", 0]] call ExAd_fnc_formatNbrToPrefixStr;
|
||||
|
||||
[[_img, _text]] call ExAd_fnc_formatSBOutput
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
fn_allowVGStore.sqf
|
||||
|
||||
fn_loadSB.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -14,15 +14,23 @@
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private ["_res","_flag"];
|
||||
private["_display"];
|
||||
|
||||
if(isNil "ExAdCurFlagNetId")exitWith{diag_log "ExAdClient: allowVGStore - ExAdCurFlagNetId is nil";false};
|
||||
_flag = objectFromNetId ExAdCurFlagNetId;
|
||||
disableSerialization;
|
||||
|
||||
_allowedVeh = ExAd_VG_MIN_ALLOWED_VEH + ExAd_VG_ALLOWED_VEH_MULTIPLE_FACTOR * (_flag getVariable ["ExileTerritoryLevel", 1]);
|
||||
_storedVeh = count (_flag getVariable ["ExAdVGVeh", []]);
|
||||
ExAd_SB_Dialog_Layer cutRsc ["ExAd_STATSBAR", "PLAIN", 1];
|
||||
|
||||
_display = uiNameSpace getVariable ["ExAd_STATSBAR",displayNull];
|
||||
_logoCtrl = _display displayCtrl ExAd_SB_Dialog_CtrlLogo_IDC;
|
||||
|
||||
_res = if(_allowedVeh > _storedVeh)then{true}else{false};
|
||||
if(count ExAd_SB_ICON_LOGO > 0)then{
|
||||
_logoCtrl ctrlSetText ExAd_SB_ICON_LOGO;
|
||||
};
|
||||
|
||||
_res
|
||||
call ExAd_fnc_updateSB;
|
||||
|
||||
ExAd_SB_Thread = [ExAd_SB_Update_Rate, ExAd_fnc_sbThread, [], true] call ExileClient_system_thread_addtask;
|
||||
|
||||
true
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
fn_sbPowerToggle.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
if(ExAd_SB_Active)then{
|
||||
call ExAd_fnc_sbStop
|
||||
}else{
|
||||
call ExAd_fnc_loadSB
|
||||
};
|
||||
|
||||
ExAd_SB_Active = !ExAd_SB_Active;
|
||||
|
||||
(_this select 0) ctrlSetText (if(!ExAd_SB_Active)then{STR_ExAd_SB_APP_BTN_SHOW}else{STR_ExAd_SB_APP_BTN_HIDE});
|
||||
call ExAd_SB_fnc_thread;
|
||||
|
||||
true
|
@ -0,0 +1,51 @@
|
||||
/*
|
||||
fn_sbSave.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
profileNamespace setVariable ["ExAd_SB_Update_Rate", ExAd_SB_Update_Rate];
|
||||
profileNamespace setVariable ["ExAd_SB_Active", ExAd_SB_Active];
|
||||
|
||||
profileNamespace setVariable ["ExAd_SB_GUI_POS", ExAd_SB_GUI_POS];
|
||||
profileNamespace setVariable ["ExAd_SB_GUI_TextColor", ExAd_SB_GUI_TextColor];
|
||||
profileNamespace setVariable ["ExAd_SB_GUI_BgColor", ExAd_SB_GUI_BgColor];
|
||||
|
||||
profileNamespace setVariable ["ExAd_SB_Text_Margin", ExAd_SB_Text_Margin];
|
||||
profileNamespace setVariable ["ExAd_SB_Text_InnerMargin", ExAd_SB_Text_InnerMargin];
|
||||
profileNamespace setVariable ["ExAd_SB_Text_Font", ExAd_SB_Text_Font];
|
||||
profileNamespace setVariable ["ExAd_SB_Text_Align", ExAd_SB_Text_Align];
|
||||
profileNamespace setVariable ["ExAd_SB_Text_Size", ExAd_SB_Text_Size];
|
||||
profileNamespace setVariable ["ExAd_SB_Img_Size", ExAd_SB_Img_Size];
|
||||
|
||||
profileNamespace setVariable ["ExAd_SB_Show_KD", ExAd_SB_Show_KD];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_HP", ExAd_SB_Show_HP];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Thirst", ExAd_SB_Show_Thirst];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Hunger", ExAd_SB_Show_Hunger];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Wallet", ExAd_SB_Show_Wallet];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Bank", ExAd_SB_Show_Bank];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Respect", ExAd_SB_Show_Respect];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_FPS", ExAd_SB_Show_FPS];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Time", ExAd_SB_Show_Time];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Temp", ExAd_SB_Show_Temp];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Grid", ExAd_SB_Show_Grid];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_Compass", ExAd_SB_Show_Compass];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_PlayerCount", ExAd_SB_Show_PlayerCount];
|
||||
profileNamespace setVariable ["ExAd_SB_Show_ClanCount", ExAd_SB_Show_ClanCount];
|
||||
|
||||
profileNamespace setVariable ["ExAd_SB_COMPONENTS_ACTIVE_COLORS", ExAd_SB_COMPONENTS_ACTIVE_COLORS];
|
||||
profileNamespace setVariable ["ExAd_SB_EXILE_HUD_ACTIVE", ExAd_SB_EXILE_HUD_ACTIVE];
|
||||
|
||||
true
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
CfgHints.cpp
|
||||
|
||||
fn_sbStop.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -14,9 +14,10 @@
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
class ExAd
|
||||
{
|
||||
displayName = "ExAd Virtual Garage";
|
||||
#include "VirtualGarage\CfgHints.cpp"
|
||||
};
|
||||
|
||||
ExAd_SB_Dialog_Layer cutText ["", "PLAIN"];
|
||||
[ExAd_SB_Thread] call ExileClient_system_thread_removeTask;
|
||||
|
||||
true
|
@ -0,0 +1,50 @@
|
||||
/*
|
||||
fn_sbThread.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_display","_statsBarCtrl","_text"];
|
||||
|
||||
disableSerialization;
|
||||
|
||||
_display = uiNameSpace getVariable ["ExAd_STATSBAR",displayNull];
|
||||
_statsBarCtrl = _display displayCtrl ExAd_SB_Dialog_CtrlBar_IDC;
|
||||
|
||||
_text = format[
|
||||
"<t align='%2' shadow='0' valign='middle' font='%1' size='%3'>%4%5%6%7%8%9%10%11%12%13%14%15%16%17%18%4</t>",
|
||||
ExAd_SB_Text_Font,
|
||||
ExAd_SB_Text_Align,
|
||||
ExAd_SB_Text_Size,
|
||||
ExAd_SB_Text_Margin,
|
||||
(if(ExAd_SB_Show_KD && ExAd_SB_Allow_KD)then{call ExAd_fnc_getKDStr}else{""}),
|
||||
(if(ExAd_SB_Show_HP && ExAd_SB_Allow_HP)then{call ExAd_fnc_getHPStr}else{""}),
|
||||
(if(ExAd_SB_Show_Thirst && ExAd_SB_Allow_Thirst)then{call ExAd_fnc_getThirstStr}else{""}),
|
||||
(if(ExAd_SB_Show_Hunger && ExAd_SB_Allow_Hunger)then{call ExAd_fnc_getHungerStr}else{""}),
|
||||
(if(ExAd_SB_Show_Wallet && ExAd_SB_Allow_Wallet)then{call ExAd_fnc_getWalletStr}else{""}),
|
||||
(if(ExAd_SB_Show_Bank && ExAd_SB_Allow_Bank)then{call ExAd_fnc_getBankStr}else{""}),
|
||||
(if(ExAd_SB_Show_Respect && ExAd_SB_Allow_Respect)then{call ExAd_fnc_getRespectStr}else{""}),
|
||||
(if(ExAd_SB_Show_FPS && ExAd_SB_Allow_FPS)then{call ExAd_fnc_getFPSStr}else{""}),
|
||||
(if(ExAd_SB_Show_Time && ExAd_SB_Allow_Time)then{call ExAd_fnc_getTimerStr}else{""}),
|
||||
(if(ExAd_SB_Show_Temp && ExAd_SB_Allow_Temp)then{call ExAd_fnc_getTempStr}else{""}),
|
||||
(if(ExAd_SB_Show_Grid && ExAd_SB_Allow_Grid)then{call ExAd_fnc_getGridStr}else{""}),
|
||||
(if(ExAd_SB_Show_Compass && ExAd_SB_Allow_Compass)then{call ExAd_fnc_getCompassStr}else{""}),
|
||||
(if(ExAd_SB_Show_PlayerCount && ExAd_SB_Allow_PlayerCount)then{call ExAd_fnc_getPlayersStr}else{""}),
|
||||
(if(ExAd_SB_Show_ClanCount && ExAd_SB_Allow_ClanCount)then{call ExAd_fnc_getClanStr}else{""})
|
||||
];
|
||||
|
||||
_statsBarCtrl ctrlSetStructuredText parseText _text;
|
||||
|
||||
true
|
@ -0,0 +1,51 @@
|
||||
/*
|
||||
fn_sbThread.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private["_display","_exileCtrl","_text"];
|
||||
|
||||
disableSerialization;
|
||||
|
||||
_display = uiNameSpace getVariable ["RscExileHUD",displayNull];
|
||||
_exileCtrl = _display displayCtrl 1300;
|
||||
|
||||
_exileCtrl ctrlShow ExAd_SB_EXILE_HUD_ACTIVE;
|
||||
|
||||
if(ExAd_SB_EXILE_HUD_ACTIVE)then{
|
||||
_hungerLabel = _display displayCtrl 1303;
|
||||
_hungerLabel ctrlShow (ExileHudMode isEqualTo 0);
|
||||
_hungerValue = _display displayCtrl 1302;
|
||||
_hungerValue ctrlShow (ExileHudMode isEqualTo 0);
|
||||
_thirstLabel = _display displayCtrl 1305;
|
||||
_thirstLabel ctrlShow (ExileHudMode isEqualTo 0);
|
||||
_thirstValue = _display displayCtrl 1304;
|
||||
_thirstValue ctrlShow (ExileHudMode isEqualTo 0);
|
||||
_healthLabel = _display displayCtrl 1307;
|
||||
_healthLabel ctrlShow (ExileHudMode isEqualTo 1);
|
||||
_healthValue = _display displayCtrl 1306;
|
||||
_healthValue ctrlShow (ExileHudMode isEqualTo 1);
|
||||
_environmentTemperatureLabel = _display displayCtrl 1309;
|
||||
_environmentTemperatureLabel ctrlShow (ExileHudMode isEqualTo 2);
|
||||
_environmentTemperatureValue = _display displayCtrl 1308;
|
||||
_environmentTemperatureValue ctrlShow (ExileHudMode isEqualTo 2);
|
||||
_bodyTemperatureLabel = _display displayCtrl 1311;
|
||||
_bodyTemperatureLabel ctrlShow (ExileHudMode isEqualTo 2);
|
||||
_bodyTemperatureValue = _display displayCtrl 1310;
|
||||
_bodyTemperatureValue ctrlShow (ExileHudMode isEqualTo 2);
|
||||
};
|
||||
|
||||
true
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
fn_sbThread.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
private ["_display","_statsBarCtrl"];
|
||||
_display = uiNameSpace getVariable ["ExAd_STATSBAR",displayNull];
|
||||
_statsBarCtrl = _display displayCtrl ExAd_SB_Dialog_CtrlBar_IDC;
|
||||
|
||||
_statsBarCtrl ctrlSetPosition ExAd_SB_GUI_POS;
|
||||
_statsBarCtrl ctrlSetBackgroundColor ExAd_SB_GUI_BgColor;
|
||||
_statsBarCtrl ctrlSetTextColor ExAd_SB_GUI_TextColor;
|
||||
_statsBarCtrl ctrlCommit 0;
|
||||
|
||||
true
|
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Bank.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Bank.paa
Normal file
Binary file not shown.
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Family.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Family.paa
Normal file
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Grid.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Grid.paa
Normal file
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Health.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Health.paa
Normal file
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Hunger.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Hunger.paa
Normal file
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_KD.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_KD.paa
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Temp.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Temp.paa
Normal file
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Thirst.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Thirst.paa
Normal file
Binary file not shown.
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Wallet.paa
Normal file
BIN
mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Wallet.paa
Normal file
Binary file not shown.
43
mpmissions/Exile.Altis/ExAdClient/StatsBar/RscTitles.cpp
Normal file
43
mpmissions/Exile.Altis/ExAdClient/StatsBar/RscTitles.cpp
Normal file
@ -0,0 +1,43 @@
|
||||
//Modified
|
||||
|
||||
#include "base.cpp"
|
||||
|
||||
class ExAd_STATSBAR
|
||||
{
|
||||
idd = 2186;
|
||||
movingEnable = 0;
|
||||
enableSimulation = 1;
|
||||
enableDisplay = 1;
|
||||
duration = 10e10;
|
||||
fadein = 0;
|
||||
fadeout = 0;
|
||||
name = "ExAd_STATSBAR";
|
||||
onLoad = "with uiNameSpace do { ExAd_STATSBAR = _this select 0 };";
|
||||
class controls
|
||||
{
|
||||
class StatsBar: RscStructuredText
|
||||
{
|
||||
idc = 1100;
|
||||
text = "";
|
||||
x = "safeZoneX";
|
||||
y = "safeZoneY + safeZoneH - 32 * pixelH";
|
||||
w = "safeZoneW";
|
||||
h = "30 * pixelH";
|
||||
};
|
||||
class Logo
|
||||
{
|
||||
type= 0;
|
||||
idc = 1000;
|
||||
x = "safeZoneX + safeZoneW - 128 * pixelW";
|
||||
y = "safeZoneY + 60 * pixelH - 32 * pixelH";
|
||||
w = "64 * pixelW";
|
||||
h = "64 * pixelH";
|
||||
style=48;
|
||||
colorBackground[]={0,0,0,0};
|
||||
colorText[]={0,0,0,1};
|
||||
font="TahomaB";
|
||||
sizeEx=0;
|
||||
text = "";
|
||||
};
|
||||
};
|
||||
};
|
23
mpmissions/Exile.Altis/ExAdClient/StatsBar/base.cpp
Normal file
23
mpmissions/Exile.Altis/ExAdClient/StatsBar/base.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
class RscStructuredText
|
||||
{
|
||||
deletable = 0;
|
||||
fade = 0;
|
||||
access = 0;
|
||||
type = 13;
|
||||
idc = -1;
|
||||
style = 0;
|
||||
colorText[] = {1,1,1,1};
|
||||
colorBackground[] = {0,0,0,0};
|
||||
class Attributes
|
||||
{
|
||||
font = "PuristaMedium";
|
||||
color = "#ffffff";
|
||||
colorLink = "#D09B43";
|
||||
align = "left";
|
||||
shadow = 0;
|
||||
};
|
||||
x = 0; y = 0; h = 0.035; w = 0.1;
|
||||
text = "";
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
shadow = 1;
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user