I need help with a couple of things; was able to add the 4 missiles to the MULE, but its not working like it should. The missiles don't look on to anything like they do with the Abrams, and whenever I go to 3rd person view with the missiles selected the MULE disappears unless I switch to a different weapon or go back into the optic view. Here is the config.cpp and model.cfg
Config.cpp:
PHP Code:
class CfgPatches
{
class CAWheeled
{
units[] = {"pt101_mule","pt101_ugvcontroller"};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"CAWheeled_E"};
};
};
class CfgWeaponClasses
{
class UGV
{
displayName = "UGV - UGV Controller";
};
};
class CfgMagazines
{
class VehicleMagazine;
class UGV_laser_mag: VehicleMagazine
{
scope = 2;
displayName = "Laser Designator";
ammo = "Laserbeam";
count = 1;
initSpeed = 30;
};
};
class CfgWeapons
{
class ACE_MX2A;
class pt101_ugvcontroller: ACE_MX2A
{
displayName = "UGV Controller";
weaponClass = "UGV";
model = "\pt101_mule\pt101_ugvcontroller.p3d";
};
class Default;
class Laserdesignator: Default
{
scope = 2;
displayName = "Laser Designator";
primary = 10;
magazines[] = {"UGV_laser_mag"};
};
};
class CfgVehicleClasses
{
class UGV
{
displayName = "UGV - MULE";
};
};
class CfgVehicles
{
class LAV25;
class Mule_Step1 : LAV25
{
scope = 1;
class NewTurret;
class Turrets;
class MainTurret;
class CommanderOptics;
class viewpilot;
class viewgunner;
class AnimationSources;
class HitPoints;
};
class pt101_mule01: Mule_Step1
{
faction = "BIS_US";
displayName = "MULE T";
vehicleClass = "UGV";
model = "\pt101_mule\pt101_mule.p3d";
maxSpeed = 60;
animated = true;
scope = 2;
picture = "\Ca\wheeled\data\ico\stryker_ICV_CA.paa";
Icon = "\Ca\wheeled\data\map_ico\icomap_Stryker_CA.paa";
mapSize = 10;
nameSound = "stryker";
commanderCanSee = 31;
gunnerCanSee = 31;
driverOpticsModel = "\ca\Wheeled\optika_stryker_driver";
soundEngine[] = {cawheeledDataSoundStryker_ICV_engine,db-10,0.8};
soundGear[] = {cawheeledDataSoundshifter_v3,db-65,1};
SoundGetIn[] = {cawheeledDataSoundM151A1_door_v1,db-45,1};
SoundGetOut[] = {cawheeledDataSoundM151A1_door_v1,db-50,1};
enableGPS = true;
transportSoldier = 0;
side = 1;
crew = "US_Soldier_Crew_EP1";
fuelCapacity = 246;
armor = 150;
damageResistance = 0.01199;
crewVulnerable = false;
threat[] = {0.5, 0.5, 0.5};
viewCargoShadow = true;
viewCargoShadowDiff = 0.05;
viewDriverShadowDiff = 0.05;
viewGunnerShadowDiff = 0.05;
hideProxyInCombat = 1;
memoryPointSupply = "supply";
transportMaxWeapons = 5000;
transportMaxMagazines = 20000;
transportMaxBackpacks = 25;
supplyRadius = 1.4;
gunnerHasFlares = true;
//---------------------------
// Copy of LAV-25 Base View definitions
//---------------------------
class ViewOptics
{
initAngleX = 0;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = -100;
maxAngleY = 100;
initFov = 0.466;
minFov = 0.466;
maxFov = 0.466;
thermalMode[] = {2, 3};
visionMode[] = {"Normal", "NVG", "Ti"};
};
class ViewPilot
{
initAngleX = 10;
minAngleX = -65;
maxAngleX = 85;
initAngleY = 20;
minAngleY = -150;
maxAngleY = 150;
initFov = 0.7;
minFov = 0.25;
maxFov = 1.4;
};
//---------------------------
// Copy of LAV-25 Base Turret definitions
//---------------------------
class Turrets: Turrets
{
class MainTurret: MainTurret
{
weapons[] = {"ACE_M242_200", "M240_veh", "TOWLauncher", "Laserdesignator"};
magazines[] = {"2Rnd_TOW2", "2Rnd_TOW2", "2Rnd_TOW2", "2Rnd_TOW2", "2Rnd_TOW2", "ACE_1100Rnd_762x51_M240",
"ACE_1100Rnd_762x51_M240", "ACE_230Rnd_25mm_M242_HEI", "ACE_230Rnd_25mm_M242_HEI", "ACE_230Rnd_25mm_M242_HEI", "ACE_70Rnd_25mm_M242_APFSDS",
"ACE_70Rnd_25mm_M242_APFSDS", "ACE_70Rnd_25mm_M242_APFSDS", "UGV_laser_mag"};
soundServo[] = {"\ca\Weapons\Data\Sound\gun_elevate",0.0177828,1,15};
minElev = -4.5;
maxElev = 74;
minTurn = -360;
maxTurn = 360;
gunnerAction = "LAV25_Gunner_out";
gunnerInAction = "LAV25_Gunner";
forceHideGunner = 0;
gunnerOpticsModel = "\ca\weapons\2Dscope_LAV_7";
gunnerOutOpticsModel = "";
memoryPointGun = "machinegun";
gunBeg = "muzzle_1";
gunEnd = "chamber_1";
body = "MainTurret";
gun = "MainGun";
animationSourceBody = "MainTurret";
animationSourceGun = "MainGun";
gunnerForceOptics = 1;
outGunnerMayFire = 0;
startEngine = 1;
primaryGunner = 4;
laserScanner = true;
laserTarget = true;
canLock = true;
ace_sys_missileguidance_tracker = "TOWLauncher";
class HitPoints: HitPoints
{
class HitTurret
{
armor = 0.8;
material = -1;
name = "vez";
visual = "vez";
passThrough = 1;
};
};
selectionFireAnim = "zasleh_1";
class ViewGunner
{
initAngleX = 5;
minAngleX = -65;
maxAngleX = 85;
initAngleY = 0;
minAngleY = -150;
maxAngleY = 150;
initFov = 0.7;
minFov = 0.25;
maxFov = 1.1;
};
gunnerOpticsEffect[] = {"TankGunnerOptics2","OpticsBlur1","OpticsCHAbera1"};
class ViewOptics
{
initAngleX = 0;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = -100;
maxAngleY = 100;
initFov = 0.2;
minFov = 0.05;
maxFov = 0.2;
thermalMode[] = {2, 3};
visionMode[] = {"Normal", "NVG", "Ti"};
};
class Turrets
{
class CommanderOptics: NewTurret
{
proxyType = "CPCommander";
proxyIndex = 1;
gunnerName = "commander";
primaryGunner = 0;
primaryObserver = 1;
gunnerOpticsShowCursor = 0;
body = "obsTurret";
gun = "obsGun";
animationSourceBody = "obsTurret";
animationSourceGun = "obsGun";
animationSourceHatch = "hatchCommander";
soundServo[] = {"",0.00316228,1};
startEngine = 0;
gunBeg = "";
gunEnd = "";
minElev = -4;
maxElev = 20;
initElev = 0;
minTurn = -360;
maxTurn = 360;
initTurn = 0;
commanding = 2;
viewGunnerInExternal = 0;
gunnerOpticsModel = "\ca\weapons\2Dscope_com2";
gunnerOutOpticsModel = "";
gunnerOutOpticsColor[] = {0,0,0,1};
gunnerOutForceOptics = 0;
gunnerOutOpticsShowCursor = 0;
memoryPointGunnerOutOptics = "commander_weapon_view";
memoryPointGunnerOptics = "commanderview";
memoryPointsGetInGunner = "pos driver";
memoryPointsGetInGunnerDir = "pos driver dir";
class ViewGunner
{
initAngleX = 5;
minAngleX = -65;
maxAngleX = 85;
initAngleY = 0;
minAngleY = -150;
maxAngleY = 150;
initFov = 0.7;
minFov = 0.25;
maxFov = 1.1;
};
gunnerOpticsEffect[] =
{"TankGunnerOptics2","OpticsBlur1","OpticsCHAbera1"};
class ViewOptics
{
initAngleX = 0;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = -100;
maxAngleY = 100;
initFov = 0.3;
minFov = 0.025;
maxFov = 0.3;
thermalMode[] = {2, 3};
visionMode[] = {"Normal", "NVG", "Ti"};
};
gunnerInAction = "LAV25_Commander";
gunnerAction = "LAV25_Commander_Out";
outGunnerMayFire = 1;
weapons[] = {"SmokeLauncher"};
magazines[] = {"SmokeLauncherMag","SmokeLauncherMag"};
stabilizedInAxes = 0;
};
};
};
};
class EventHandlers
{
init = "_this execVM ""\pt101_mule\scr\initmule.sqf"";";
};
};
class pt101_mule02: pt101_mule01
{
displayName = "MULE DD";
hiddenSelections[] = {"Skin1"};
hiddenSelectionsTextures[] = {"\pt101_mule\data\paa\mule_digital_desert_co.paa"};
};
class pt101_mule03: pt101_mule01
{
displayName = "MULE MC";
hiddenSelections[] = {"Skin1"};
hiddenSelectionsTextures[] = {"\pt101_mule\data\paa\mule_multicam_co.paa"};
};
class pt101_mule04: pt101_mule01
{
displayName = "MULE WL";
hiddenSelections[] = {"Skin1"};
hiddenSelectionsTextures[] = {"\pt101_mule\data\paa\mule_woodland_co.paa"};
};
class pt101_mule05: pt101_mule01
{
displayName = "MULE D";
hiddenSelections[] = {"Skin1"};
hiddenSelectionsTextures[] = {"\pt101_mule\data\paa\mule_desert_co.paa"};
};
};
Model.cfg
PHP Code:
class CfgSkeletons
{
class Default;
class pt101_mule: Default
{
isDiscrete=1;
skeletonInherit="";
skeletonName="pt101_mule";
skeletonBones[]=
{
"MainTurret","",
"MainGun","MainTurret",
"MachineGun","MainGun",
"MachineGun","MainTurret",
"launcher","MainTurret",
"comturret","MainTurret",
"camera","MainTurret",
"CameraUp","camera",
"wheel1","",
"wheel2","",
"wheel3","",
"wheel4","",
"wheel5","",
"wheel6",""
};
};
};
class CfgModels
{
class Default
{
isDiscrete="true";
skeletonInherit="";
skeletonBones[]={};
};
class pt101_mule: Default
{
skeletonName="pt101_mule";
sectionsInherit="";
sections[]=
{
"MainTurret",
"MainGun",
"MachineGun",
"canister",
"CameraUp",
"camera",
"Skin1",
"wheel1",
"wheel2",
"wheel3",
"wheel4",
"wheel5",
"wheel6"
};
class Animations
{
class FrontWheelL
{
type="rotationX";
source="wheel";
selection="wheel1";
axis="wheel1_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=2;
angle0="0";
angle1="rad -360";
};
class FrontWheelR
{
type="rotationX";
source="wheel";
selection="wheel2";
axis="wheel2_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=2;
angle0="0";
angle1="rad -360";
};
class CenterWheelL
{
type="rotationX";
source="wheel";
selection="wheel3";
axis="wheel3_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=2;
angle0="0";
angle1="rad -360";
};
class CenterWheelR
{
type="rotationX";
source="wheel";
selection="wheel4";
axis="wheel4_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=2;
angle0="0";
angle1="rad -360";
};
class RearWheelL
{
type="rotationX";
source="wheel";
selection="wheel5";
axis="wheel5_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=2;
angle0="0";
angle1="rad -360";
};
class RearWheelR
{
type="rotationX";
source="wheel";
selection="wheel6";
axis="wheel6_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=2;
angle0="0";
angle1="rad -360";
};
class MainTurret
{
type="rotationY";
source="mainTurret";
selection="MainTurret";
axis="turret_axis";
memory="1";
sourceAddress="loop";
minValue="rad -360";
maxValue="rad +360";
angle0="rad -360";
angle1="rad +360";
};
class MainGun
{
type="rotationX";
source="MainGun";
selection="MainGun";
axis="gun_axis";
memory="1";
minValue="rad -20";
maxValue="rad +5";
angle0="rad -20";
angle1="rad +5";
};
class MachineGun
{
type="rotationZ";
source="MachineGun";
selection="MachineGun";
axis="gun_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=1;
angle0="0";
angle1="rad -360";
};
class Camera
{
type="rotationY";
source="obsTurret";
selection="camera";
axis="camera_axis";
memory="1";
minValue="rad -360";
maxValue="rad +360";
angle0="rad -360";
angle1="rad +360";
};
class CameraUp
{
type="rotationX";
source="obsGun";
selection="cameraup";
axis="cameraup_axis";
memory="1";
minValue="rad -360";
maxValue="rad +360";
angle0="rad -360";
angle1="rad +360";
};
class Launcher
{
type="rotationX";
source="MainGun";
selection="launcher";
axis="launcher_axis";
memory="1";
minValue="rad -15";
maxValue="rad 0";
angle0="rad -15";
angle1="rad 0";
};
};
};
};