mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix GVARs in explosives wiki (#5416)
* Fixed GVARs in explosives wiki * Standardize double spaced comments
This commit is contained in:
parent
eb18d23181
commit
eacca05fda
@ -25,9 +25,10 @@ version:
|
||||
class CfgMagazines {
|
||||
class CA_Magazine;
|
||||
class banana_satchel_remote_mag: CA_Magazine {
|
||||
ACE_Placeable = 1; // Can be placed
|
||||
ACE_Explosives_Placeable = 1; // Can be placed
|
||||
useAction = 0; // Disable the vanilla interaction
|
||||
ACE_SetupObject = "banana_satchel_place"; // The object placed before the explosive is armed
|
||||
ACE_Explosives_SetupObject = "banana_satchel_place"; // The object placed before the explosive is armed
|
||||
ACE_Explosives_DelayTime = 1.5; // Seconds between trigger activation and explosion
|
||||
class ACE_Triggers { // Trigger configurations
|
||||
SupportedTriggers[] = {"Timer", "Command", "MK16_Transmitter", "DeadmanSwitch"}; // Triggers that can be used
|
||||
class Timer {
|
||||
@ -53,8 +54,8 @@ class CfgAmmo {
|
||||
soundDeactivation[] = {"", 0, 0, 0}; // No sound on deactivation
|
||||
triggerWhenDestroyed = 1; // (Optional) Explode when the object is shot and destroyed (after being placed) (0-disabled, 1-enabled).
|
||||
ACE_explodeOnDefuse = 0.02; // (Optional) Add a chance for the explosive to detonate after being disarmed (in percent)
|
||||
ACE_explosives_defuseObjectPosition[] = {-1.415, 0, 0.12}; // (Optional) The position relative to the model where the defuse helper object will be attached and thus the interaction point will be rendered
|
||||
ACE_explosives_size = 0; // (Optional) Setting to 1 will use a defusal action with a larger radius (useful for large mines or mines with a wide pressure plane trigger area)
|
||||
ACE_explosives_defuseObjectPosition[] = {-1.415, 0, 0.12}; // (Optional) The position relative to the model where the defuse helper object will be attached and thus the interaction point will be rendered
|
||||
ACE_explosives_size = 0; // (Optional) Setting to 1 will use a defusal action with a larger radius (useful for large mines or mines with a wide pressure plane trigger area)
|
||||
};
|
||||
};
|
||||
```
|
||||
@ -83,7 +84,7 @@ _Pretty much the same as Explosives except that we inherit from_ `ATMine_Range_M
|
||||
class CfgMagazines {
|
||||
class ATMine_Range_Mag;
|
||||
class BananaMine_Range_Mag: ATMine_Range_Mag {
|
||||
ACE_SetupObject = "BananaMine_Place"; // The object placed before the mine is armed
|
||||
ACE_Explosives_SetupObject = "BananaMine_Place"; // The object placed before the mine is armed
|
||||
class ACE_Triggers { // Triggers
|
||||
SupportedTriggers[] = {"PressurePlate"}; // This mine only support pressure plate activation
|
||||
class PressurePlate {
|
||||
@ -110,7 +111,8 @@ class CfgWeapons {
|
||||
class banana_clacker: ACE_Clacker {
|
||||
displayName = "banana clacker"; // Name of the item
|
||||
picture = ""; // Path to the item's picture
|
||||
ACE_Range = 9000; // Explosives activation range in meters
|
||||
ACE_Explosives_Range = 9000; // Explosives activation range in meters
|
||||
ACE_Explosives_triggerType = "Command"; // Trigger type, see below
|
||||
};
|
||||
};
|
||||
```
|
||||
@ -191,7 +193,7 @@ Jammer that blocks RF triggers:
|
||||
```cpp
|
||||
[{
|
||||
params ["_unit", "_range", "_explosive", "_fuzeTime", "_triggerItem"];
|
||||
if (_triggerItem == "ace_cellphone") exitWith { systemChat "Blocking Cell Phone"; false }; // always block cell phones
|
||||
if (_triggerItem == "ace_cellphone") exitWith { systemChat "Blocking Cell Phone"; false }; // always block cell phones
|
||||
if (_triggerItem == "ace_m26_clacker") exitWith {
|
||||
_range = _range / 1000;
|
||||
private _actualRange = _unit distance _explosive;
|
||||
|
Loading…
x
Reference in New Issue
Block a user