mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add day (non night vision) version of the vector 21
This commit is contained in:
parent
f8fb75247d
commit
23632281cf
@ -88,7 +88,7 @@ if (GVAR(ammoTemperatureEnabled) || GVAR(barrelLengthInfluenceEnabled)) then {
|
||||
|
||||
_bulletTraceVisible = false;
|
||||
if (GVAR(bulletTraceEnabled) && cameraView == "GUNNER") then {
|
||||
if (currentWeapon ACE_player in ["ACE_Vector", "Binocular", "Rangefinder", "Laserdesignator"]) then {
|
||||
if (currentWeapon ACE_player in ["ACE_Vector", "ACE_VectorDay", "Binocular", "Rangefinder", "Laserdesignator"]) then {
|
||||
_bulletTraceVisible = true;
|
||||
} else {
|
||||
if (currentWeapon ACE_player == primaryWeapon ACE_player && count primaryWeaponItems ACE_player > 2) then {
|
||||
|
@ -522,7 +522,7 @@ GVAR(menuRun) = true;
|
||||
(__dsp displayCtrl __mainText) ctrlSetText "Connecting...";
|
||||
};
|
||||
if (ACE_time - GVAR(busyTimer) > 0.6) then {
|
||||
if (ACE_player hasWeapon "ACE_Vector") then {
|
||||
if ((ACE_player hasWeapon "ACE_Vector") || {ACE_player hasWeapon "ACE_VectorDay"}) then {
|
||||
GVAR(displaySelection) = "VECTOR";
|
||||
(__dsp displayCtrl __mainText) ctrlSetText "Vector Connected";
|
||||
GVAR(vectorConnected) = true;
|
||||
|
@ -13,4 +13,9 @@ class CfgWeapons {
|
||||
opticsZoomMin = 0.06621;
|
||||
weaponInfoType = "ACE_RscOptics_vector";
|
||||
};
|
||||
class ACE_VectorDay: ACE_Vector {
|
||||
author = ECSTRING(common,ACETeam);
|
||||
displayName = CSTRING(VectorDayName);
|
||||
visionMode[] = {"Normal"};
|
||||
};
|
||||
};
|
||||
|
@ -3,7 +3,7 @@
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
units[] = {"ACE_Item_Vector"};
|
||||
weapons[] = {"ACE_Vector"};
|
||||
weapons[] = {"ACE_Vector", "ACE_VectorDay"};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"ace_common"};
|
||||
author[] = {"Ghost","Hamburger SV","commy2","bux578"};
|
||||
|
@ -7,7 +7,7 @@ PFH executed while holding a vector key down.
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (currentWeapon ACE_player != "ACE_Vector") exitWith {
|
||||
if (!(currentWeapon ACE_player in ["ACE_Vector", "ACE_VectorDay"])) exitWith {
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
|
||||
GVAR(currentMode) = "";
|
||||
|
@ -5,7 +5,7 @@
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
// Conditions: specific
|
||||
if !(currentWeapon ACE_player == "ACE_Vector" && {cameraView == "GUNNER"}) exitWith {false};
|
||||
if !((currentWeapon ACE_player in ["ACE_Vector", "ACE_VectorDay"]) && {cameraView == "GUNNER"}) exitWith {false};
|
||||
|
||||
// prevent holding down
|
||||
if (GETGVAR(isDownStateKey1,false)) exitWith {false};
|
||||
@ -34,7 +34,7 @@
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
// Conditions: specific
|
||||
if !(currentWeapon ACE_player == "ACE_Vector" && {cameraView == "GUNNER"}) exitWith {false};
|
||||
if !((currentWeapon ACE_player in ["ACE_Vector", "ACE_VectorDay"]) && {cameraView == "GUNNER"}) exitWith {false};
|
||||
|
||||
// prevent holding down
|
||||
if (GETGVAR(isDownStateKey2,false)) exitWith {false};
|
||||
|
@ -2,6 +2,18 @@
|
||||
<Project name="ACE">
|
||||
<Package name="Vector">
|
||||
<Key ID="STR_ACE_Vector_VectorName">
|
||||
<English>Vector 21 Nite</English>
|
||||
<German>Vector 21 Nite</German>
|
||||
<Spanish>Vector 21 Nite</Spanish>
|
||||
<French>Vector 21 Nite</French>
|
||||
<Polish>Vector 21 Nite</Polish>
|
||||
<Czech>Vector 21 Nite</Czech>
|
||||
<Italian>Vector 21 Nite</Italian>
|
||||
<Hungarian>Vector 21 Nite</Hungarian>
|
||||
<Portuguese>Vector 21 Nite</Portuguese>
|
||||
<Russian>Vector 21 Nite</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Vector_VectorDayName">
|
||||
<English>Vector 21</English>
|
||||
<German>Vector 21</German>
|
||||
<Spanish>Vector 21</Spanish>
|
||||
|
Loading…
Reference in New Issue
Block a user