331 lines
7.7 KiB
C++
331 lines
7.7 KiB
C++
class braf_hk33 : Rifle_Base_F {
|
|
author = "NIArms Team";
|
|
displayName = "Heckler Koch HK33 5,56mm";
|
|
scope = public;
|
|
magazines[] = {"braf_30Rnd_556x45_HK"};
|
|
magazineWell[] = {BRAF_HK_556};
|
|
soundBipodDeploy[] = {"A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_generic_deploy",0.70794576,1,20};
|
|
soundBipodFold[] = {"A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_generic_fold",0.70794576,1,20};
|
|
soundBipodDown[] = {"A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_generic_down",0.70794576,1,20};
|
|
soundBipodUp[] = {"A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_generic_up",0.70794576,1,20};
|
|
deployedPivot = "bipod";
|
|
hasBipod = 0;
|
|
class Library {
|
|
libTextDesc = "Heckler Koch HK33";
|
|
};
|
|
model = "\braf\braf_weapons_assault_rifles\556mm_hk33\Hk33\hk33.p3d"; /// path to model
|
|
picture = "\braf\braf_weapons_assault_rifles\556mm_HK33\data\ui\hk33.paa";
|
|
reloadAction = "braf_GestureReloadHK33";
|
|
magazineReloadSwitchPhase = 0.3; // magazine will get replaced pretty early
|
|
handAnim[] = {"OFP2_ManSkeleton", "braf\braf_weapons_anim\animations\556mm_HK33\l1a1_hands.rtm"}; /// MX hand animation actually fits this rifle well
|
|
maxZeroing = 1600;
|
|
discreteDistanceInitIndex = 2;
|
|
maxRecoilSway = 0.0125;
|
|
swayDecaySpeed = 1.25;
|
|
hiddenSelections[] = {"camo1","camo2","camo3"};
|
|
hiddenSelectionsTextures[] = {"braf\braf_weapons_assault_rifles\556mm_HK33\data\m964_co.paa","braf\braf_weapons_assault_rifles\556mm_HK33\data\m964_co.paa","braf\braf_weapons_assault_rifles\556mm_HK33\data\trilho.paa"};
|
|
discreteDistance[] = { 100, 200, 300, 400 };
|
|
discreteDistanceCameraPoint[] = { "eye", "eye_200", "eye_300", "eye_400" }; /// the angle of gun changes with zeroing
|
|
cameraDir = "eye_look";
|
|
class GunParticles : GunParticles{
|
|
class EjectEffect {
|
|
positionName="Nabojnicestart";
|
|
directionName="Nabojniceend";
|
|
effectName="CaselessAmmoCloud";
|
|
};
|
|
class SecondEffect {
|
|
effectName = "ShotUnderwater";
|
|
positionName = "usti hlavne";
|
|
directionName = "konec hlavne";
|
|
};
|
|
class RifleAmmoCloud {
|
|
positionName="Nabojnicestart";
|
|
directionName="Nabojniceend";
|
|
effectName="CaselessAmmoCloud";
|
|
};
|
|
class SmokeEffect {
|
|
positionName="usti hlavne";
|
|
directionName="usti hlavne";
|
|
effectName="RifleAssaultCloud";
|
|
};
|
|
};
|
|
|
|
class WeaponSlotsInfo : WeaponSlotsInfo {
|
|
class MuzzleSlot : SlotInfo {
|
|
iconPicture = "\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
|
|
iconScale = 0.2;
|
|
iconPinpoint = "Center";
|
|
iconPosition[] = {0, 0.45};
|
|
linkProxy = "\A3\data_f\proxies\weapon_slots\MUZZLE";
|
|
compatibleItems[] = {"muzzle_snds_M","muzzle_snds_m_khk_F","muzzle_snds_m_snd_F"};
|
|
};
|
|
|
|
class CowsSlot : asdg_OpticRail1913_short {
|
|
iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
|
|
iconPosition[] = {0.5, 0.36};
|
|
iconPinpoint = "Bottom";
|
|
iconScale = 0.2;
|
|
};
|
|
|
|
class PointerSlot : asdg_FrontSideRail {
|
|
iconPicture = "\A3\Weapons_F\Data\UI\attachment_side.paa";
|
|
iconPinpoint = "Center";
|
|
iconPosition[] = {0.3, 0.42};
|
|
iconScale = 0.25;
|
|
};
|
|
|
|
class UnderBarrelSlot : asdg_UnderSlot {
|
|
iconPicture = "\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
|
|
linkProxy = "\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
|
|
iconPosition[] = {0.32, 0.55};
|
|
iconScale = 0.2;
|
|
iconPinpoint = "Center";
|
|
};
|
|
};
|
|
distanceZoomMin = 100;
|
|
distanceZoomMax = 600;
|
|
|
|
changeFiremodeSound[]=
|
|
{
|
|
"braf\braf_weapons_assault_rifles\556mm_HK33\sounds\firemode",
|
|
0.6,
|
|
1,
|
|
5
|
|
};
|
|
drySound[]=
|
|
{
|
|
"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_Dry",
|
|
0.25118864,
|
|
1,
|
|
20
|
|
};
|
|
reloadMagazineSound[]=
|
|
{
|
|
"braf\braf_weapons_assault_rifles\556mm_HK33\sounds\Hk_reload",
|
|
0.630957,
|
|
1,
|
|
35
|
|
};
|
|
modes[]=
|
|
{
|
|
"Single",
|
|
"FullAuto",
|
|
"single_close_optics1",
|
|
"single_medium_optics1",
|
|
"single_far_optics1",
|
|
"fullauto_medium"
|
|
};
|
|
bullet1[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\metal_556_01",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet2[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\metal_556_02",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet3[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\metal_556_03",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet4[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\metal_556_04",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet5[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\dirt_556_01",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet6[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\dirt_556_02",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet7[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\dirt_556_03",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet8[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\dirt_556_04",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet9[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\grass_556_01",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet10[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\grass_556_02",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet11[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\grass_556_03",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
bullet12[]=
|
|
{
|
|
"A3\sounds_f\weapons\shells\5_56\grass_556_04",
|
|
0.63095737,
|
|
1,
|
|
15
|
|
};
|
|
soundBullet[]=
|
|
{
|
|
"bullet1",
|
|
0.082999997,
|
|
"bullet2",
|
|
0.082999997,
|
|
"bullet3",
|
|
0.082999997,
|
|
"bullet4",
|
|
0.082999997,
|
|
"bullet5",
|
|
0.082999997,
|
|
"bullet6",
|
|
0.082999997,
|
|
"bullet7",
|
|
0.082999997,
|
|
"bullet8",
|
|
0.082999997,
|
|
"bullet9",
|
|
0.082999997,
|
|
"bullet10",
|
|
0.082999997,
|
|
"bullet11",
|
|
0.082999997,
|
|
"bullet12",
|
|
0.082999997
|
|
};
|
|
class Single : Mode_SemiAuto {
|
|
class BaseSoundModeType; // External class reference
|
|
|
|
class StandardSound : BaseSoundModeType {
|
|
soundSetShot[] = {"CAR_95_Shot_SoundSet", "CAR_95_Tail_SoundSet", "CAR_95_interiorTail_SoundSet"};
|
|
};
|
|
|
|
class SilencedSound : BaseSoundModeType {
|
|
soundsetshot[] = {"CAR_95_silencerShot_SoundSet", "CAR_95_silencerTail_SoundSet", "CAR_95_silencerInteriorTail_SoundSet"};
|
|
};
|
|
reloadTime = 0.096;
|
|
dispersion=0.00057999999;
|
|
mass = 130;
|
|
initSpeed = 850;
|
|
recoil="recoil_single_ebr";
|
|
recoilProne="recoil_single_prone_ebr";
|
|
minRange=2;
|
|
minRangeProbab=0.30000001;
|
|
midRange=350;
|
|
midRangeProbab=0.69999999;
|
|
maxRange=500;
|
|
maxRangeProbab=0.050000001;
|
|
};
|
|
class FullAuto : Mode_FullAuto {
|
|
class BaseSoundModeType; // External class reference
|
|
|
|
class StandardSound : BaseSoundModeType {
|
|
soundSetShot[] = {"CAR_95_Shot_SoundSet", "CAR_95_Tail_SoundSet", "CAR_95_interiorTail_SoundSet"};
|
|
};
|
|
|
|
class SilencedSound : BaseSoundModeType {
|
|
soundsetshot[] = {"CAR_95_silencerShot_SoundSet", "CAR_95_silencerTail_SoundSet", "CAR_95_silencerInteriorTail_SoundSet"};
|
|
};
|
|
reloadTime = 0.096;
|
|
dispersion=0.00057999999;
|
|
recoil="recoil_auto_ebr";
|
|
recoilProne="recoil_auto_prone_ebr";
|
|
minRange=0;
|
|
minRangeProbab=0.89999998;
|
|
midRange=15;
|
|
midRangeProbab=0.69999999;
|
|
maxRange=30;
|
|
maxRangeProbab=0.050000001;
|
|
aiRateOfFire=1e-006;
|
|
};
|
|
class single_close_optics1: Single
|
|
{
|
|
requiredOpticType=1;
|
|
showToPlayer=0;
|
|
minRange=2;
|
|
minRangeProbab=0.050000001;
|
|
midRange=300;
|
|
midRangeProbab=0.80000001;
|
|
maxRange=500;
|
|
maxRangeProbab=0.0099999998;
|
|
aiRateOfFire=2;
|
|
aiRateOfFireDistance=300;
|
|
};
|
|
class single_medium_optics1: single_close_optics1
|
|
{
|
|
minRange=300;
|
|
minRangeProbab=0.050000001;
|
|
midRange=500;
|
|
midRangeProbab=0.69999999;
|
|
maxRange=700;
|
|
maxRangeProbab=0.050000001;
|
|
aiRateOfFire=2;
|
|
aiRateOfFireDistance=500;
|
|
};
|
|
class single_far_optics1: single_medium_optics1
|
|
{
|
|
requiredOpticType=2;
|
|
minRange=300;
|
|
minRangeProbab=0.050000001;
|
|
midRange=700;
|
|
midRangeProbab=0.5;
|
|
maxRange=1000;
|
|
maxRangeProbab=0.050000001;
|
|
aiRateOfFire=4;
|
|
aiRateOfFireDistance=600;
|
|
};
|
|
class fullauto_medium: FullAuto
|
|
{
|
|
showToPlayer=0;
|
|
burst=3;
|
|
minRange=2;
|
|
minRangeProbab=0.5;
|
|
midRange=50;
|
|
midRangeProbab=0.69999999;
|
|
maxRange=100;
|
|
maxRangeProbab=0.050000001;
|
|
aiRateOfFire=2;
|
|
};
|
|
aiDispersionCoefY=3;
|
|
aiDispersionCoefX=2;
|
|
};
|
|
class braf_weapcc_muzzleFlash_SF: ItemCore
|
|
{
|
|
author = "BRAF Team";
|
|
scope = 2;
|
|
model = "a3\data_f\proxies\muzzle_flash\muzzle_flash_rifle_M4.p3d";
|
|
inertia = 0;
|
|
};
|