mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Config to enable / disable needed items for actions
Also increased needed "bullets" to inflame
This commit is contained in:
parent
353960e38a
commit
25d2f2b24f
@ -272,6 +272,7 @@ if (_dikCode in (actionKeys "NightVision")) then {
|
|||||||
if(!_ctrl && (_dikCode in (actionKeys "HeliRopeAction")))then{
|
if(!_ctrl && (_dikCode in (actionKeys "HeliRopeAction")))then{
|
||||||
_msg = "";
|
_msg = "";
|
||||||
if(EPOCH_ArmaSlingLoad)then{
|
if(EPOCH_ArmaSlingLoad)then{
|
||||||
|
if (["CfgEpochClient", "ActionHookRope", true] call EPOCH_fnc_returnConfigEntryV2) then {
|
||||||
if(driver vehicle player isEqualTo player)then{
|
if(driver vehicle player isEqualTo player)then{
|
||||||
_slung = ropeAttachedObjects vehicle player;
|
_slung = ropeAttachedObjects vehicle player;
|
||||||
if(_slung isEqualTo [])then{
|
if(_slung isEqualTo [])then{
|
||||||
@ -285,6 +286,7 @@ if(!_ctrl && (_dikCode in (actionKeys "HeliRopeAction")))then{
|
|||||||
player addItem 'ItemRope';
|
player addItem 'ItemRope';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}else{
|
}else{
|
||||||
_msg = "Hook/Unhook Malfunction, overrode by R3F or AdvSlingLoad";
|
_msg = "Hook/Unhook Malfunction, overrode by R3F or AdvSlingLoad";
|
||||||
_handled = true;
|
_handled = true;
|
||||||
@ -293,5 +295,4 @@ if(!_ctrl && (_dikCode in (actionKeys "HeliRopeAction")))then{
|
|||||||
[_msg,5,[[0,0,0,0.2],[1,1,1,1]]] call Epoch_message_stack;
|
[_msg,5,[[0,0,0,0.2],[1,1,1,1]]] call Epoch_message_stack;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
_handled
|
_handled
|
||||||
|
@ -26,17 +26,21 @@ params [
|
|||||||
_blocked = false;
|
_blocked = false;
|
||||||
_msg = '';
|
_msg = '';
|
||||||
_type = typeOf _actionObj;
|
_type = typeOf _actionObj;
|
||||||
switch(true)do{
|
_config = 'CfgEpochClient' call EPOCH_returnConfig;
|
||||||
case (_actionName isEqualTo 'FireInflame'): {
|
switch(_actionName)do{
|
||||||
|
case 'FireInflame': {
|
||||||
|
if (["CfgEpochClient", "ActionFireOnLighter", true] call EPOCH_fnc_returnConfigEntryV2) then {
|
||||||
if!('lighter_epoch' in magazines player) then {
|
if!('lighter_epoch' in magazines player) then {
|
||||||
_msg = 'You need a lighter';
|
_msg = 'You need a lighter';
|
||||||
_blocked = true;
|
_blocked = true;
|
||||||
}else{
|
}else{
|
||||||
[player,'lighter_epoch',-1] call EPOCH_usedItemRepack;
|
[player,'lighter_epoch',-5] call EPOCH_usedItemRepack;
|
||||||
//[_actionObj] remoteExec ['EPOCH_server_addToFireSystem',2];
|
//[_actionObj] remoteExec ['EPOCH_server_addToFireSystem',2];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
case (_actionName isEqualTo 'FirePutDown'): {
|
};
|
||||||
|
case 'FirePutDown': {
|
||||||
|
if (["CfgEpochClient", "ActionBurnBarrelOffExtinguisher", true] call EPOCH_fnc_returnConfigEntryV2) then {
|
||||||
if(_type isEqualTo 'BurnBarrel_EPOCH')then{
|
if(_type isEqualTo 'BurnBarrel_EPOCH')then{
|
||||||
if!('ItemFireExtinguisher' in magazines player) then {
|
if!('ItemFireExtinguisher' in magazines player) then {
|
||||||
_msg = 'You need an extinguisher';
|
_msg = 'You need an extinguisher';
|
||||||
@ -46,8 +50,10 @@ switch(true)do{
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
case (_actionName isEqualTo 'HookCargo'): {
|
};
|
||||||
|
case 'HookCargo': {
|
||||||
if(EPOCH_ArmaSlingLoad)then{
|
if(EPOCH_ArmaSlingLoad)then{
|
||||||
|
if (["CfgEpochClient", "ActionHookRope", true] call EPOCH_fnc_returnConfigEntryV2) then {
|
||||||
if(driver vehicle player isEqualTo player)then{
|
if(driver vehicle player isEqualTo player)then{
|
||||||
_slung = ropeAttachedObjects vehicle player;
|
_slung = ropeAttachedObjects vehicle player;
|
||||||
if(_slung isEqualTo [])then{
|
if(_slung isEqualTo [])then{
|
||||||
@ -61,14 +67,17 @@ switch(true)do{
|
|||||||
player addItem 'ItemRope';
|
player addItem 'ItemRope';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}else{
|
}else{
|
||||||
_msg = 'Hook Malfunction, overrode by R3F or AdvSlingLoad';
|
_msg = 'Hook Malfunction, overrode by R3F or AdvSlingLoad';
|
||||||
_blocked = true;
|
_blocked = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
case (_actionName isEqualTo 'UnhookCargo'): {
|
case 'UnhookCargo': {
|
||||||
if(EPOCH_ArmaSlingLoad)then{
|
if(EPOCH_ArmaSlingLoad)then{
|
||||||
|
if (["CfgEpochClient", "ActionHookRope", true] call EPOCH_fnc_returnConfigEntryV2) then {
|
||||||
player addItem 'ItemRope';
|
player addItem 'ItemRope';
|
||||||
|
};
|
||||||
}else{
|
}else{
|
||||||
_msg = 'Unhook Malfunction, overrode by R3F or AdvSlingLoad';
|
_msg = 'Unhook Malfunction, overrode by R3F or AdvSlingLoad';
|
||||||
_blocked = true;
|
_blocked = true;
|
||||||
|
@ -59,6 +59,10 @@ class CfgEpochClient
|
|||||||
AtmBlockedAtPlot = "true"; // Block ATM's in Plotpole-Range
|
AtmBlockedAtPlot = "true"; // Block ATM's in Plotpole-Range
|
||||||
disableRemoteSensors = "true"; // disableRemoteSensors true/false
|
disableRemoteSensors = "true"; // disableRemoteSensors true/false
|
||||||
|
|
||||||
|
ActionFireOnLighter = "true"; // Lighter is needed to inflame fires
|
||||||
|
ActionBurnBarrelOffExtinguisher = "true"; // FireExtinguisher is needed to put off fires
|
||||||
|
ActionHookRope = "true"; // Rope is needed to hook vehicles (get back on release)
|
||||||
|
|
||||||
epochMessageBackgroundCol[] = {0,0,0,0.2}; //Epoch_message background color (format: {R,G,B,A})
|
epochMessageBackgroundCol[] = {0,0,0,0.2}; //Epoch_message background color (format: {R,G,B,A})
|
||||||
epochMessageTextCol[] = {1,1,1,0.95}; //Epoch_message text color (format: {R,G,B,A})
|
epochMessageTextCol[] = {1,1,1,0.95}; //Epoch_message text color (format: {R,G,B,A})
|
||||||
//to use different colored messages in scripts, just call it this way: ["the message", 6, [[0,0,0,0.2],[1,1,1,0.95]]] call Epoch_message;
|
//to use different colored messages in scripts, just call it this way: ["the message", 6, [[0,0,0,0.2],[1,1,1,0.95]]] call Epoch_message;
|
||||||
|
Loading…
Reference in New Issue
Block a user