This commit is the equivalent of a atomic bomb

This commit is contained in:
2026-02-15 08:08:56 -03:00
commit e4ac56b038
6934 changed files with 916278 additions and 0 deletions

View File

@@ -0,0 +1,331 @@
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;
};

Binary file not shown.

View File

@@ -0,0 +1,430 @@
class CfgSkeletons
{
class Default {
isDiscrete = 1;
skeletonInherit = "";
skeletonBones[] = {};
};
class HK33Skeleton: Default
{
skeletonBones[]=
{
"Magazine", "",
"Diopter", "",
"bolt_oprod", "",
"Bolt", "bolt_oprod",
"Bolthandle", "bolt_oprod",
"magrelease", "",
"laddersight", "",
"M203_tube","",
"M203_round","M203_tube",
"M203_warhead","M203_round",
"Trigger", "",
"rail", "",
"Selector","",
"Break","",
"zasleh","",
"optic_rail", "",
"trilho_frontal", ""
};
};
};
class CfgModels
{
class Default {
selections[] = {};
selectionsInherit = "";
skeletonName = "";
};
class HK33M: Default
{
sections[]=
{
"zasleh","Magazine","Bolt","Trigger","Break","Diopter","Main","Stock","FCG","M203"
};
skeletonName="HK33Skeleton";
sectionsInherit = "";
class Animations
{
class optic_rail
{
type="hide";
source="hasOptics";
selection="optic_rail";
minValue=0;
maxValue=1;
hideValue=-1.0;
unhideValue = 0.5;
};
class acessory_rail
{
type="hide";
source="hasAccessory";
selection="trilho_frontal";
minValue=0;
maxValue=1;
hideValue=-1.0;
unhideValue = 0.5;
};
class muzzlebrake_hide
{
type="hide";
source="hasSuppressor";
selection="break";
minValue = 0.0;
maxvalue = 0.25;
hideValue = 0.01;
};
class Zeroing100m
{
type = "rotation";
source="zeroing1";
selection="Diopter";
axis = "drum_rot";
minValue = 0;
maxValue = 1;
angle0=rad 0;
angle1=rad -270;
};
class magazine_hide
{
type="hide";
source="reloadMagazine";
selection="Magazine";
minValue=0.0;
maxValue=1;
hideValue=0.23;
unhideValue=0.65;
};
class magazine_move1
{
type = "translation";
source="reloadMagazine";
selection="Magazine";
axis = "Magazine_axis";
minValue = 0.2138;
maxValue = 0.225; //0.09; //"1";
offset0 = "0";
offset1 = "1";
};
class magazine_move2
{
type = "translation";
source="reloadMagazine";
selection="Magazine";
axis = "Magazine_axis";
minValue = 0.664;
maxValue = 0.693; //0.09; //"1";
offset0 = "0";
offset1 = "-1";
};
class bolthandle_rot1
{
type = "rotation";
source="reloadMagazine";
selection="Bolthandle";
axis = "bhaxis";
minValue = 0.034;
maxValue = 0.046; //0.09; //"1";
angle1=rad 90;
angle0=rad 0;
};
class bolthandle_rot2
{
type = "rotation";
source="reloadMagazine";
selection="Bolthandle";
axis = "bhaxis";
minValue = 0.87;
maxValue = 0.895; //0.09; //"1";
angle1=rad -90;
angle0=rad 0;
};
class bolthandle_rot3
{
type = "rotation";
source="reloadMagazine";
selection="bolt_oprod";
axis = "bolt_axis";
minValue = 0.0924;
maxValue = 0.104; //0.09; //"1";
angle1=rad 45;
angle0=rad 0;
};
class bolthandle_rot4
{
type = "rotation";
source="reloadMagazine";
selection="bolt_oprod";
axis = "bolt_axis";
minValue = 0.821;
maxValue = 0.8497;
angle1=rad -45;
angle0=rad 0;
};
//moves charging handle back to rear
class bolthandle_move1
{
type = "translation";
source = "reloadMagazine";
selection = "bolt_oprod";
axis = "bolt_axis";
begin = "bolt_axis_end";
end = "bolt_axis_begin";
minValue = 0.052;
maxValue = 0.075; //0.09; //"1";
offset0 = "0";
offset1 = "1";
};
class bolthandle_move2
{
type = "translation";
source = "reloadMagazine";
selection = "bolt_oprod";
axis = "bolt_axis";
begin = "bolt_axis_end";
end = "bolt_axis_begin";
minValue = 0.867;
maxValue = 0.878;
offset0 = "0";
offset1 = "-1";
};
class magrelease_rot1
{
type = "rotation";
source="reloadMagazine";
selection="Magrelease";
axis = "Magrelease_axis";
minValue = 0.1888;
maxValue = 0.2; //0.09; //"1";
angle1=rad 10;
angle0=rad 0;
};
class magrelease_rot2
{
type ="rotation";
source="reloadMagazine";
selection="Magrelease";
axis = "Magrelease_axis";
minValue = 0.2111111;
maxValue = 0.22222222; //0.09; //"1";
angle1=rad -10;
angle0=rad 0;
};
class bolt
{
type = "translation";
source = "reload";
selection = "Bolt";
axis = "bolt_axis";
begin = "bolt_axis_end";
end = "bolt_axis_begin";
minValue = 0;
maxValue = 0.5; //0.09; //"1";
offset0 = "0";
offset1 = "1";
};
class bolt1
{
type = "translation";
source = "reload";
selection = "Bolt";
axis = "bolt_axis";
begin = "bolt_axis_end";
end = "bolt_axis_begin";
minValue = 0.5;
maxValue = 1; //0.09; //"1";
offset0 = "0";
offset1 = "-1";
};
class unloaded_magazine_hide {
type = "hide";
source = "hasMagazine";
selection = "Magazine";
hideValue = 0.1;
};
class FireModeSwitch {
type="rotationZ";
source="weaponMode";
memory=1;
selection="Selector";
animPeriod=0;
axis="Selector_axis";
minValue=0.0;
maxValue=0.42;
angle1=rad 45;
angle0=rad -60;
};
class MuzzleFlashROT
{
type="rotationX";
source="ammoRandom"; //use ammo count as phase for animation
sourceAddress="loop"; //loop when phase out of bounds
selection="zasleh"; //selection we want to rotate
axis="barrelaxis"; //no own axis - center of rotation is computed from selection
centerFirstVertex=true; //use first vertex of selection as center of rotation
minValue=0;
maxValue=4; //rotation angle will be 360/4 = 90 degrees
angle0="rad 7";
angle1="rad -7";
};
class mflash2
{
type="hide";
source="ammoRandom";
selection="zasleh";
sourceAddress="loop";
minValue=0;
maxValue=1;
hideValue=0.25;
};
class backsight_hide
{
type="rotationZ";
source="weaponMuzzle";
selection="Laddersight";
axis="ladder_axis";
animPeriod=0;
minValue=0.0;
maxValue=1;
minPhase=0.0;
maxPhase=1;
angle0=0;
angle1=rad 90;
};
class magazine_gl_reload_move_1
{
type="translation";
source="reloadMagazine.1";
selection="M203_TUBE";
axis = "bolt_axis";
minValue = 0.099291;//rad 5.688955
maxValue = 0.141844;//rad 8.127063
offset0 = 0.0;
offset1 = -1.0;
animPeriod = 0.0;
initPhase = 0.0;
};
class magazine_gl_reload_move_2: magazine_gl_reload_move_1
{
minValue = 0.758511;
maxValue = 0.786879;
offset1 = 1.0;
};
class grenade_reload_move_1_h
{
type="translation";
source="reloadMagazine.1";
selection="m203_round";
axis="bolt_axis";
minValue = 0.205674;//rad 11.784252
maxValue = 0.22695;//rad 13.003278
offset0 = -0.02;
offset1 = 2.0;
};
class grenade_reload_move_1_v: grenade_reload_move_1_h
{
type="translation";
axis="gl_vert_axis";
minValue = 0.212766;//rad 12.190595
maxValue = 0.22695;//rad 13.003278
offset0 = 0.0;
offset1 = 6.3;
};
class grenade_reload_move_2: grenade_reload_move_1_h
{
minValue = 0.333333;//rad 19.098574
maxValue = 0.496454;//rad 28.44472
offset0 = 0.0;
offset1 = -1.3;
};
class grenade_reload_move_3: grenade_reload_move_2
{
type="translation";
axis="gl_vert_axis";
minValue = 0.503546;//rad 28.85106
maxValue = 0.553191;//rad 31.69551
offset0 = 0.0;
offset1 = -6.3;
};
class grenade_reload_move_4: grenade_reload_move_2
{
minValue = 0.595745;//rad 34.133675
maxValue = 0.64539;//rad 36.978123
offset0 = 0.0;
offset1 = -0.68;
};
class magazine_gl_reload_hide
{
type="hide";
source="reloadMagazine.1";
selection="m203_round";
minValue = 0.0;//rad 0.0
maxValue = 1.0;//rad 57.29578
hideValue = 0.22695;
unHideValue = 0.496454;
};
class grenade_fired
{
type="hide";
source="revolving.1";
selection="m203_warhead";
minValue=0.0;
maxValue=1.0;
hideValue=-1.0;
unhideValue=0.5;
};
};
};
class hk33: HK33M {
class Animations: Animations
{
class FireModeSwitch {
type="rotationZ";
source="weaponMode";
memory=1;
selection="Selector";
animPeriod=0;
axis="Selector_axis";
minValue=0.0;
maxValue=0.33;
angle1=rad 100;
angle0=rad 30;
};
};
};
class hk33a2: HK33M {};
class hk33ka3: HK33M {
class Animations : Animations
{
class FireModeSwitch {
type="rotationZ";
source="weaponMode";
memory=1;
selection="Selector";
animPeriod=0;
axis="Selector_axis";
minValue=0.0;
maxValue=0.33;
angle1=rad 100;
angle0=rad 30;
};
};
};
class hk33_rails: HK33M {};
class hk33_rails_GL: HK33M {};
};