Files
braf/braf_static/M2/WeaponsM2.hpp
T

149 lines
2.5 KiB
C++

class braf_vhmg_m2_veh: HMG_M2
{
displayName="M2 Browning .50 Cal";
author = "BRAF TEAM";
magazineReloadTime=10;
modes[]=
{
"manual",
"close",
"short",
"medium",
"far"
};
magazines[]=
{
"braf_100rnd_127x99_m"
};
drySound[]=
{
"a3\sounds_f\arsenal\weapons_vehicles\hmg_050\hmg050_dry",
1,
1,
10
};
reloadMagazineSound[]=
{
"\braf\braf_static\m2\data\reload-belt-1",
1,
1,
10
};
//class manual: MGun
class manual: MGun
{
dispersion=0.00095999998;
reloadTime=0.12;
sounds[]=
{
"StandardSound"
};
class StandardSound
{
soundsetshot[]=
{
"braf_50_Shot_SoundSet",
"braf_50_tail_SoundSet"
};
};
soundContinuous=0;
soundBurst=0;
};
class close: manual
{
showToPlayer=0;
soundBurst=0;
burst=10;
aiRateOfFire=0.5;
aiRateOfFireDistance=50;
minRange=0;
minRangeProbab=0.050000001;
midRange=20;
midRangeProbab=0.57999998;
maxRange=100;
maxRangeProbab=0.039999999;
};
class short: close
{
burst=8;
aiRateOfFire=2;
aiRateOfFireDistance=300;
minRange=50;
minRangeProbab=0.050000001;
midRange=150;
midRangeProbab=0.57999998;
maxRange=300;
maxRangeProbab=0.039999999;
};
class medium: close
{
burst=4;
aiRateOfFire=3;
aiRateOfFireDistance=600;
minRange=200;
minRangeProbab=0.050000001;
midRange=500;
midRangeProbab=0.57999998;
maxRange=800;
maxRangeProbab=0.039999999;
};
class far: close
{
burst=5;
aiRateOfFire=5;
aiRateOfFireDistance=1000;
minRange=600;
minRangeProbab=0.050000001;
midRange=800;
midRangeProbab=0.40000001;
maxRange=1200;
maxRangeProbab=0.0099999998;
};
class GunParticles
{
class FirstEffect
{
positionName="usti hlavne";
directionName="konec hlavne";
effectName="MachineGunCloud";
};
class SecondEffect
{
positionName="nabojnicestart";
directionName="nabojniceend";
effectName="MachineGunCartridge2";
};
class ThirdEffect
{
positionName="case_eject_pos";
directionName="case_eject_dir";
effectName="MachineGunEject";
};
};
};
class braf_vhmg_m2_static: braf_vhmg_m2_veh
{
displayName="M2 Browning .50 Cal";
author = "BRAF TEAM";
class GunParticles
{
class effect1
{
positionName="usti hlavne";
directionName="konec hlavne";
effectName="MachineGunCloud";
};
class effect2
{
positionName="case_eject_pos";
directionName="case_eject_dir";
effectName="MachineGunEject";
};
class effect3
{
positionName="nabojnicestart";
directionName="nabojniceend";
effectName="MachineGunCartridge2";
};
};
};