Jump to content
Sign in to follow this  
wld427

Issues with commanders turret...

Recommended Posts

well the issue i have is the commanders turret.... On the LAV150AT and the 30mm the commander cannot turn in and the observer optic is not viewable from the position....

if anyone can help let me know i can send you the eintire addon to look at.

thanks

Eddie

Project RACS

http://pastebin.com/m2a0aa4bc

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#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 PRACS_Car

{

units[] = {PRACS_Car};

requiredVersion = 1.0;

VehicleClass = "Armored";

};

};

#include <cfgWeapons.h>

#include <cfgMagazine.h>

#include <cfgAmmo.h>

class CfgVehicles {

class Land; // External class reference

class LandVehicle: Land

{

class NewTurret;

class ViewOptics;

class ViewPilot;

class HeadLimits;

};

class car: landvehicle {};

class PRACS_CAR : car {

class HitEngine {

armor = 1.2;

material = 0;

name = "motor";

visual = "motor";

passThrough = true;

};

class HitRGlass {

armor = 0.5;

material = 0;

name = "sklo predni P";

passThrough = true;

};

class HitLGlass {

armor = 0.5;

material = 0;

name = "sklo predni L";

passThrough = true;

};

class HitBody {

armor = 0.4;

material = 0;

name = "karoserie";

visual = "karoserie";

passThrough = true;

};

class HitFuel {

armor = 1.4;

material = 0;

name = "palivo";

passThrough = true;

};

class HitLFWheel {

armor = 0.2;

material = 0;

name = "Levy predni tlumic";

visual = "Levy predni";

passThrough = true;

};

class HitRFWheel {

armor = 0.2;

material = 0;

name = "Pravy predni tlumic";

visual = "Pravy predni";

passThrough = true;

};

class HitLF2Wheel {

armor = 0.2;

material = 0;

name = "Levy dalsi tlumic";

visual = "Levy dalsi";

passThrough = true;

};

class HitRF2Wheel {

armor = 0.2;

material = 0;

name = "Pravy dalsi tlumic";

visual = "Pravy dalsi";

passThrough = true;

};

class HitLMWheel {

armor = 0.2;

material = 0;

name = "Levy prostredni tlumic";

visual = "Levy prostredni";

passThrough = true;

};

class HitRMWheel {

armor = 0.2;

material = 0;

name = "Pravy prostredni tlumic";

visual = "Pravy prostredni";

passThrough = true;

};

class HitLBWheel {

armor = 0.2;

material = 0;

name = "Levy zadni tlumic";

visual = "Levy zadni";

passThrough = true;

};

class HitRBWheel {

armor = 0.2;

material = 0;

name = "Pravy zadni tlumic";

visual = "Pravy zadni";

passThrough = true;

};

dammageHalf[] = {"\ca\wheeled\data\jepp4x4_glass.paa", "\ca\wheeled\data\jepp4x4_glassB.paa", "\ca\wheeled\data\jeep_kab_sklo1.paa", "\ca\wheeled\data\jeep_kab_sklo1B.paa", "\ca\wheeled\data\jeep_kab_sklo2.paa", "\ca\wheeled\data\jeep_kab_sklo2B.paa", "\ca\wheeled\data\scud_sklo.paa", "\ca\wheeled\data\scud_skloB.paa", "\ca\wheeled\data\scud_sklo2.paa", "\ca\wheeled\data\scud_sklo2B.paa", "\ca\wheeled\data\scud_sklo3.paa", "\ca\wheeled\data\scud_sklo3B.paa", "\ca\wheeled\data\scud_sklo4.paa", "\ca\wheeled\data\scud_sklo4B.paa"};

dammageFull[] = {"\ca\wheeled\data\jepp4x4_glass.paa", "\ca\wheeled\data\jepp4x4_glassB.paa", "\ca\wheeled\data\jeep_kab_sklo1.paa", "\ca\wheeled\data\jeep_kab_sklo1B.paa", "\ca\wheeled\data\jeep_kab_sklo2.paa", "\ca\wheeled\data\jeep_kab_sklo2B.paa", "\ca\wheeled\data\scud_sklo.paa", "\ca\wheeled\data\scud_skloB.paa", "\ca\wheeled\data\scud_sklo2.paa", "\ca\wheeled\data\scud_sklo2B.paa", "\ca\wheeled\data\scud_sklo3.paa", "\ca\wheeled\data\scud_sklo3B.paa", "\ca\wheeled\data\scud_sklo4.paa", "\ca\wheeled\data\scud_sklo4B.paa"};

getInAction = "GetInMedium";

getOutAction = "GetOutMedium";

weapons[] = {"CarHorn"};

hasGunner = false;

gunnerHasFlares = false;

class Turrets {

class MainTurret : NewTurret {

outGunnerMayFire = true;

memoryPointGun = "kulas";

body = "";

gun = "";

gunBeg = "usti hlavne"; // endpoint of the gun

gunEnd = "konec hlavne"; // chamber of the gun

gunnerAction = "ManActTestDriverOut";

soundServo[] = {"\ca\wheeled\Data\Sound\servo3", db-50, 1.0};

minElev = -5;

maxElev = 40;

minTurn = -360;

maxTurn = 360;

gunnerOpticsModel = "\ca\weapons\optika_empty";

hasGunner = false;

gunnerForceOptics = false;

startEngine = false;

class HitTurret {armor=1;material=55;name="vez";visual="vez";passThrough=1;};

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

class Turrets

{

class CommanderOptics: NewTurret

{

proxyType = CPCommander;

proxyIndex = 1;

gunnerName = $STR_POSITION_COMMANDER;

primaryGunner = 0;

primaryObserver = 1;

body = "OtocVez_2";

gun = "OtocHlaven_2";

animationSourceBody = "Turret_2";

animationSourceGun = "Gun_2";

animationSourceHatch = "hatchCommander";

//Not a very nice solution:

soundServo[] = {"", db-50, 1.0};

gunBeg = ""; //gunBeg = endpoint of the gun

gunEnd = ""; //gunEnd = chamber of the gun

minElev=-4; maxElev=+20; initElev=0;

minTurn=-360; maxTurn=+360; initTurn=0;

commanding = 2;

outGunnerMayFire = true;

inGunnerMayFire = true;

viewGunnerInExternal = 0;

gunnerOpticsModel = "\ca\Tracked\optika_tank_driver";

gunnerOutOpticsModel = \ca\Weapons\optika_empty;

gunnerOutOpticsColor[] = {0, 0, 0, 1};

gunnerOutForceOptics = false;

gunnerOutOpticsShowCursor = false;

memoryPointGunnerOutOptics = "commanderview";

memoryPointGunnerOptics= "gunnerview_2";

memoryPointsGetInGunner= "pos driver";

memoryPointsGetInGunnerDir= "pos driver dir";

memoryPointGun = "kulas_2";

selectionFireAnim = "zasleh_1";

class ViewOptics

{

initAngleX=0; minAngleX=-30; maxAngleX=+30;

initAngleY=0; minAngleY=-100; maxAngleY=+100;

initFov=0.42; minFov=0.22; maxFov=0.64;

};

class ViewGunner

{

initAngleX=5; minAngleX=-30; maxAngleX=+30;

initAngleY=0; minAngleY=0; maxAngleY=0;

initFov=0.42; minFov=0.22; maxFov=0.64;

};

};

};

};

};

soundEngine[] = {"\ca\wheeled\Data\Sound\mediumcar", db-60, 2.0};

soundEnviron[] = {"\ca\wheeled\Data\Sound\noise", db-65, 0.25};

soundCrash[] = {"\ca\wheeled\Data\Sound\crash2", db-10, 1};

soundGear[] = {"\ca\wheeled\Data\Sound\shifter_v3", db-75, 1};

supplyRadius = 1.2;

driverAction = "ManActTestDriver";

cargoAction[] = {"ManActTestDriver"};

hideUnitInfo = false;

class Exhausts; // External class reference

castDriverShadow = false;

castCargoShadow = false;

};

class LandroverMG : car {};

class PRACS_LAV100 : PRACS_CAR {

scope = public;

side = 2;

crew = "SoldierGCrew";

displayName = "LAV-100 MG (RACS)";

model = "\PRACS_Car\PRACS_LAV100";

picture = "\Ca\wheeled\data\ico\brdm2_CA.paa";

Icon = "\Ca\wheeled\data\map_ico\icomap_brdm_CA.paa";

mapSize = 8;

armor = 110;

type = VArmor;

cost = 10000;

canFloat = 0;

hasGunner = true;

hasCommander = false;

accuracy = 0.5; // accuracy needed to recognize type of this target

nameSound = "brdm";

transportSoldier = 3;

transportAmmo = 0;

transportMaxMagazines = 50;

transportMaxWeapons = 5;

weapons[] = {};

magazines[] = {};

maxSpeed = 100; // max speed on level road, km/h

driverAction = "HMMWV_Driver";

cargoAction[] = {"HMMWV_Cargo01"};

cargoIsCoDriver[] = {1, 0};

viewCargoShadow = true;

commanderCanSee = 30;

driverForceOptics = 1;

gunnerCanSee = 30;

soundEngine[] = {"\ca\wheeled\Data\Sound\Brdm_engine_3", 2.51189, 0.8};

SoundGetIn[] = {"\ca\wheeled\Data\Sound\Ural_OpenClose", db-45, 1};

SoundGetOut[] = {"\ca\wheeled\Data\Sound\Ural_OpenClose", db-50, 1};

SoundGear[] = {"\ca\wheeled\Data\Sound\shifter_v4", db-80, 1};

SoundCrash[] = {"\ca\wheeled\Data\Sound\Brdm_crash", 0.562341, 1};

SoundEnviron[] = {"\ca\wheeled\Data\Sound\noise", db-50, 0.25};

driverOpticsModel = "\ca\Tracked\optika_tank_driver";

// threat (VSoft, VArmor, VAir), how threatening vehicle is to unit types

threat[] = {0.5, 0.5, 0.1};

hideProxyInCombat = false;

wheelCircumference = 4.513;

turnCoef = 2;

terrainCoef = 2.0;

class HitLFWheel {

armor = 0.2;

material = 0;

name = "Levy predni tlumic";

visual = "Levy predni";

passThrough = true;

};

class HitRFWheel {

armor = 0.2;

material = 0;

name = "Pravy predni tlumic";

visual = "Pravy predni";

passThrough = true;

};

class HitLBWheel {

armor = 0.2;

material = 0;

name = "Levy zadni tlumic";

visual = "Levy zadni";

passThrough = true;

};

class HitRBWheel {

armor = 0.2;

material = 0;

name = "Pravy zadni tlumic";

visual = "Pravy zadni";

passThrough = true;

};

gunnerHasFlares = true;

class Turrets : Turrets {

class MainTurret : MainTurret {

body = "OtocVez";

gun = "OtocHlaven";

animationSourceBody = "mainTurret";

animationSourceGun = "mainGun";

hasGunner = true;

weapons[] = {"M2","PRACS_M1919_car"};

soundServo[] = {"\ca\wheeled\Data\Sound\servo4", db-52, 1.0};

magazines[] = {"100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_127x99_M2","100Rnd_127x99_M2","100Rnd_127x99_M2","100Rnd_127x99_M2","100Rnd_127x99_M2","100Rnd_127x99_M2","100Rnd_127x99_M2","100Rnd_127x99_M2"};

minElev = -8;

maxElev = 45;

minTurn = -360;

maxTurn = 360;

class ViewOptics {

initAngleX = 5;

minAngleX = -30;

maxAngleX = 30;

initAngleY = 0;

minAngleY = 0;

maxAngleY = 0;

initFov = 0.4;

minFov = 0.4;

maxFov = 0.4;

};

gunnerAction = "BRDM2_Gunner";

gunnerOpticsModel = "\ca\wheeled\optika_BRDM";

gunnerForceOptics = true;

};

};

armorGlass = 0.5;

armorWheels = 0.2;

damperSize = 0.2; // max. damper amplitude

armorBody = 0.4;

armorFuel = 1.4;

armorLights = 0.4;

typicalCargo[] = {"SoldierGcrew", "SoldierGcrew"};

driverIsCommander = false;

canLock = LockNo;

class Exhausts {

class Exhaust1 {

position = "vyfuk start";

direction = "vyfuk konec";

effect = "ExhaustsEffect";

};

class Exhaust2 : Exhaust1 {

position = "vyfuk start 2";

direction = "vyfuk konec 2";

};

};

unitInfoType = "UnitInfoSoldier";

class Library {

libTextDesc = "Cadillac Gauge Commando LAV 100/150 Series Light Armored Wheeled Vehicles";

};

class Damage {

tex[] = {};

mat[] = {

"ca\wheeled\data\detailmapy\stryker_icv_body2.rvmat", "ca\wheeled\data\detailmapy\stryker_icv_body2.rvmat", "ca\wheeled\data\detailmapy\stryker_icv_body2_destruct.rvmat",

"PRACS_Car\tex\cctop.rvmat","PRACS_Car\tex\cctop.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\ccfb.rvmat","PRACS_Car\tex\ccfb.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\cadcomr.rvmat","PRACS_Car\tex\cadcomr.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\pusty.rvmat","PRACS_Car\tex\pusty.rvmat","PRACS_Car\tex\pusty_de.rvmat"};

};

};

class PRACS_LAV150AT : PRACS_CAR {

scope = public;

side = 2;

crew = "SoldierGCrew";

displayName = "LAV-150 90mm Gun (RACS)";

model = "\PRACS_Car\PRACS_LAV150AT";

picture = "\Ca\wheeled\data\ico\brdm2_CA.paa";

Icon = "\Ca\wheeled\data\map_ico\icomap_brdm_CA.paa";

mapSize = 8;

armor = 110;

type = VArmor;

cost = 10000;

canFloat = 0;

hasGunner = true;

accuracy = 0.5; // accuracy needed to recognize type of this target

nameSound = "brdm";

transportSoldier = 3;

transportAmmo = 0;

transportMaxMagazines = 50;

transportMaxWeapons = 5;

weapons[] = {};

magazines[] = {};

maxSpeed = 100; // max speed on level road, km/h

driverAction = "HMMWV_Driver";

cargoAction[] = {"HMMWV_Cargo01"};

cargoIsCoDriver[] = {1, 0};

viewCargoShadow = true;

commanderCanSee = 30;

gunnerCanSee = 30;

driverForceOptics = 1;

soundEngine[] = {"\ca\wheeled\Data\Sound\Brdm_engine_3", 2.51189, 0.8};

SoundGetIn[] = {"\ca\wheeled\Data\Sound\Ural_OpenClose", db-45, 1};

SoundGetOut[] = {"\ca\wheeled\Data\Sound\Ural_OpenClose", db-50, 1};

SoundGear[] = {"\ca\wheeled\Data\Sound\shifter_v4", db-80, 1};

SoundCrash[] = {"\ca\wheeled\Data\Sound\Brdm_crash", 0.562341, 1};

SoundEnviron[] = {"\ca\wheeled\Data\Sound\noise", db-50, 0.25};

driverOpticsModel = "\ca\Tracked\optika_tank_driver";

// threat (VSoft, VArmor, VAir), how threatening vehicle is to unit types

threat[] = {0.5, 0.5, 0.1};

hideProxyInCombat = false;

wheelCircumference = 4.513;

turnCoef = 2;

terrainCoef = 2.0;

gunnerHasFlares = true;

class Turrets : Turrets {

class MainTurret : MainTurret {

body = "OtocVez";

gun = "OtocHlaven";

animationSourceBody = "mainTurret";

animationSourceGun = "mainGun";

hasGunner = true;

weapons[] = {"PRACS_Car_90mmLAVGUN","PRACS_M1919_car"};

soundServo[] = {"\ca\wheeled\Data\Sound\servo4", db-52, 1.0};

magazines[] ={"PRACS_car_90mmAT_25rd","PRACS_car_90mmHE_25rd","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car"};

minElev = -15;

maxElev = 60;

minTurn = -360;

maxTurn = 360;

gunnerAction = "BRDM2_Gunner";

gunnerOpticsModel = "\ca\wheeled\optika_BRDM";

gunnerForceOptics = true;

class Turrets : Turrets {

class CommanderOptics : CommanderOptics {

gunBeg = "usti hlavne_2";

gunEnd = "konec hlavne_2";

body = "OtocVez_2";

gun = "OtocHlaven_2";

minElev = -25;

maxElev = 35;

initElev = 0;

minTurn = -360;

maxTurn = 360;

initTurn = 0;

weapons[] = {"M240_Veh"};

magazines[] = {"1200Rnd_762x51_M240"};

outGunnerMayFire = true;

inGunnerMayFire = false;

gunnerAction = Abrams_CommanderOut;

gunnerInAction = Abrams_Commander;

soundServo[] = {"\ca\Weapons\Data\Sound\gun_elevate2", 0.000316228, 1.0};

gunnerOpticsModel = "\ca\weapons\optika_empty";

};

};

};

};

armorGlass = 0.5;

armorWheels = 0.2;

damperSize = 0.2; // max. damper amplitude

armorBody = 0.4;

armorFuel = 1.4;

armorLights = 0.4;

typicalCargo[] = {"SoldierGCrew", "SoldierGCrew"};

driverIsCommander = false;

canLock = LockNo;

class Exhausts {

class Exhaust1 {

position = "vyfuk start";

direction = "vyfuk konec";

effect = "ExhaustsEffect";

};

class Exhaust2 : Exhaust1 {

position = "vyfuk start 2";

direction = "vyfuk konec 2";

};

};

unitInfoType = "UnitInfoSoldier";

class Library {

libTextDesc = Cadillac Commando LAV 100/150;

};

class Damage {

tex[] = {};

mat[] = {

"ca\wheeled\data\detailmapy\stryker_icv_body2.rvmat", "ca\wheeled\data\detailmapy\stryker_icv_body2.rvmat", "ca\wheeled\data\detailmapy\stryker_icv_body2_destruct.rvmat",

"PRACS_Car\tex\cctop.rvmat","PRACS_Car\tex\cctop.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\ccfb.rvmat","PRACS_Car\tex\ccfb.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\cadcomr.rvmat","PRACS_Car\tex\cadcomr.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\pusty.rvmat","PRACS_Car\tex\pusty.rvmat","PRACS_Car\tex\pusty_de.rvmat"};

};

};

class PRACS_LAV_30mm : PRACS_CAR {

scope = public;

side = 2;

crew = "SoldierGcrew";

displayName = LAV-150 30mm Gun(RACS);

model = "\PRACS_Car\PRACS_LAV_30mm";

picture = "\Ca\wheeled\data\ico\brdm2_CA.paa";

Icon = "\Ca\wheeled\data\map_ico\icomap_brdm_CA.paa";

mapSize = 8;

armor = 110;

type = VArmor;

cost = 10000;

canFloat = 0;

hasGunner = true;

accuracy = 0.5; // accuracy needed to recognize type of this target

nameSound = "brdm";

transportSoldier = 3;

transportAmmo = 0;

transportMaxMagazines = 50;

transportMaxWeapons = 5;

weapons[] = {};

magazines[] = {};

maxSpeed = 100; // max speed on level road, km/h

driverAction = "HMMWV_Driver";

cargoAction[] = {"HMMWV_Cargo01"};

cargoIsCoDriver[] = {1, 0};

viewCargoShadow = true;

commanderCanSee = 30;

gunnerCanSee = 30;

driverForceOptics = 1;

soundEngine[] = {"\ca\wheeled\Data\Sound\Brdm_engine_3", 2.51189, 0.8};

SoundGetIn[] = {"\ca\wheeled\Data\Sound\Ural_OpenClose", db-45, 1};

SoundGetOut[] = {"\ca\wheeled\Data\Sound\Ural_OpenClose", db-50, 1};

SoundGear[] = {"\ca\wheeled\Data\Sound\shifter_v4", db-80, 1};

SoundCrash[] = {"\ca\wheeled\Data\Sound\Brdm_crash", 0.562341, 1};

SoundEnviron[] = {"\ca\wheeled\Data\Sound\noise", db-50, 0.25};

driverOpticsModel = "\ca\Tracked\optika_tank_driver";

// threat (VSoft, VArmor, VAir), how threatening vehicle is to unit types

threat[] = {0.5, 0.5, 0.1};

hideProxyInCombat = false;

wheelCircumference = 4.513;

turnCoef = 2;

terrainCoef = 2.0;

gunnerHasFlares = true;

class Turrets : Turrets {

class MainTurret : MainTurret {

body = "OtocVez";

gun = "OtocHlaven";

animationSourceBody = "mainTurret";

animationSourceGun = "mainGun";

hasGunner = true;

weapons[] = {"PRACS_Car_90mmLAVGUN","PRACS_M1919_car"};

soundServo[] = {"\ca\wheeled\Data\Sound\servo4", db-52, 1.0};

magazines[] ={"PRACS_car_90mmAT_25rd","PRACS_car_90mmHE_25rd","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car","100Rnd_762x51_1919_Car"};

minElev = -15;

maxElev = 60;

minTurn = -360;

maxTurn = 360;

gunnerAction = "BRDM2_Gunner";

gunnerOpticsModel = "\ca\wheeled\optika_BRDM";

gunnerForceOptics = true;

class Turrets : Turrets {

class CommanderOptics : CommanderOptics {

gunBeg = "usti hlavne_2";

gunEnd = "konec hlavne_2";

body = "OtocVez_2";

gun = "OtocHlaven_2";

minElev = -25;

maxElev = 35;

initElev = 0;

minTurn = -360;

maxTurn = 360;

initTurn = 0;

weapons[] = {"M240_Veh"};

magazines[] = {"1200Rnd_762x51_M240"};

outGunnerMayFire = true;

inGunnerMayFire = false;

gunnerAction = Abrams_CommanderOut;

gunnerInAction = Abrams_Commander;

soundServo[] = {"\ca\Weapons\Data\Sound\gun_elevate2", 0.000316228, 1.0};

gunnerOpticsModel = "\ca\weapons\optika_empty";

};

};

};

};

armorGlass = 0.5;

armorWheels = 0.2;

damperSize = 0.2; // max. damper amplitude

armorBody = 0.4;

armorFuel = 1.4;

armorLights = 0.4;

typicalCargo[] = {"SoldierGCrew", "SoldierGCrew"};

driverIsCommander = false;

canLock = LockNo;

class Exhausts {

class Exhaust1 {

position = "vyfuk start";

direction = "vyfuk konec";

effect = "ExhaustsEffect";

};

class Exhaust2 : Exhaust1 {

position = "vyfuk start 2";

direction = "vyfuk konec 2";

};

};

unitInfoType = "UnitInfoSoldier";

class Library {

libTextDesc = Cadillac Commando LAV 100/150;

};

class Damage {

tex[] = {};

mat[] = {

"ca\wheeled\data\detailmapy\stryker_icv_body2.rvmat", "ca\wheeled\data\detailmapy\stryker_icv_body2.rvmat", "ca\wheeled\data\detailmapy\stryker_icv_body2_destruct.rvmat",

"PRACS_Car\tex\cctop.rvmat","PRACS_Car\tex\cctop.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\ccfb.rvmat","PRACS_Car\tex\ccfb.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\cadcomr.rvmat","PRACS_Car\tex\cadcomr.rvmat","PRACS_Car\tex\pusty_de.rvmat",

"PRACS_Car\tex\pusty.rvmat","PRACS_Car\tex\pusty.rvmat","PRACS_Car\tex\pusty_de.rvmat"};

};

};

class PRACS_Hilux_MG : PRACS_CAR {

scope = public;

displayName = "Hilux M240 (RACS)";

model = "\PRACS_Car\PRACS_Hilux_MG";

picture = "\PRACS_Car\tex\hiluxPK_CA.paa";

icon = "\PRACS_Car\tex\icomap_hiluxPK_CA.paa";

mapSize = 7;

nameSound = "pickup";

side = TEast;

crew = "soldierGB";

maxSpeed = 150; // max speed on level road, km/h

turnCoef = 2.5;

terrainCoef = 2.0;

soundEngine[] = {"\ca\wheeled\Data\Sound\Hilux_engine1", db-20, 0.8};

soundGear[] = {"\ca\wheeled\Data\Sound\shifter_v3", db-65, 1};

SoundGetIn[] = {"\ca\wheeled\Data\Sound\Humvee_DoorOpenClose", db-45, 1};

SoundGetOut[] = {"\ca\wheeled\Data\Sound\Humvee_DoorOpenClose", db-50, 1};

class TransportMagazines {};

transportSoldier = 3;

unitInfoType = "UnitInfoSoldier";

hasGunner = true;

driverIsCommander = true;

driverAction = "Hilux_Driver";

cargoAction[] = {"Hilux_cargo01", "datsun_cargo02", "MH6_Cargo03"};

gunnerOpticsShowCursor = 1;

// threat (VSoft, VArmor, VAir), how threatening vehicle is to unit types

threat[] = {0.6, 0.4, 0.1};

class AnimationSources {

class belt_rotation {

source = "reload";

weapon = "PK_veh";

};

};

class Turrets : Turrets {

class MainTurret : MainTurret {

body = "OtocVez";

gun = "OtocHlaven";

animationSourceBody = "mainTurret";

animationSourceGun = "mainGun";

outGunnerMayFire = true;

forceHideGunner = true;

castGunnerShadow = true;

selectionFireAnim = "zasleh";

viewGunnerInExternal = true;

gunnerOpticsModel = "\ca\Weapons\optika_empty";

gunnerForceOptics = false;

hasGunner = true;

gunnerCompartments = "{0}";

weapons[] = {"PK_veh"};

soundServo[] = {};

magazines[] = {"100Rnd_762x54_PK", "100Rnd_762x54_PK", "100Rnd_762x54_PK", "100Rnd_762x54_PK", "100Rnd_762x54_PK", "100Rnd_762x54_PK"};

gunnerAction = "datsun_Gunner01";

gunnerInAction = "datsun_Gunner01";

ejectDeadGunner = true;

minElev = -18;

maxElev = 40;

minTurn = -45;

maxTurn = 45;

initTurn = 0;

};

};

class Library {

libTextDesc = $STR_LIB_HILUX;

};

dammageHalf[] = {"\ca\wheeled\data\coyota_skla.paa", "\ca\wheeled\data\coyota_sklabr1_CA.paa", "\ca\wheeled\data\coyota_skla.paa", "\ca\wheeled\data\coyota_sklabr1_CA.paa"};

dammageFull[] = {"\ca\wheeled\data\coyota_skla.paa", "\ca\wheeled\data\coyota_sklabr2_CA.paa", "\ca\wheeled\data\coyota_skla.paa", "\ca\wheeled\data\coyota_sklabr2_CA.paa"};

class Damage {

tex[] = {};

mat[] = {"PRACS_Car\tex\coyota_armed.rvmat", "PRACS_Car\tex\coyota_armed.rvmat", "PRACS_Car\tex\coyota_armed_destruct.rvmat", "ca\weapons\data\dshk.rvmat", "ca\weapons\data\dshk.rvmat", "ca\weapons\data\dshk_destruct.rvmat", "ca\weapons\data\tripod_dshk.rvmat", "PRACS_Car\tex\coyota_trup3.rvmat", "PRACS_Car\tex\coyota_trup3_destruct.rvmat", "PRACS_Car\tex\drziaky.rvmat", "PRACS_Car\tex\drziaky.rvmat", "PRACS_Car\tex\drziaky_destruct.rvmat", "ca\wheeled\data\detailmapy\coyota_kola.rvmat", "ca\wheeled\data\detailmapy\coyota_kola.rvmat",

"ca\wheeled\data\detailmapy\coyota_kola_destruct.rvmat", "ca\wheeled\data\detailmapy\coyota_interier.rvmat", "ca\wheeled\data\detailmapy\coyota_interier.rvmat", "ca\wheeled\data\detailmapy\coyota_interier_destruct.rvmat"};

};

};

class PRACS_Hilux : PRACS_CAR {

scope = public;

displayName = "Hilux (RACS)";

model = "\PRACS_Car\PRACS_Hilux";

picture = "\PRACS_Car\tex\hiluxPK_CA.paa";

icon = "\PRACS_Car\tex\icomap_hiluxPK_CA.paa";

mapSize = 7;

nameSound = "pickup";

side = TEast;

crew = "soldierGB";

maxSpeed = 150; // max speed on level road, km/h

turnCoef = 2.5;

terrainCoef = 2.0;

soundEngine[] = {"\ca\wheeled\Data\Sound\Hilux_engine1", db-20, 0.8};

soundGear[] = {"\ca\wheeled\Data\Sound\shifter_v3", db-65, 1};

SoundGetIn[] = {"\ca\wheeled\Data\Sound\Humvee_DoorOpenClose", db-45, 1};

SoundGetOut[] = {"\ca\wheeled\Data\Sound\Humvee_DoorOpenClose", db-50, 1};

class TransportMagazines {};

transportSoldier = 3;

unitInfoType = "UnitInfoSoldier";

driverIsCommander = true;

driverAction = "Hilux_Driver";

cargoAction[] = {"Hilux_cargo01", "datsun_cargo02", "MH6_Cargo03"};

gunnerOpticsShowCursor = 1;

// threat (VSoft, VArmor, VAir), how threatening vehicle is to unit types

threat[] = {0.6, 0.4, 0.1};

class Library {

libTextDesc = $STR_LIB_HILUX;

};

hasGunner = 0;

class Turrets {};

dammageHalf[]=

{

\ca\wheeled\data\coyota_skla.paa, \ca\wheeled\data\coyota_sklabr1_CA.paa,

\ca\wheeled\data\coyota_skla.paa, \ca\wheeled\data\coyota_sklabr1_CA.paa

};

dammageFull[]=

{

\ca\wheeled\data\coyota_skla.paa, \ca\wheeled\data\coyota_sklabr2_CA.paa,

\ca\wheeled\data\coyota_skla.paa, \ca\wheeled\data\coyota_sklabr2_CA.paa

};

class Damage

{

tex[]={};

mat[]={

"ca\wheeled\data\detailmapy\coyota_trup1.rvmat",

"ca\wheeled\data\detailmapy\coyota_trup1.rvmat",

"ca\wheeled\data\detailmapy\coyota_trup1_destruct.rvmat",

"ca\wheeled\data\detailmapy\coyota_kola.rvmat",

"ca\wheeled\data\detailmapy\coyota_kola.rvmat",

"ca\wheeled\data\detailmapy\coyota_kola_destruct.rvmat",

"ca\wheeled\data\detailmapy\coyota_interier.rvmat",

"ca\wheeled\data\detailmapy\coyota_interier.rvmat",

"ca\wheeled\data\detailmapy\coyota_interier_destruct.rvmat"

};

};

};

};

Share this post


Link to post
Share on other sites

I have a seemed issue with the commander turrets of a Leopard 2A4.

My issue it's than the turrets only move in horizontal and not in vertical.

I hope someone can help you and then post the result here.

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  

×