Forum Jump :

Author Message


Posts: 16
Rank:


Level: Member

Country: es
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2016-02-08 17:54        
     
Hello world, I'm working on my weapons and I've got a problem with the reloading animation. I have the custom reload .rtm file but I don't know how to make it work. I look here Enter text for the link here... and I copy and paste the code in my own, changing the file destination to mine. Help please.

Config.cpp
class CfgPatches
{
	class Mp40
	{
		units[] = {};
		weapons[] = {"Mp40"};
		requiredVersion = 0.1;
		requiredAddons[] = {"A3_Weapons_F"};
	};
};
class Mode_SemiAuto;
class Mode_Burst;
class Mode_FullAuto;
class SlotInfo;
class MuzzleSlot;
class CowsSlot;
//class PointerSlot;

///////////////////////////////////////////////////////////////////////////////////////////
///CARGADORES///
///////////////////////////////////////////////////////////////////////////////////////////
class CfgMagazines {
    class 30Rnd_556x45_Stanag; //Clase externa
	class 32Rnd_1143x26_Stanag : 30Rnd_556x45_Stanag {
		ammo = "32Rnd_1143x26_Ball";
		count = 32; //Cantidad de balas por cargador
		descriptionshort = "Calibre: 9mm (9 x 19)<br />Cargador: 32<br />Usado en: Subfusil Mp40";
		displayname = "Cargador Mp40 9mm 32rnd";
		initspeed = 930;
		lastroundstracer = 0;
		picture = "RTM_Mp40\data\UI\RTM_cargador_Mp40.paa";
		model = "RTM_Mp40\RTM_cargador_Mp40.p3d";
		scope = 2;
		tracersevery = 0;
	};
};
class CfgAmmo {
    class B_556x45_Ball; //Clase externa
	class 32Rnd_1143x26_Ball : B_556x45_Ball {
		airfriction = -0.001425;
		caliber = 0.5;
		cost = 1;
		deflecting = 20;
		hit = 8;
		indirecthit = 0;
		indirecthitrange = 0;
		model = "\A3\Weapons_f\Data\bullettracer\tracer_red";
		nvgonly = 1;
		tracerendtime = 1;
		tracerscale = 1;
		tracerstarttime = 0.05;
	};
};		

///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
class CfgMovesBasic
{
	class DefaultDie;
	class ManActions
	{
		reloadMyWeapon = "reloadMyWeapon";
	};
}

class CfgGesturesMale
{
	class Default;
	class States
	{
		class reloadMyWeapon: Default
		{
			file="\RTM_Mp40\anim\Mp40_reload.rtm";
			looped=0;
			speed=0.400000;
 			mask="handsWeapon";
 			headBobStrength=0.200000;
 			headBobMode=2;
 			rightHandIKBeg=1;
 			rightHandIKEnd=1;
 			leftHandIKCurve[]={0,1,0.050000,0,0.950000,0,1,1};
		};
	};
};
class CfgWeapons

{
	class Rifle;
	class Rifle_Base_F: Rifle
	{
		class WeaponSlotsInfo;
	};
	class Mp40_base_F: Rifle_Base_F
	{
		scope = 0;
		magazines[] = {"32Rnd_1143x26_Stanag"};
		maxZeroing = 200;
		discreteDistance[] = {100,200};
		discreteDistanceInitIndex = 0;
		descriptionShort = "$STR_A3_CfgWeapons_pdw2000_base_F0";
		handAnim[] = {"OFP2_ManSkeleton","\RTM_Mp40\anim\Mp40.rtm"}; //Colocacion de las manos sobre el fusil
		reloadAction = "reloadMyWeapon"; //Animacion de recarga
		recoil = "recoil_pdw";
		distanceZoomMin = 50;
		distanceZoomMax = 50;
		bullet1[] = {"A3\sounds_f\weapons\shells\9mm\metal_9mm_01",0.5011872,1,15};
		bullet2[] = {"A3\sounds_f\weapons\shells\9mm\metal_9mm_02",0.5011872,1,15};
		bullet3[] = {"A3\sounds_f\weapons\shells\9mm\metal_9mm_03",0.5011872,1,15};
		bullet4[] = {"A3\sounds_f\weapons\shells\9mm\metal_9mm_04",0.5011872,1,15};
		bullet5[] = {"A3\sounds_f\weapons\shells\9mm\dirt_9mm_01",0.39810717,1,15};
		soundBullet[] = {"bullet1",0.083,"bullet2",0.083,"bullet3",0.083,"bullet4",0.083,"bullet5",0.083};
		modes[] = {"Single","FullAuto"};
		drySound[] = {"RTM_Mp40\sonidos\dry",0.1,1,20};
		changeFiremodeSound[] = {"RTM_Mp40\sonidos\bolt",0.25118864,1,5};
		reloadMagazineSound[] = {"RTM_Mp40\sonidos\reload",1.0,1,10};
		
		class Single: Mode_SemiAuto
		{
			sounds[] = {"StandardSound"};
			class BaseSoundModeType
			{
				closure1[] = {"RTM_Mp40\sonidos\Mp40",0.5011872,1,10};
				closure2[] = {"RTM_Mp40\sonidos\Mp40",0.5011872,1.1,10};
				soundClosure[] = {"closure1",0.5,"closure2",0.5};
			};
			class StandardSound: BaseSoundModeType
			{
				begin1[] = {"RTM_Mp40\sonidos\Mp40",1.2589254,1,1000};
				begin2[] = {"RTM_Mp40\sonidos\Mp40",1.2589254,1,1000};
				soundBegin[] = {"begin1",0.5,"begin2",0.5};
			};
			
			reloadTime = 0.12;
			recoil = "recoil_single_pdw";
			recoilProne = "recoil_single_prone_pdw";
			dispersion = 0.00250; //Defecto 0.00203
			minRange = 2;
			minRangeProbab = 0.3;
			midRange = 200;
			midRangeProbab = 0.7;
			maxRange = 350;
			maxRangeProbab = 0.05;
			aiRateOfFire = 2.0;
			aiRateOfFireDistance = 500;
		};
		
		class FullAuto: Mode_FullAuto
		{
			sounds[] = {"StandardSound"};
			class BaseSoundModeType
			{
				closure1[] = {"RTM_Mp40\sonidos\Mp40",0.5011872,1,10};
				closure2[] = {"RTM_Mp40\sonidos\Mp40",0.5011872,1.1,10};
				soundClosure[] = {"closure1",0.5,"closure2",0.5};
			};
			class StandardSound: BaseSoundModeType
			{
				begin1[] = {"RTM_Mp40\sonidos\Mp40",1.2589254,1,1000};
				begin2[] = {"RTM_Mp40\sonidos\Mp40",1.2589254,1,1000};
				soundBegin[] = {"begin1",0.5,"begin2",0.5};
			};
			
			reloadTime = 0.12;
			recoil = "recoil_auto_pdw";
			recoilProne = "recoil_auto_prone_pdw";
			dispersion = 0.00203;
			minRange = 0;
			minRangeProbab = 0.1;
			midRange = 25;
			midRangeProbab = 0.7;
			maxRange = 70;
			maxRangeProbab = 0.05;
			aiRateOfFire = 0.2;
			aiRateOfFireDistance = 50;
		};
		class WeaponSlotsInfo: WeaponSlotsInfo
		{
			class MuzzleSlot: MuzzleSlot
			{
		        linkProxy = "\A3\data_f\proxies\weapon_slots\MUZZLE";
				compatibleItems[] = {"muzzle_snds_L"};
				iconPosition[] = {0.0,0.45};
				iconScale = 0.2;
			};
			class CowsSlot: CowsSlot
			{
				iconPosition[] = {0.5,0.4};
				iconScale = 0.15;
			};
			class PointerSlot{};
		};
	};
	class Mp40: Mp40_base_F
	{
		author = "GO#9-Ivan";
		_generalMacro = "RTM-Subfusil Mp40";
		scope = 2;
		model = "\RTM_Mp40\RTM_Mp40.p3d";
        //modelOptics = "-";
		class WeaponSlotsInfo: WeaponSlotsInfo
		{
			mass = 30;
		};
		inertia = 0.2;
		dexterity = 1.8;
		initSpeed = 380;
		class ItemInfo
		{
			priority = 2;
		};
		displayName = "RTM-Subfusil Mp40";
		picture = "\RTM_Mp40\data\UI\RTM_Mp40.paa";
		UiPicture = "\A3\Weapons_F\data\UI\icon_regular_CA.paa";
		class Library
		{
			libTextDesc = "El MP40 (Maschinenpistole 40) fue un subfusil muy popular entre las tropas de la Alemania nazi durante la Segunda Guerra Mundial.";
		};
	};
};

Added 4 hours 6 minutes later:

Nobody????

This post was edited by Thirteenluiz (2016-02-08 22:00, 676 days ago)