#define RFIND(h,n) (call {\
private _offset = count (h) - count (n);\
private _index = _offset - (reverse (h) find reverse (n));\
[_index, -1] select (_index > _offset)\
})
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# booleans | |
TRUE = lambda a: lambda b: a | |
FALSE = lambda a: lambda b: b | |
assert TRUE(1)(0) == True | |
assert FALSE(1)(0) == False | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// init.sqf | |
#define TEXT_REPAIR "Repair Sensor" | |
#define ICON_REPAIR "\a3\ui_f\data\igui\cfg\simpletasks\types\repair_ca.paa" | |
#define REPAIR_TIME 5 | |
private _toolkit = configName (configFile >> "CfgWeapons" >> "ToolKit"); | |
["Mission_Repaired", { | |
params ["_unit", "_target", "_toolkit", "_canRepair"]; | |
hint "REPAIR DONE"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// description.ext | |
class Extended_DisplayLoad_EventHandlers { | |
class RscDisplayAVTerminal { | |
Mission = "'Mission_UAVTerminalOpened' call CBA_fnc_localEvent"; | |
}; | |
}; | |
// init.sqf | |
Mission_isUAVControlTaken = false; | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private _pairs = [ | |
[PunktEins, "wpPunkt11"], | |
[PunktZwei, "wpPunkt21"], | |
[PunktDrei, "wpPunkt22"], | |
[PunktVier, "wpPunkt31"], | |
[PunktFuenf, "wpPunkt32"], | |
[PunktSechs, "wpPunkt33"], | |
[PunktSieben, "wpPunkt34"], | |
[PunktAcht, "wpPunkt41"], | |
[PunktNeun, "wpPunkt42"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
init.sqf | |
Trigger: PuEiSta | |
*/ | |
if (isServer) then { | |
0 spawn { | |
waitUntil { | |
waitUntil { | |
// Transition to "Blue controlled" state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// description.ext | |
class CfgFunctions { | |
#include "CfgFunctions.hpp" | |
#include "KP\KPPLM\KPPLM_functions.hpp" | |
class SAF { | |
#define SAF_FNCS | |
#include "sushi_scripts\core\init.cpp" | |
#include "sushi_scripts\breach\init.cpp" | |
#undef SAF_FNCS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// init.sqf | |
["weaponMode", { | |
params ["_unit", "_newWeaponMode", "_oldWeaponMode"]; | |
private _weapon = currentMuzzle _unit; | |
if (_newWeaponMode != "Single") then { | |
private _weapons = ["arifle_MX_F", "hlc_rifle_CQBR"]; | |
private _cfgWeapons = configFile >> "CfgWeapons"; | |
if (_weapons findIf {_weapon isKindOf [_x, _cfgWeapons]} != -1) then { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// init.sqf | |
["weaponMode", { | |
params ["_unit", "_newWeaponMode", "_oldWeaponMode"]; | |
private _weapon = currentMuzzle _unit; | |
if (_weapon isKindOf ["hlc_rifle_CQBR", configFile >> "CfgWeapons"] && _newWeaponMode != "Single") then { | |
[_unit, _weapon, "Single"] call CBA_fnc_selectWeapon; | |
}; | |
}, true] call CBA_fnc_addPlayerEventHandler; |
NewerOlder