ACE3/addons/flashlights/CfgWeapons.hpp

106 lines
3.4 KiB
C++
Raw Normal View History

2015-08-11 17:59:50 +00:00
class CfgWeapons {
2019-11-21 17:20:05 +00:00
class Pistol_Base_F;
class ACE_Flashlight_Maglite_ML300L: Pistol_Base_F {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(Maglite_ML300L_DisplayName);
descriptionShort = CSTRING(Maglite_ML300L_Description);
model = QPATHTOF(data\maglite_ml300l.p3d);
picture = QPATHTOF(UI\maglite_ml300l_ca.paa);
scope = 2;
magazines[] = {};
recoil = "";
2019-11-21 17:26:31 +00:00
recoilProne = "";
distanceZoomMin = 50;
distanceZoomMax = 50;
2019-11-21 17:20:05 +00:00
autoFire = 0;
// Binarized version is just for testing purposes when using build.py aka makepbo
// rtms need to be binarized to work properly
// switch out for non binarized version and remove binarized rtm
handAnim[] = {"OFP2_ManSkeleton", QPATHTOF(data\maglite_ml300l_binarized.rtm)};
2019-11-21 17:20:05 +00:00
class FlashLight
2019-11-21 17:26:31 +00:00
{
color[] = {180,180,190};
2019-11-21 17:20:05 +00:00
ambient[] = {0.9,0.81,0.7};
intensity = 85;
size = 1;
innerAngle = 5;
outerAngle = 60;
coneFadeCoef = 8;
2019-11-21 17:26:31 +00:00
position = "flash dir";
2019-11-21 17:20:05 +00:00
direction = "flash";
2019-11-21 17:26:31 +00:00
useFlare = 1;
flareSize = 1.4;
2019-11-21 17:20:05 +00:00
flareMaxDistance = 100;
dayLight = 1;
2019-11-21 17:26:31 +00:00
class Attenuation {
2019-11-21 17:20:05 +00:00
start = 0;
constant = 0.7;
linear = 0.5;
quadratic = 0.6;
hardLimitStart = 45;
hardLimitEnd = 60;
};
scale[] = {0};
2019-11-21 17:26:31 +00:00
};
2019-11-21 17:20:05 +00:00
};
2015-08-11 17:59:50 +00:00
class ACE_ItemCore;
class CBA_MiscItem_ItemInfo;
2015-08-11 17:59:50 +00:00
2016-06-12 22:33:37 +00:00
class ACE_Flashlight_MX991: ACE_ItemCore {
author = ECSTRING(common,ACETeam);
2015-08-11 17:59:50 +00:00
displayName = CSTRING(MX991_DisplayName);
descriptionShort = CSTRING(MX991_Description);
2019-11-21 15:55:27 +00:00
model = QPATHTOF(data\mx_991.p3d);
picture = QPATHTOF(UI\mx_991_ca.paa);
2015-08-11 17:59:50 +00:00
scope = 2;
class ItemInfo: CBA_MiscItem_ItemInfo {
2015-08-11 17:59:50 +00:00
mass = 1;
2016-06-15 23:31:05 +00:00
class FlashLight {
ACE_Flashlight_Colour = "red";
ACE_Flashlight_Beam = QPATHTOF(UI\Flashlight_beam_red_ca.paa);
ACE_Flashlight_Size = 1.75;
2015-08-11 17:59:50 +00:00
};
};
};
2016-06-12 22:33:37 +00:00
class ACE_Flashlight_KSF1: ACE_ItemCore {
author = ECSTRING(common,ACETeam);
2015-08-11 17:59:50 +00:00
displayName = CSTRING(KSF1_DisplayName);
descriptionShort = CSTRING(KSF1_Description);
2019-11-21 15:05:36 +00:00
model = QPATHTOF(data\ksf_1.p3d);
picture = QPATHTOF(UI\ksf_1_ca.paa);
2015-08-11 17:59:50 +00:00
scope = 2;
class ItemInfo: CBA_MiscItem_ItemInfo {
2015-08-11 17:59:50 +00:00
mass = 1;
2016-06-15 23:31:05 +00:00
class FlashLight {
ACE_Flashlight_Colour = "red";
ACE_Flashlight_Beam = QPATHTOF(UI\Flashlight_beam_red_ca.paa);
ACE_Flashlight_Size = 1.5;
2015-08-11 17:59:50 +00:00
};
};
};
2016-06-12 22:33:37 +00:00
class ACE_Flashlight_XL50: ACE_ItemCore {
author = ECSTRING(common,ACETeam);
2015-08-11 17:59:50 +00:00
displayName = CSTRING(XL50_DisplayName);
descriptionShort = CSTRING(XL50_Description);
2019-11-21 15:09:28 +00:00
model = QPATHTOF(data\maglite_xl50.p3d);
picture = QPATHTOF(UI\maglite_xl50_ca.paa);
2015-08-11 17:59:50 +00:00
scope = 2;
class ItemInfo: CBA_MiscItem_ItemInfo {
2015-08-11 17:59:50 +00:00
mass = 1;
2016-06-15 23:31:05 +00:00
class FlashLight {
ACE_Flashlight_Colour = "white";
ACE_Flashlight_Beam = QPATHTOF(UI\Flashlight_beam_white_ca.paa);
ACE_Flashlight_Size = 2.15;
2015-08-11 17:59:50 +00:00
};
};
};
};