mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ACE_Settings entry for guidance.
This commit is contained in:
parent
104dd2258e
commit
61f5324d29
9
addons/missileguidance/ACE_Settings.hpp
Normal file
9
addons/missileguidance/ACE_Settings.hpp
Normal file
@ -0,0 +1,9 @@
|
||||
class ACE_Settings {
|
||||
class GVAR(enabled) {
|
||||
value = 1;
|
||||
typeName = "BOOL";
|
||||
isClientSetable = 1;
|
||||
displayName = "$STR_ACE_MissileGuidance";
|
||||
description = "$STR_ACE_MissileGuidance_Desc";
|
||||
};
|
||||
};
|
@ -9,7 +9,7 @@ class CfgPatches {
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "ACE_Settings.hpp"
|
||||
#include "CfgEventhandlers.hpp"
|
||||
#include "CfgAmmo.hpp"
|
||||
#include "CfgMagazines.hpp"
|
||||
|
@ -1,11 +1,14 @@
|
||||
#define DEBUG_MODE_FULL
|
||||
#include "script_component.hpp"
|
||||
PARAMS_7(_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
||||
|
||||
// Bail if guidance is disabled
|
||||
if(!GVAR(enabled)) exitWith { false };
|
||||
|
||||
// Bail on locality of the projectile, it should be local to us
|
||||
if(!local _projectile) exitWith { false };
|
||||
|
||||
private["_config", "_enabled", "_target", "_seekerType", "_attackProfile"];
|
||||
PARAMS_7(_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
||||
|
||||
_config = configFile >> "CfgAmmo" >> _ammo >> "ACE_MissileGuidance";
|
||||
_enabled = getNumber ( _config >> "enabled");
|
||||
|
30
addons/missileguidance/stringtable.xml
Normal file
30
addons/missileguidance/stringtable.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Edited with tabler - 2014-12-22 -->
|
||||
<Project name="ACE">
|
||||
<Package name="missileguidance">
|
||||
<Key ID="STR_ACE_MissileGuidance">
|
||||
<English>Advanced Missile Guidance</English>
|
||||
<Spanish>Avanzada Misiles Orientación</Spanish>
|
||||
<French>Avancée Missile orientation</French>
|
||||
<Polish>Asystent Missile</Polish>
|
||||
<German>Erweiterte Missile Guidance</German>
|
||||
<Czech>Advanced Missile Guidance</Czech>
|
||||
<Italian>Avanzato Missile Guidance</Italian>
|
||||
<Portuguese>Avançado Missile Guidance</Portuguese>
|
||||
<Hungarian>Részletes rakéta irányító</Hungarian>
|
||||
<Russian>Расширенный ракетой</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_MissileGuidance_Desc">
|
||||
<English>Enables advanced guidance mechanics and selection for different missiles and fire modes.</English>
|
||||
<Spanish></Spanish>
|
||||
<French></French>
|
||||
<Polish></Polish>
|
||||
<German></German>
|
||||
<Czech></Czech>
|
||||
<Italian></Italian>
|
||||
<Portuguese></Portuguese>
|
||||
<Hungarian></Hungarian>
|
||||
<Russian></Russian>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user