Jump to content
Sign in to follow this  
dinoboy123

Simple Issue Inserting Sample Arma 1 Models into Arma 2

Recommended Posts

I'm gaining a better understanding of how config files work on implementing the weapon in game. However the one issue I have left is implementing my own models in the arma engine. I downloaded custom ak models with the cfg files and they work fine in game. However, when I try to swap the original model file with the ak from arma 1 the gun is invisible and fires sideways. This issue also occurs with models from arma 2 and with my customized models. All models are in the same pbo addon file. I assume this is an issue with placement of the weapon relative to the player, and can only be resolved in config file. However, I have looked over the file several times and cannot see why changing the models is an issue.

Thanks for any help!

Here is the config file for reference, thanks to Lux for the awesome ak pack!

////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////

#define _ARMA_

//Class ak_74_luxs : config.bin{
class CfgWeapons
{
class AKS_74_kobra;
class AK_74;
class Svd;
class Aks_74_Lux_Wstock: AKS_74_kobra
{
	displayName = "Andy_Aks74_Lux_Stock_Handle";
	scope = 2;
	model = "\Ak_74_Luxs\models\aks74usample";
	Picture = "\Ak_74_Luxs\PICS\Aks74_Lux_Stock_Handle.paa";
	magazines[] = {"30Rnd_545x39_AK"};
	modelOptics = "-";
	handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons\data\Anim\Mk48.rtm"};
	irDistance = 100;
	weaponInfoType = "RscWeaponEmpty";
	discreteDistance[] = {300};
	discreteDistanceInitIndex = 0;
};
class Aks_74_lux_Marksmans: AK_74
{
	scope = 2;
	displayName = "Andy_Aks74_Exclusive_Marksman";
	model = "\Ak_74_Luxs\models\Aks_74_Lux_Marksmans.p3d";
	magazines[] = {"Luxs_556Mag"};
	Picture = "\Ak_74_Luxs\PICS\Aks_74_lux_Marksmans.paa";
	handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons\Data\Anim\AK.rtm"};
	modelOptics = "\ca\weapons\optika_snpiere";
	opticsPPEffects[] = {"OpticsCHAbera3","OpticsBlur3"};
	UiPicture = "\CA\weapons\data\Ico\i_sniper_CA.paa";
	modes[] = {"Single","FullAuto"};
	opticsFlare = 1;
	opticsDisablePeripherialVision = 1;
	opticsZoomInit = 0.0623;
	opticsZoomMin = 0.0623;
	opticsZoomMax = 0.0623;
	distanceZoomMin = 200;
	distanceZoomMax = 200;
};
class Aks_74_Lux_bayonet: AKS_74_kobra
{
	displayName = "Aks74_Andy_Exclusive(Bayonet)";
	model = "\Ak_74_Luxs\models\Aks_74_Lux_Bayonet.p3d";
	magazines[] = {"30Rnd_545x39_AK"};
	Picture = "\Ak_74_Luxs\PICS\Aks74_Lux_Stock_Bayonet.paa";
	modelOptics = "-";
};
};
class cfgVehicles
{
class ReammoBox;
class Lux_Box: ReammoBox
{
	scope = 2;
	accuracy = 1000;
	displayName = "Lux_box";
	model = "\ca\weapons\AmmoBoxes\USBasicWeapons.p3d";
	class TransportMagazines
	{
		class 30Rnd_545x39_AK
		{
			magazine = "30Rnd_545x39_AK";
			count = 200;
		};
		class Luxs_556Mag
		{
			magazine = "Luxs_556Mag";
			count = 200;
		};
	};
	class TransportWeapons
	{
		class Aks_74_lux_Wstock
		{
			weapon = "Aks_74_lux_Wstock";
			count = 12;
		};
		class Aks_74_lux_Marksmans
		{
			weapon = "Aks_74_lux_Marksmans";
			count = 12;
		};
		class Aks_74_Lux_bayonet
		{
			weapon = "Aks_74_Lux_bayonet";
			count = 12;
		};
	};
};
};
class CfgPatches
{
class Ak_Luxs
{
	units[] = {};
	Magazines[] = {"Luxs_556Mag"};
	weapons[] = {"Aks_74_lux_Wstock","Aks_74_lux_Marksmans","Aks_74_Lux_bayonet"};
	requiredVersion = 1.54;
	requiredAddons[] = {};
};
};
class CfgAmmo
{
class B_545x39_Ball;
class lunxs_556ball: B_545x39_Ball
{
	hit = 12;
	indirectHit = 0;
	indirectHitRange = 0;
	cartridge = "FxCartridge_556";
	visibleFire = 22;
	audibleFire = 18;
	visibleFireTime = 3;
	cost = 1.2;
	airLock = 1;
	model = "\ca\Weapons\Data\bullettracer\tracer_green";
	tracerScale = 0;
	tracerStartTime = 0;
	tracerEndTime = -1;
	airFriction = -0.001;
};
};
class CfgMagazines
{
class Default;
class CA_Magazine: Default{};
class 10Rnd_762x54_SVD: CA_Magazine{};
class Luxs_556Mag: 10Rnd_762x54_SVD
{
	displayName = "Luxs_556";
	picture = "\Ak_74_Luxs\PICS\Luxs_556Mag.paa";
	ammo = "lunxs_556ball";
	count = 10;
	initSpeed = 870;
	tracersEvery = 0;
	descriptionShort = "Caliber 545x39 10rnd Used in Aks74_Exclusive_Marksman";
};
};
//};

Edited by Max Power

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×