m1st3r_pr0per
Member-
Content Count
3 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout m1st3r_pr0per
-
Rank
Rookie
-
Attachments are not working properly
m1st3r_pr0per replied to m1st3r_pr0per's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
I didn't have autocenter property anywhere. Adding autocenter = 0 to LOD did not solve the problem. :( UPD: Problem solved! I copied proxies from other weapon mods and it worked. Thread can be closed. Thank you! http://i.gyazo.com/7d4c3967b9fa428d5470429ffc3f7d77.png (2723 kB) -
Attachments are not working properly
m1st3r_pr0per posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hey guys, I am currently making AK-12 weapon pack and I've got a problem with attachments. I have put MUZZLE, TOP and SIDE proxies in Oxygen 2 and wrote stuff in config.cpp like all guides say, but in game the attachments are not showing up. They work, but the model is not showing. Also scopes 'sit' inside the weapon. I tried to move the proxies, but nothing changed at all. I used kiory's l85a2 config as an example and changed it for my needs. Here it is: #define _ARMA_ //Class pr0per_AK12 : config.bin{ class CfgPatches { class pr0per_AK12 { requiredaddons[] = {}; requiredversion = 0.1; units[] = {}; weapons[] = {"pr0per_AK12"}; magazines[] = {"30Rnd_556x45_Stanag"}; }; class pr0per_RPK12 { requiredaddons[] = {}; requiredversion = 0.1; units[] = {}; weapons[] = {"pr0per_RPK12"}; magazines[] = {"200Rnd_65x39_cased_Box"}; }; }; class Mode_SemiAuto; class Mode_FullAuto; class SlotInfo; class CfgVehicles { class NATO_Box_Base; class pr0per_AK12_equipbox: NATO_Box_Base { scope = 2; vehicleClass = "Ammo"; displayName = "pr0per's AK-12 Box"; model = "\A3\weapons_F\AmmoBoxes\WpnsBox_F"; icon = "iconCrateWpns"; class TransportMagazines { class _xx_30rnd_556x45_STANAG { magazine = "30Rnd_556x45_Stanag"; count = 50; }; class _xx_30rnd_556x45_STANAG_Tracer_red { magazine = "30Rnd_556x45_Stanag_Tracer_red"; count = 50; }; class _xx_200Rnd_65x39_cased_Box { magazine = "200Rnd_65x39_cased_Box"; count = 50; }; class _xx_200Rnd_65x39_cased_Box_Tracer { magazine = "200Rnd_65x39_cased_Box_Tracer"; count = 50; }; }; class TransportWeapons { class _xx_pr0per_AK12 { weapon = "pr0per_AK12"; count = 10; }; class _xx_pr0per_RPK12 { weapon = "pr0per_RPK12"; count = 10; }; }; class TransportItems { class optic_hamr { name = "optic_hamr"; count = 10; }; class optic_aco { name = "optic_aco"; count = 10; }; class muzzle_snds_M { name = "muzzle_snds_M"; count = 10; }; class muzzle_snds_H_MG { name = "muzzle_snds_H_MG"; count = 10; }; class acc_pointer_IR { name = "acc_pointer_IR"; count = 10; }; class acc_flashlight { name = "acc_flashlight"; count = 10; }; }; }; }; class CfgWeapons { class WeaponSlotsInfo; class LMG_Mk200_F; class Rifle; class Rifle_Base_F: Rifle { class WeaponSlotsInfo; }; class pr0per_AK12_base: Rifle_Base_F { changeFiremodeSound[] = {"\pr0per_AK12\sound\FireMode.wav",0.5,1}; descriptionshort = "Russian Assault Rifle<br />Caliber: 5.56"; discretedistance[] = {100,200,300,400}; discretedistanceinitindex = 1; dispersion = 0.0001; displayname = "AK-12"; distancezoommax = 300; distancezoommin = 300; handAnim[] = {"OFP2_ManSkeleton","\A3\Weapons_F\Rifles\mx\Data\Anim\mx.rtm"}; maxrange = 300; maxrangeprobab = 0.2; midrange = 225; midrangeprobab = 0.7; minrange = 2; minrangeprobab = 0.3; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag_Tracer_red"}; model = "pr0per_AK12\pr0per_AK12_grip.p3d"; modes[] = {"Single","FullAuto","single_close_optics1","single_medium_optics1","single_far_optics1","single_far_optics2"}; optics = 0; opticsdisableperipherialvision = 0.67; opticsflare = 0; opticsid = 0; opticsppeffects[] = {}; opticszoominit = 0.75; opticszoommax = 1.1; opticszoommin = 0.375; picture = "\pr0per_AK12\UI\gear_AK12_x_ca.paa"; recoil = "assaultRifleBase"; recoilprone = "assaultRifleBase"; reloadaction = "GestureReloadmx"; reloadMagazineSound[] = {"A3\sounds_f\weapons\reloads\new_mx",0.398107,1,30}; reloadsound[] = {"A3\sounds_f\weapons\reloads\new_mx.wav",0.1,1,30}; reloadtime = 0.1; scope = 0; selectionfireanim = "zasleh"; weaponinfotype = "RscWeaponZeroing"; weaponlockdelay = 0; weaponlocksystem = 0; weaponpoolavailable = 1; weaponsoundeffect = ""; weight = 0; class Library { libtextdesc = "AK-12"; }; class GunClouds { access = 0; cloudletaccy = 0; cloudletalpha = 0.3; cloudletanimperiod = 1; cloudletcolor[] = {1,1,1,0}; cloudletduration = 0.05; cloudletfadein = 0; cloudletfadeout = 0.1; cloudletgrowup = 0.05; cloudletmaxyspeed = 100; cloudletminyspeed = -100; cloudletshape = "cloudletClouds"; cloudletsize = 1; deltat = 0; initt = 0; interval = -0.02; size = 0.3; sourcesize = 0.02; timetolive = 0; class Table { class T0 { color[] = {1,1,1,0}; maxt = 0; }; }; }; class WeaponSlotsInfo { allowedslots[] = {901}; mass = 4; class MuzzleSlot: SlotInfo { linkProxy = "\A3\data_f\proxies\weapon_slots\MUZZLE"; compatibleItems[] = {"muzzle_snds_M"}; }; class CowsSlot { access = 1; compatibleitems[] = {"optic_Arco","optic_aco","optic_ACO_grn","optic_hamr","optic_Holosight"}; displayname = "Optics Slot"; linkproxy = "\A3\data_f\proxies\weapon_slots\TOP"; scope = 0; }; class PointerSlot { access = 1; compatibleitems[] = {"acc_flashlight","acc_pointer_IR"}; displayname = "Pointer Slot"; linkproxy = "\A3\data_f\proxies\weapon_slots\SIDE"; scope = 0; }; }; class GunParticles { class FirstEffect { directionname = "Konec hlavne"; effectname = "RifleAssaultCloud"; positionname = "Usti hlavne"; }; }; class Single: Mode_SemiAuto { begin1[] = {"pr0per_AK12\sound\Sound1.wav",1.0,1,1200}; begin2[] = {"pr0per_AK12\sound\Sound2.wav",1.0,1,1200}; begin3[] = {"pr0per_AK12\sound\Sound3.wav",1.0,1,1200}; closure1[] = {"A3\sounds_f\weapons\closure\closure_rifle_2.wav",3.16228,1,500}; closure2[] = {"A3\sounds_f\weapons\closure\closure_rifle_3.wav",3.16228,1,500}; recoil = "recoil_single_mx"; recoilprone = "recoil_single_prone_mx"; soundBegin[] = {"begin1",0.5,"begin2",0.5}; soundClosure[] = {"closure1",0.5,"closure2",0.5}; weaponSoundEffect = "DefaultRifle"; reloadTime = 0.085; dispersion = 0.0005; minRange = 2; minRangeProbab = 0.3; midRange = 250; midRangeProbab = 0.7; maxRange = 500; maxRangeProbab = 0.05; }; class FullAuto: Mode_FullAuto { begin1[] = {"pr0per_AK12\sound\Sound1.wav",1.0,1,1200}; begin2[] = {"pr0per_AK12\sound\Sound2.wav",1.0,1,1200}; begin3[] = {"pr0per_AK12\sound\Sound3.wav",1.0,1,1200}; begin4[] = {"pr0per_AK12\sound\Sound4.wav",1.0,1,1200}; closure1[] = {"A3\sounds_f\weapons\closure\closure_rifle_2.wav",3.16228,1,500}; closure2[] = {"A3\sounds_f\weapons\closure\closure_rifle_3.wav",3.16228,1,500}; soundBegin[] = {"begin1",0.5,"begin2",0.5,"begin3",0.5,"begin4",0.5}; soundClosure[] = {"closure1",0.5,"closure2",0.5}; weaponSoundEffect = "DefaultRifle"; reloadTime = 0.085; dispersion = 0.0005; minRange = 0; minRangeProbab = 0.9; midRange = 15; midRangeProbab = 0.7; maxRange = 30; maxRangeProbab = 0.05; aiRateOfFire = 1e-006; recoil = "recoil_auto_mx"; recoilProne = "recoil_auto_prone_mx"; }; class single_close_optics1: Single { requiredOpticType = 1; showToPlayer = 0; minRange = 2; minRangeProbab = 0.2; midRange = 300; midRangeProbab = 0.7; maxRange = 700; maxRangeProbab = 0.1; aiRateOfFire = 6; aiRateOfFireDistance = 600; }; class single_medium_optics1: single_close_optics1 { minRange = 300; minRangeProbab = 0.05; midRange = 500; midRangeProbab = 0.7; maxRange = 700; maxRangeProbab = 0.05; aiRateOfFire = 2; aiRateOfFireDistance = 500; }; class single_far_optics1: single_medium_optics1 { requiredOpticType = 2; minRange = 300; minRangeProbab = 0.05; midRange = 600; midRangeProbab = 0.4; maxRange = 900; maxRangeProbab = 0.05; aiRateOfFire = 4; aiRateOfFireDistance = 600; }; class single_far_optics2: single_medium_optics1{}; }; class pr0per_RPK12_base: LMG_Mk200_F { displayName = "RPK-12"; magazines[] = {"200Rnd_65x39_cased_Box","200Rnd_65x39_cased_Box_Tracer"}; descriptionshort = "Russian Light Machinegun<br />Caliber: 6.5x39 mm"; class Library { libtextdesc = "RPK-12"; }; modes[] = {"manual","close","short","medium","far_optic1","far_optic2"}; class manual: Mode_FullAuto { reloadTime = 0.075; dispersion = 0.00093; recoil = "recoil_auto_mk200"; recoilProne = "recoil_auto_prone_mk200"; begin1[] = {"pr0per_AK12\sound\Sound1.wav",1.0,1,1200}; begin2[] = {"pr0per_AK12\sound\Sound2.wav",1.0,1,1200}; begin3[] = {"pr0per_AK12\sound\Sound3.wav",1.0,1,1200}; begin4[] = {"pr0per_AK12\sound\Sound4.wav",1.0,1,1200}; soundBegin[] = {"begin1",0.25,"begin2",0.25,"begin3",0.25,"begin4",0.25}; soundContinuous = 0; soundBurst = 0; minRange = 0; minRangeProbab = 0.3; midRange = 5; midRangeProbab = 0.7; maxRange = 10; maxRangeProbab = 0.04; showToPlayer = 1; }; class close: manual { burst = 10; aiRateOfFire = 0.5; aiRateOfFireDistance = 50; minRange = 10; minRangeProbab = 0.05; midRange = 20; midRangeProbab = 0.7; maxRange = 50; maxRangeProbab = 0.04; showToPlayer = 0; }; class short: close { burst = 8; aiRateOfFire = 2; aiRateOfFireDistance = 300; minRange = 50; minRangeProbab = 0.05; midRange = 150; midRangeProbab = 0.7; maxRange = 300; maxRangeProbab = 0.04; }; class medium: close { burst = 7; aiRateOfFire = 4; aiRateOfFireDistance = 600; minRange = 200; minRangeProbab = 0.05; midRange = 300; midRangeProbab = 0.7; maxRange = 500; maxRangeProbab = 0.1; }; class far_optic1: medium { requiredOpticType = 1; showToPlayer = 0; burst = 3; aiRateOfFire = 10; aiRateOfFireDistance = 1000; minRange = 300; minRangeProbab = 0.05; midRange = 500; midRangeProbab = 0.4; maxRange = 650; maxRangeProbab = 0.01; }; class far_optic2: far_optic1 { burst = 3; requiredOpticType = 2; minRange = 400; minRangeProbab = 0.05; midRange = 750; midRangeProbab = 0.7; maxRange = 900; maxRangeProbab = 0.01; aiRateOfFire = 10; aiRateOfFireDistance = 900; }; class WeaponSlotsInfo { allowedslots[] = {901}; mass = 4; class MuzzleSlot: SlotInfo { linkProxy = "\A3\data_f\proxies\weapon_slots\MUZZLE"; compatibleItems[] = {"muzzle_snds_H_MG"}; }; class CowsSlot { access = 1; compatibleitems[] = {"optic_Arco","optic_aco","optic_ACO_grn","optic_hamr","optic_Holosight"}; displayname = "Optics Slot"; linkproxy = "\A3\data_f\proxies\weapon_slots\TOP"; scope = 0; }; class PointerSlot { access = 1; compatibleitems[] = {"acc_flashlight","acc_pointer_IR"}; displayname = "Pointer Slot"; linkproxy = "\A3\data_f\proxies\weapon_slots\SIDE"; scope = 0; }; }; }; class pr0per_AK12: pr0per_AK12_base { scope = 2; model = "pr0per_AK12\pr0per_AK12.p3d"; picture = "\pr0per_AK12\UI\gear_AK12_x_ca.paa"; displayname = "AK-12"; }; class pr0per_RPK12: pr0per_RPK12_base { scope = 2; model = "pr0per_AK12\pr0per_RPK12.p3d"; picture = "\pr0per_AK12\UI\gear_AK12_x_ca.paa"; displayname = "RPK-12"; }; }; class CfgMagazines { class 30Rnd_556x45_Stanag; class 200Rnd_65x39_cased_Box; }; //}; and here is a video for better understanding of the problem: http://youtu.be/CtNdi2Axdkc I've looked in every similar topic, but I have not found any solution for the problem. I hope on you, guys. Please help. -
How to update your weapons for arma 3.
m1st3r_pr0per replied to AmericanFAC's topic in ARMA 3 - ADDONS & MODS: DISCUSSION
Deleted