Files
braf/braf_weapons_sniper_rifles/762mm_HK417/HK417.hpp
T

180 lines
7.6 KiB
C++

class braf_HK417_base: Rifle_Base_F {
magazines[] = {"20Rnd_762x51_HK417_mag","20Rnd_762x51_HK417_Tracer_yellow_mag","20Rnd_762x51_HK417_Tracer_green_mag","20Rnd_762x51_HK417_Tracer_red_mag"}; /// original custom made magazines and a group of several standardized mags
reloadAction = "GestureReloadSPAR_01";
magazineReloadSwitchPhase = 0.4;
discreteDistanceInitIndex = 0;
recoil = "recoil_spar";
maxRecoilSway=0.0125;
swayDecaySpeed=1.25;
inertia = 0.5;
initSpeed = -1;
class GunParticles : GunParticles
{
class SecondEffect
{
positionName = "Nabojnicestart";
directionName = "Nabojniceend";
effectName = "CaselessAmmoCloud";
};
};
class WeaponSlotsInfo: WeaponSlotsInfo
{
mass = 94;
class MuzzleSlot: MuzzleSlot
{
linkProxy = "\a3\data_f\proxies\weapon_slots\muzzle";
compatibleItems[] = {"muzzle_snds_B"};
iconPosition[] = {0.0, 0.45};
iconScale = 0.2;
iconPicture = "\a3\weapons_f\data\ui\attachment_muzzle.paa";
iconPinpoint = "Center";
};
class CowsSlot: asdg_OpticRail1913
{
};
class PointerSlot: asdg_FrontSideRail
{
};
class UnderBarrelSlot: UnderBarrelSlot
{
iconPosition[] = {0.2, 0.7};
iconScale = 0.2;
compatibleItems[] = {"bipod_01_F_blk","bipod_02_F_blk","bipod_03_F_blk","bipod_01_F_khk","bipod_01_F_snd","bipod_01_F_mtp","bipod_02_F_tan","bipod_02_F_hex","bipod_03_F_oli"};
};
};
opticsZoomMin=0.375;
opticsZoomMax=1.1;
opticsZoomInit=0.75;
distanceZoomMin = 300;
distanceZoomMax = 300;
descriptionlong = "AMF HK 417 F-S Long";
handAnim[] = {"OFP2_ManSkeleton", "\a3\weapons_f\rifles\mx\data\anim\mx_cqc.rtm"};
dexterity = 1.8;
selectionFireAnim = "muzzleFlash";
bullet1[] = {"a3\sounds_f\weapons\shells\5_56\shellcase_556_metal_01", 0.446684, 1, 15};
bullet2[] = {"a3\sounds_f\weapons\shells\5_56\shellcase_556_metal_02", 0.446684, 1, 15};
bullet3[] = {"a3\sounds_f\weapons\shells\5_56\shellcase_556_metal_03", 0.446684, 1, 15};
bullet4[] = {"a3\sounds_f\weapons\shells\5_56\shellcase_556_metal_04", 0.446684, 1, 15};
bullet5[] = {"a3\sounds_f\weapons\shells\7_62\shellcase_762_dirt_01", 0.562341, 1, 15};
bullet6[] = {"a3\sounds_f\weapons\shells\7_62\shellcase_762_dirt_02", 0.562341, 1, 15};
bullet7[] = {"a3\sounds_f\weapons\shells\7_62\shellcase_762_dirt_03", 0.562341, 1, 15};
bullet8[] = {"a3\sounds_f\weapons\shells\7_62\shellcase_762_dirt_04", 0.562341, 1, 15};
bullet9[] = {"a3\sounds_f\weapons\shells\7_62\shellcase_762_grass_01", 0.562341, 1, 15};
bullet10[] = {"a3\sounds_f\weapons\shells\7_62\shellcase_762_grass_02", 0.562341, 1, 15};
bullet11[] = {"a3\sounds_f\weapons\shells\7_62\shellcase_762_grass_03", 0.562341, 1, 15};
bullet12[] = {"a3\sounds_f\weapons\shells\7_62\shellcase_762_grass_04", 0.562341, 1, 15};
soundBullet[] = {"bullet1", 0.087, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083};
drySound[] = {"a3\sounds_f_exp\arsenal\weapons\rifles\spar01\spar01_dry",0.63095737,1,30};
changeFiremodeSound[] = {"a3\sounds_f_exp\arsenal\weapons\rifles\spar01\spar01_firemode",0.25118864,1,5};
reloadMagazineSound[] = {"a3\sounds_f_exp\arsenal\weapons\rifles\spar01\spar01_reload",1.0,1,10};
modes[] = {"SemiAuto","Fullauto","single_medium_optics1","single_far_optics2"};
class SemiAuto : Mode_SemiAuto
{
sounds[] = {"StandardSound","SilencedSound"};
class BaseSoundModeType; // External class reference
class StandardSound : BaseSoundModeType {
soundSetShot[] = {"SPAR_17_Shot_SoundSet", "SPAR_17_Tail_SoundSet", "SPAR_17_interiorTail_SoundSet"};
};
class SilencedSound : BaseSoundModeType {
soundSetShot[] = {"SPAR_17_silencerShot_SoundSet", "SPAR_17_silencerTail_SoundSet", "SPAR_17_silencerInteriorTail_SoundSet"};
};
reloadTime = 0.090;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.0002;
minRange = 2;
minRangeProbab = 0.3;
midRange = 350;
midRangeProbab = 0.7;
maxRange = 500;
maxRangeProbab = 0.05;
};
class FullAuto : Mode_FullAuto
{
sounds[] = {"StandardSound","SilencedSound"};
class BaseSoundModeType;
class StandardSound : BaseSoundModeType {
soundSetShot[] = {"SPAR_17_Shot_SoundSet", "SPAR_17_Tail_SoundSet", "SPAR_17_interiorTail_SoundSet"};
};
class SilencedSound : BaseSoundModeType {
soundSetShot[] = {"SPAR_17_silencerShot_SoundSet", "SPAR_17_silencerTail_SoundSet", "SPAR_17_silencerInteriorTail_SoundSet"};
};
reloadTime = 0.090;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.0002;
minRange = 0;
minRangeProbab = 0.9;
midRange = 15;
midRangeProbab = 0.7;
maxRange = 30;
maxRangeProbab = 0.05;
aiRateOfFire = 1e-006;
};
class single_medium_optics1: SemiAuto /// Pew for AI with collimator sights
{
requiredOpticType = 1;
showToPlayer = 0;
minRange = 2; minRangeProbab = 0.2;
midRange = 450; midRangeProbab = 0.7;
maxRange = 600; maxRangeProbab = 0.2;
aiRateOfFire = 6;
aiRateOfFireDistance = 600;
};
class single_far_optics2: single_medium_optics1 /// Pew for AI with better sights
{
requiredOpticType = 2;
showToPlayer = 0;
minRange = 100; minRangeProbab = 0.1;
midRange = 500; midRangeProbab = 0.6;
maxRange = 700; maxRangeProbab = 0.05;
aiRateOfFire = 8;
aiRateOfFireDistance = 700;
};
aiDispersionCoefY=6.0; /// AI should have some degree of greater dispersion for initial shoots
aiDispersionCoefX=4.0; /// AI should have some degree of greater dispersion for initial shoots
};
class braf_HK417: braf_HK417_base
{
scope = 2;
author = "BRAF TEAM";
displayName = "HK 417A2";
model = "\braf\braf_weapons_sniper_rifles\762mm_hk417\amf_417_long.p3d";
picture = "\braf\braf_weapons_sniper_rifles\762mm_hk417\data\ui\gear_amf_714_long_01_x_ca.paa";
UiPicture = "\braf\braf_weapons_sniper_rifles\762mm_hk417\data\ui\gear_amf_714_long_01_x_ca.paa";
handAnim[] = {"OFP2_ManSkeleton", "\a3\weapons_f_exp\rifles\spar_01\data\anim\spar_01.rtm"};
weaponInfoType = "RscWeaponZeroing";
rhs_grip2_change = "amf_714_long_gripv_01_f";
rhs_grip3_change = "amf_714_long_gript_01_f";
rhs_grip4_change = "amf_714_long_gripv_tan_f";
rhs_grip5_change = "amf_714_long_gript_tan_f";
class WeaponSlotsInfo: WeaponSlotsInfo
{
mass = 94;
allowedSlots[] = {901};
class MuzzleSlot: MuzzleSlot
{
linkProxy = "\a3\data_f\proxies\weapon_slots\muzzle";
compatibleItems[] = {"muzzle_snds_M"};
iconPosition[] = {0.0, 0.45};
iconScale = 0.2;
iconPicture = "\a3\weapons_f\data\ui\attachment_muzzle.paa";
iconPinpoint = "Center";
};
class CowsSlot: asdg_OpticRail1913
{
};
class PointerSlot: asdg_FrontSideRail
{
};
class UnderBarrelSlot: UnderBarrelSlot
{
iconPosition[] = {0.2, 0.7};
iconScale = 0.2;
compatibleItems[] = {"bipod_01_F_blk","bipod_02_F_blk","bipod_03_F_blk","bipod_01_F_khk","bipod_01_F_snd","bipod_01_F_mtp","bipod_02_F_tan","bipod_02_F_hex","bipod_03_F_oli"};
};
};
};