Jump to content
Sign in to follow this  
Sakai

Unit not showing in editor but config works fine?

Recommended Posts

Heyoh!

I have a problem with certain unit, or perhaps config.cpp not sure which one now...

Either way its R0adki's T-55AMV ((yes I have permission to edit it, I have send him PM about the problem but not reply and im too fired up to play with this bad boy))

So the problem is simple, no errors from config.cpp, faction, side and so on is set correctly however when looked in "Armored" place or anywhere in Empty and so on the unit simply... Is not in editor, its not showing up...

Here is the config.cpp

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2


class CfgPatches
{
class sak_t55fac
   	{
     	units[] = {"FAC_T55AMV"};
	weapons[] = {"rki_100mm_D_10T2S","rki_fakeweapon"};
	requiredVersion = 1.0;
	requiredAddons[] = {"CAData", "CACharacters", "CAWeapons", "CASounds", "CATracked"};

};
};
class CfgVehicleClasses {
class FAC_T55 {
	displayName = "Armored";
};

#include <cfgmagazine.h>
#include <cfgWeapons.h>
#include <cfgAmmo.h>
//#include <CfgSkeletons.h>

class CfgVehicles
{
class Land;	// External class reference

class LandVehicle : Land {
	class NewTurret;	// External class reference
	class ViewOptics;	// External class reference
};

class Tank : LandVehicle {
	class Turrets {
		class MainTurret : NewTurret {
			class Turrets {
				class CommanderOptics : NewTurret {};
			};
		};
	};

	class ViewOptics : ViewOptics {};
};
class T72_Base : Tank {};
class FAC_T55AMV :T72_Base {

	displayName = "T-55AMV";
	model = "\rki_T55\rki_T55AM2B.p3d";
	selectionLeftOffset = "pasoffsetl";
	selectionRightOffset = "pasoffsetp";
	IncommingMisslieDetectionSystem = 16;
	LockDetectionSystem = 4;
	scope= 2;
	side = TGuerrila;
	faction = "FAC";
	vehicleClass = "FAC_T55";
	hiddenSelections[] = {"camo01", "camo02", "camo03", "camo04", "camo05", "camo06"};
	hiddenSelectionsTextures[] = {"\rki_t55\am01_oak_co.paa","\rki_t55\body_oak_co.paa","\rki_t55\gun_am_oak_co.paa","\rki_t55\gun_oak_co.paa","\rki_t55\tilt2_oak_co.paa","\rki_t55\tilt_oak_co.paa"};
	crew = "LEN_UN_CDF_Marine_Crew_EP1";
	typicalCargo[] = {"LEN_UN_CDF_Marine_Crew_EP1", "LEN_UN_CDF_Marine_Crew_EP1", "LEN_UN_CDF_Marine_Crew_EP1", "LEN_UN_CDF_Marine_Crew_EP1"};
	accuracy = 0.2;
	picture = "\rki_T55\pic_rki_T55_ca.paa";
	Icon = "\rki_T55\icomap_rki_t55_ca.paa";
	mapSize= 9.5;
	armor= 650;
	damageResistance = 0.00454;
	maxSpeed= 57;
	forceHideGunner = 0;
	transportSoldier = 0;
	class TransportMagazines {};
	transportAmmo = 0;
	supplyRadius = 1.7;
	canFloat = 0;
	nightVision=0;
	type = VArmor;
	threat[] = {0.9, 0.8, 0.2};
	cost = 400000;

	class ViewOptics {
		initAngleX = 0;
		minAngleX = -30;
		maxAngleX = 30;
		initAngleY = 0;
		minAngleY = -100;
		maxAngleY = 100;
		initFov = 0.9;
		minFov = 0.9;
		maxFov = 0.9;
	};

	// internal camera viewing limitations
	class ViewPilot {
		initAngleX = 0;
		minAngleX = 0;
		maxAngleX = 20;
		initAngleY = 0;
		minAngleY = -100;
		maxAngleY = 100;
		initFov = 0.57;
		minFov = 0.42;
		maxFov = 0.64;
	};

	class HitHull {
		armor = 0.85;
		material = -1;
		name = "telo";
		visual = "telo";
		passThrough = 0.8;
	};

	class HitLTrack {
		armor = 0.7;
		material = -1;
		name = "pas_L";
		visual = "pas_L";
		passThrough = 0;
	};

	class HitRTrack {
		armor = 0.7;
		material = -1;
		name = "pas_P";
		visual = "pas_P";
		passThrough = 0;
	};

	class HitEngine {
		armor = 0.7;
		material = -1;
		name = "motor";
		visual = "motor";
		passThrough = 0.3;
	};


	class Exhausts {
		class Exhaust1 {
			position = "vyfuk start";
			direction = "vyfuk konec";
			effect = "ExhaustsEffectBig";
		};
	};

class AnimationSources {


		class recoil_source
		{
			source = "reload";
			weapon = "D81";
		};


		class belt_rotation
		{
			source="reload";
			weapon="DSHKM";
		};



	};

	soundEngine[] = {"\rki_T55\sound\rki_T55_engine.wss", db18, 0.8};
	soundEnviron[] = {"\rki_T55\sound\OldRolling_Treads2.wss", db20, 0.9};
	soundGetOut[] = {"\ca\Tracked\Data\Sound\tank_door", db-40, 1};
	soundGetIn[] = {"\ca\Tracked\Data\Sound\tank_door", db-40, 1};
	driverOutOpticsModel = "";
	forceHideDriver = 0;
	driverForceOptics = 1;
	driverAction = "T72_DriverOut";
	driverInAction = "T72_Driver";
	commanding=-1;
	primaryObserver=0;

	class Library
			{
 libTextDesc="The T-54 and T-55 tanks were a series of main battle tanks designed in the Soviet Union. The first T-54 prototype appeared in March 1945, just before the end of the Second World War. The T-54 entered full production in 1947 and became the main tank of the Soviet Red Army's armored units, as well as of the armies of the Warsaw Pact countries, and others. T-54s and T-55s have been involved in many of the world's armed conflicts during the late twentieth century.";
		};

	class Damage {
		tex[] = {};
		mat[] = {
			"rki_T55\T55_body.rvmat",
			"rki_T55\T55_body_s.rvmat",
			"rki_T55\T55_body_damage.rvmat",
			"rki_T55\T55_body_destruct.rvmat",
			"rki_T55\T55_bodyLOD.rvmat",
			"rki_T55\T55_bodyLOD_damage.rvmat",
			"rki_T55\T55_bodyLOD_destruct.rvmat",
			"rki_T55\T55_gun_s.rvmat",
			"rki_T55\T55_gun_damage.rvmat",
			"rki_T55\T55_gun_destruct.rvmat",
			"rki_T55\T55_tlt2_s.rvmat",
			"rki_T55\T55_tlt2_damage.rvmat",
			"rki_T55\T55_tlt2_destruct.rvmat",
			"rki_T55\T55_tlt_s.rvmat",
			"rki_T55\T55_tlt_damage.rvmat",
			"rki_T55\T55_tlt_destruct.rvmat",
			"rki_T55\T55_tlt_LOD.rvmat",
			"rki_T55\T55_tlt_LOD_damage.rvmat",
			"rki_T55\T55_tlt_LOD_destruct.rvmat",
			"rki_T55\T55_wheel_s.rvmat",
			"rki_T55\T55_wheel_damage.rvmat",
			"rki_T55\T55_wheel_destruct.rvmat",
			"rki_T55\T55_track_s.rvmat",
			"rki_T55\T55_track_damage.rvmat",
			"rki_T55\T55_track_destruct.rvmat",
			"ca\tracked\data\t72_2.rvmat",
			"ca\tracked\data\t72_2_damage.rvmat",
			"ca\tracked\data\t72_2_destruct.rvmat",
			"ca\weapons\data\dshk.rvmat",
			"ca\weapons\data\dshk.rvmat",
			"ca\weapons\data\dshk_destruct.rvmat"
		};
	};

	class Turrets : Turrets {

		class MainTurret : MainTurret
		 {
			gunnerAction = T72_CommanderOut;
			gunnerInAction = T72_Gunner;
			weapons[]={D81,PKT};
			magazines[]={"23Rnd_125mmSABOT_T72","22Rnd_125mmHE_T72","2000Rnd_762x54_PKT"};
			soundServo[]={\rki_T55\sound\T55_turret.wss,db-60,1.0};
			forceHideGunner = 1;

			gunnerOpticsModel = "\ca\weapons\2Dscope_T72gun8";
			gunnerOutOpticsModel = "";
			gunnerOpticsEffect[] = {"TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera3"};
			minElev=-6; maxElev=+14; initElev=0;
			maxHorizontalRotSpeed = 0.65;
			maxVerticalRotSpeed = 0.12;
			startEngine = false;
			primaryGunner = 1;
			primaryObserver = 0;
			commanding = 0;
			lockWhenDriverOut = 0;

			class HitPoints {
				class HitTurret {
					armor = 1;
					material = -1;
					name = "vez";
					visual = "vez";
					passThrough = 0.8;
				};

				class HitGun {
					armor = 0.3;
					material = -1;
					name = "zbran";
					visual = "zbran";
					passThrough = 0;
				};
			};

			class ViewOptics
			{
				initAngleX=0; minAngleX=-30; maxAngleX=+30;
				initAngleY=0; minAngleY=-100; maxAngleY=+100;
				initFov=0.166; minFov=0.025; maxFov=0.333;
				visionMode[] = {"Normal", NVG, "Ti"};
				thermalMode[] = {0, 1};
			};
			class ViewGunner {
				initAngleX = 0; minAngleX = -30; maxAngleX = 30;
				initAngleY = 0; minAngleY = -100; maxAngleY = 100;
				initFov = 0.57; minFov = 0.42; maxFov = 0.64;
			};

			class Turrets : Turrets 
			 {


				class CommanderOptics: CommanderOptics
				{
					weapons[] = {rki_fakeweapon,"SmokeLauncher"};
					magazines[] = {"SmokeLauncherMag","SmokeLauncherMag"};
					gunBeg = "gun_muzzle";
					gunEnd = "gun_chamber";
					body = "ObsTurret";
					gun = "ObsGun";
					gunnerAction = T72_GunnerOut;
					gunnerInAction = T72_Commander;
					gunnerOutFireAlsoInInternalCamera = 1;
					gunnerOutOpticsShowCursor = 0;
					gunnerOpticsShowCursor = 0;
					gunnerOpticsModel = "\ca\weapons\2Dscope_RUAA5";
					gunnerOpticsEffect[] = {"TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera3"};
					gunnerOutOpticsModel = "";
					gunnerForceOptics = true;
					minElev = -25;
					maxElev = 60;
					initElev = 0;
					minTurn = -360;
					maxTurn = 360;
					initTurn = 0;

					soundServo[]={\ca\Weapons\Data\Sound\gun_elevate2,db-70,1.0};
					commanding=3;

					animationSourceHatch = "hatchCommander";
					animationSourceBody = "obsTurret";

					viewGunnerInExternal = 0;
					primaryObserver=1;
					primaryGunner = 0;

					class ViewOptics : ViewOptics {
						initAngleX = 0;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.3;
						minFov = 0.015;
						maxFov = 0.3;
						visionMode[] = {"Normal","NVG","Ti"};
						thermalMode[] = {0,1};
					};


					class ViewGunner : ViewGunner  {
						initAngleX = 5;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.7;
						minFov = 0.25;
						maxFov = 1.1;
						};

				};

//////////////////////////////////////////////////////////////////////////////////////////////////
			class LoaderTurret : CommanderOptics
			{

					weapons[] = {DSHKM};
					magazines[] = {"50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM"};
					gunnerAction = "T72_CommanderOut";
					gunnerInAction = "T72_Commander";
					gunnerOpticsModel = "\ca\Tracked\optika_T72_commander";
					gunnerOutOpticsModel = "";
					gunnerOpticsEffect[] = {"TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera3"};
					gunBeg = "loader_muzzle";
					gunEnd = "loader_chamber";
					viewGunnerInExternal = 0;
					proxyType = "CPGunner";
					proxyIndex = 2;
					gunnerName = "loader";
					primaryGunner = 0;
					primaryObserver = 0;
					primary = false;
					hasGunner = true;
					body = "LoaderTurret";
					gun = "LoaderGun";
					animationSourceBody = "Turret_2";
					animationSourceGun = "Gun_2";
					animationSourceHatch = "Hatch_2";
					minElev = -15;
					maxElev = 60;
					initElev = 0;
					minTurn = -360;
					maxTurn = 360;
					initTurn = 0;
					commanding = 1;
					outGunnerMayFire = 1;
					inGunnerMayFire = 0;
					gunnerFireAlsoInInternalCamera = 1;
					gunnerForceOptics = 1;
					gunnerOutForceOptics = 0;
					gunnerOutOpticsShowCursor = 0;
					memoryPointGunnerOutOptics = "loader_weapon_view";
					memoryPointGunnerOptics = "loaderview";
					memoryPointsGetInGunner = "pos driver";
					memoryPointsGetInGunnerDir = "pos driver dir";
					memoryPointGun = "loaderPointGun";
					selectionFireAnim = "zasleh_1";
					startEngine = false;
					castGunnerShadow = false;
					gunnerGetInAction = "GetInMedium";
					gunnerGetOutAction = "GetOutMedium";

					class ViewOptics : ViewOptics {
						initAngleX = 0;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.571;
						minFov = 0.42;
						maxFov = 0.64;
					};

					class ViewGunner : ViewGunner {
						initAngleX = 0;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.57;
						minFov = 0.42;
						maxFov = 0.64;

					};
				};
////////////////////////////////////////////////////////////////////////////////////////////////////////

			};

		};
	};
};
};
};

Yes the config is changed to e.g. Tag's to not make conflicts with NAF...

Could anyone tell me whats wrong?

Edited by Sakai

Share this post


Link to post
Share on other sites

class CfgVehicleClasses is not closed:


class CfgVehicleClasses {     class FAC_T55 {         displayName = "Armored"; };      #include <cfgmagazine.h>     #include <cfgWeapons.h>     #include <cfgAmmo.h>     //#include <CfgSkeletons.h> 

must be:

class CfgVehicleClasses {     class FAC_T55 {         displayName = "Armored"; };      #include <cfgmagazine.h>     #include <cfgWeapons.h>     #include <cfgAmmo.h>     //#include <CfgSkeletons.h> 
};

Eventually fixed config:

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2


class CfgPatches
{
 class sak_t55fac
     {
       units[] = {"FAC_T55AMV"};
   weapons[] = {"rki_100mm_D_10T2S","rki_fakeweapon"};
   requiredVersion = 1.0;
   requiredAddons[] = {"CAData", "CACharacters", "CAWeapons", "CASounds", "CATracked"};

 };
};

class CfgVehicleClasses
{
 class FAC_T55
 {
   displayName = "Armored";
 };
 #include <cfgmagazine.h>
 #include <cfgWeapons.h>
 #include <cfgAmmo.h>
 //#include <CfgSkeletons.h>
};

class CfgVehicles
{
 class Land; // External class reference
 class LandVehicle : Land
 {
   class NewTurret;  // External class reference
   class ViewOptics; // External class reference
 };
 class Tank : LandVehicle
 {
   class Turrets
   {
     class MainTurret : NewTurret
     {
       class Turrets
       {
         class CommanderOptics : NewTurret {};
       };
     };
   };
   class ViewOptics : ViewOptics {};
 };
 class T72_Base : Tank {};
 class FAC_T55AMV :T72_Base
 {
   displayName = "T-55AMV";
   model = "\rki_T55\rki_T55AM2B.p3d";
   selectionLeftOffset = "pasoffsetl";
   selectionRightOffset = "pasoffsetp";
   IncommingMisslieDetectionSystem = 16;
   LockDetectionSystem = 4;
   scope= 2;
   side = TGuerrila;
   faction = "FAC";
   vehicleClass = "FAC_T55";
   hiddenSelections[] = {"camo01", "camo02", "camo03", "camo04", "camo05", "camo06"};
   hiddenSelectionsTextures[] = {"\rki_t55\am01_oak_co.paa","\rki_t55\body_oak_co.paa","\rki_t55\gun_am_oak_co.paa","\rki_t55\gun_oak_co.paa","\rki_t55\tilt2_oak_co.paa","\rki_t55\tilt_oak_co.paa"};
   crew = "LEN_UN_CDF_Marine_Crew_EP1";
   typicalCargo[] = {"LEN_UN_CDF_Marine_Crew_EP1", "LEN_UN_CDF_Marine_Crew_EP1", "LEN_UN_CDF_Marine_Crew_EP1", "LEN_UN_CDF_Marine_Crew_EP1"};
   accuracy = 0.2;
   picture = "\rki_T55\pic_rki_T55_ca.paa";
   Icon = "\rki_T55\icomap_rki_t55_ca.paa";
   mapSize= 9.5;
   armor= 650;
   damageResistance = 0.00454;
   maxSpeed= 57;
   forceHideGunner = 0;
   transportSoldier = 0;
   class TransportMagazines {};
   transportAmmo = 0;
   supplyRadius = 1.7;
   canFloat = 0;
   nightVision=0;
   type = VArmor;
   threat[] = {0.9, 0.8, 0.2};
   cost = 400000;
   class ViewOptics
   {
     initAngleX = 0;
     minAngleX = -30;
     maxAngleX = 30;
     initAngleY = 0;
     minAngleY = -100;
     maxAngleY = 100;
     initFov = 0.9;
     minFov = 0.9;
     maxFov = 0.9;
   };
   // internal camera viewing limitations
   class ViewPilot
   {
     initAngleX = 0;
     minAngleX = 0;
     maxAngleX = 20;
     initAngleY = 0;
     minAngleY = -100;
     maxAngleY = 100;
     initFov = 0.57;
     minFov = 0.42;
     maxFov = 0.64;
   };
   class HitHull
   {
     armor = 0.85;
     material = -1;
     name = "telo";
     visual = "telo";
     passThrough = 0.8;
   };
   class HitLTrack
   {
     armor = 0.7;
     material = -1;
     name = "pas_L";
     visual = "pas_L";
     passThrough = 0;
   };
   class HitRTrack
   {
     armor = 0.7;
     material = -1;
     name = "pas_P";
     visual = "pas_P";
     passThrough = 0;
   };
   class HitEngine
   {
     armor = 0.7;
     material = -1;
     name = "motor";
     visual = "motor";
     passThrough = 0.3;
   };
   class Exhausts
   {
     class Exhaust1
     {
       position = "vyfuk start";
       direction = "vyfuk konec";
       effect = "ExhaustsEffectBig";
     };
   };
   class AnimationSources
   {
     class recoil_source
     {
       source = "reload";
       weapon = "D81";
     };
     class belt_rotation
     {
       source="reload";
       weapon="DSHKM";
     };
   };
   soundEngine[] = {"\rki_T55\sound\rki_T55_engine.wss", db+18, 0.8};
   soundEnviron[] = {"\rki_T55\sound\OldRolling_Treads2.wss", db+20, 0.9};
   soundGetOut[] = {"\ca\Tracked\Data\Sound\tank_door", db-40, 1};
   soundGetIn[] = {"\ca\Tracked\Data\Sound\tank_door", db-40, 1};
   driverOutOpticsModel = "";
   forceHideDriver = 0;
   driverForceOptics = 1;
   driverAction = "T72_DriverOut";
   driverInAction = "T72_Driver";
   commanding=-1;
   primaryObserver=0;
   class Library
   {
     libTextDesc="The T-54 and T-55 tanks were a series of main battle tanks designed in the Soviet Union. The first T-54 prototype appeared in March 1945, just before the end of the Second World War. The T-54 entered full production in 1947 and became the main tank of the Soviet Red Army's armored units, as well as of the armies of the Warsaw Pact countries, and others. T-54s and T-55s have been involved in many of the world's armed conflicts during the late twentieth century.";
   };
   class Damage
   {
     tex[] = {};
     mat[] = {
       "rki_T55\T55_body.rvmat",
       "rki_T55\T55_body_s.rvmat",
       "rki_T55\T55_body_damage.rvmat",
       "rki_T55\T55_body_destruct.rvmat",
       "rki_T55\T55_bodyLOD.rvmat",
       "rki_T55\T55_bodyLOD_damage.rvmat",
       "rki_T55\T55_bodyLOD_destruct.rvmat",
       "rki_T55\T55_gun_s.rvmat",
       "rki_T55\T55_gun_damage.rvmat",
       "rki_T55\T55_gun_destruct.rvmat",
       "rki_T55\T55_tlt2_s.rvmat",
       "rki_T55\T55_tlt2_damage.rvmat",
       "rki_T55\T55_tlt2_destruct.rvmat",
       "rki_T55\T55_tlt_s.rvmat",
       "rki_T55\T55_tlt_damage.rvmat",
       "rki_T55\T55_tlt_destruct.rvmat",
       "rki_T55\T55_tlt_LOD.rvmat",
       "rki_T55\T55_tlt_LOD_damage.rvmat",
       "rki_T55\T55_tlt_LOD_destruct.rvmat",
       "rki_T55\T55_wheel_s.rvmat",
       "rki_T55\T55_wheel_damage.rvmat",
       "rki_T55\T55_wheel_destruct.rvmat",
       "rki_T55\T55_track_s.rvmat",
       "rki_T55\T55_track_damage.rvmat",
       "rki_T55\T55_track_destruct.rvmat",
       "ca\tracked\data\t72_2.rvmat",
       "ca\tracked\data\t72_2_damage.rvmat",
       "ca\tracked\data\t72_2_destruct.rvmat",
       "ca\weapons\data\dshk.rvmat",
       "ca\weapons\data\dshk.rvmat",
       "ca\weapons\data\dshk_destruct.rvmat"
     };
   };
   class Turrets : Turrets
   {
     class MainTurret : MainTurret
     {
       gunnerAction = T72_CommanderOut;
       gunnerInAction = T72_Gunner;
       weapons[]={D81,PKT};
       magazines[]={"23Rnd_125mmSABOT_T72","22Rnd_125mmHE_T72","2000Rnd_762x54_PKT"};
       soundServo[]={\rki_T55\sound\T55_turret.wss,db-60,1.0};
       forceHideGunner = 1;
       gunnerOpticsModel = "\ca\weapons\2Dscope_T72gun8";
       gunnerOutOpticsModel = "";
       gunnerOpticsEffect[] = {"TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera3"};
       minElev=-6; maxElev=+14; initElev=0;
       maxHorizontalRotSpeed = 0.65;
       maxVerticalRotSpeed = 0.12;
       startEngine = false;
       primaryGunner = 1;
       primaryObserver = 0;
       commanding = 0;
       lockWhenDriverOut = 0;
       class HitPoints
       {
         class HitTurret
         {
           armor = 1;
           material = -1;
           name = "vez";
           visual = "vez";
           passThrough = 0.8;
         };
         class HitGun
         {
           armor = 0.3;
           material = -1;
           name = "zbran";
           visual = "zbran";
           passThrough = 0;
         };
       };
       class ViewOptics
       {
         initAngleX=0; minAngleX=-30; maxAngleX=+30;
         initAngleY=0; minAngleY=-100; maxAngleY=+100;
         initFov=0.166; minFov=0.025; maxFov=0.333;
         visionMode[] = {"Normal", NVG, "Ti"};
         thermalMode[] = {0, 1};
       };
       class ViewGunner
       {
         initAngleX = 0; minAngleX = -30; maxAngleX = 30;
         initAngleY = 0; minAngleY = -100; maxAngleY = 100;
         initFov = 0.57; minFov = 0.42; maxFov = 0.64;
       };
       class Turrets : Turrets
       {
         class CommanderOptics: CommanderOptics
         {
           weapons[] = {rki_fakeweapon,"SmokeLauncher"};
           magazines[] = {"SmokeLauncherMag","SmokeLauncherMag"};
           gunBeg = "gun_muzzle";
           gunEnd = "gun_chamber";
           body = "ObsTurret";
           gun = "ObsGun";
           gunnerAction = T72_GunnerOut;
           gunnerInAction = T72_Commander;
           gunnerOutFireAlsoInInternalCamera = 1;
           gunnerOutOpticsShowCursor = 0;
           gunnerOpticsShowCursor = 0;
           gunnerOpticsModel = "\ca\weapons\2Dscope_RUAA5";
           gunnerOpticsEffect[] = {"TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera3"};
           gunnerOutOpticsModel = "";
           gunnerForceOptics = true;
           minElev = -25;
           maxElev = 60;
           initElev = 0;
           minTurn = -360;
           maxTurn = 360;
           initTurn = 0;
           soundServo[]={\ca\Weapons\Data\Sound\gun_elevate2,db-70,1.0};
           commanding=3;
           animationSourceHatch = "hatchCommander";
           animationSourceBody = "obsTurret";
           viewGunnerInExternal = 0;
           primaryObserver=1;
           primaryGunner = 0;
           class ViewOptics : ViewOptics
           {
             initAngleX = 0;
             minAngleX = -30;
             maxAngleX = 30;
             initAngleY = 0;
             minAngleY = -100;
             maxAngleY = 100;
             initFov = 0.3;
             minFov = 0.015;
             maxFov = 0.3;
             visionMode[] = {"Normal","NVG","Ti"};
             thermalMode[] = {0,1};
           };
           class ViewGunner : ViewGunner
           {
             initAngleX = 5;
             minAngleX = -30;
             maxAngleX = 30;
             initAngleY = 0;
             minAngleY = -100;
             maxAngleY = 100;
             initFov = 0.7;
             minFov = 0.25;
             maxFov = 1.1;
           };
         };
         class LoaderTurret : CommanderOptics
         {
           weapons[] = {DSHKM};
           magazines[] = {"50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM", "50Rnd_127x107_DSHKM"};
           gunnerAction = "T72_CommanderOut";
           gunnerInAction = "T72_Commander";
           gunnerOpticsModel = "\ca\Tracked\optika_T72_commander";
           gunnerOutOpticsModel = "";
           gunnerOpticsEffect[] = {"TankGunnerOptics1", "OpticsBlur2", "OpticsCHAbera3"};
           gunBeg = "loader_muzzle";
           gunEnd = "loader_chamber";
           viewGunnerInExternal = 0;
           proxyType = "CPGunner";
           proxyIndex = 2;
           gunnerName = "loader";
           primaryGunner = 0;
           primaryObserver = 0;
           primary = false;
           hasGunner = true;
           body = "LoaderTurret";
           gun = "LoaderGun";
           animationSourceBody = "Turret_2";
           animationSourceGun = "Gun_2";
           animationSourceHatch = "Hatch_2";
           minElev = -15;
           maxElev = 60;
           initElev = 0;
           minTurn = -360;
           maxTurn = 360;
           initTurn = 0;
           commanding = 1;
           outGunnerMayFire = 1;
           inGunnerMayFire = 0;
           gunnerFireAlsoInInternalCamera = 1;
           gunnerForceOptics = 1;
           gunnerOutForceOptics = 0;
           gunnerOutOpticsShowCursor = 0;
           memoryPointGunnerOutOptics = "loader_weapon_view";
           memoryPointGunnerOptics = "loaderview";
           memoryPointsGetInGunner = "pos driver";
           memoryPointsGetInGunnerDir = "pos driver dir";
           memoryPointGun = "loaderPointGun";
           selectionFireAnim = "zasleh_1";
           startEngine = false;
           castGunnerShadow = false;
           gunnerGetInAction = "GetInMedium";
           gunnerGetOutAction = "GetOutMedium";
           class ViewOptics : ViewOptics
           {
             initAngleX = 0;
             minAngleX = -30;
             maxAngleX = 30;
             initAngleY = 0;
             minAngleY = -100;
             maxAngleY = 100;
             initFov = 0.571;
             minFov = 0.42;
             maxFov = 0.64;
           };
           class ViewGunner : ViewGunner
           {
             initAngleX = 0;
             minAngleX = -30;
             maxAngleX = 30;
             initAngleY = 0;
             minAngleY = -100;
             maxAngleY = 100;
             initFov = 0.57;
             minFov = 0.42;
             maxFov = 0.64;
           };
         };
       };
     };
   };
 };
};

Edited by W0lle

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  

×