Jump to content
Sign in to follow this  
hcpookie

Invincible Gunners

Recommended Posts

What inheritance is required to make the gunners in exposed turrets vulnerable?

My new vehicle is the same as the HMMWV_TOW vehicle, with a mounted TOW that exposes the gunner. Directly inheriting from the HMMWV_TOW class.

My gunner is exposed, but I cannot shoot him! I have tried to alter the configuration lines but all I manage to do is make him disappear with the viewgunnerinexternal setting. All other settings have no effect. Do I need to define a new turret, or change the inheritance?

class HMMWV_Base: Car {};

class HMMWV_TOW: HMMWV_Base {};

class BRDM2IMPTOW: HMMWV_TOW

{

displayName = "BRDM2-TOW";

model = "\BRDM2IMP\TOW\BRDM2IMPTOW.P3D";

picture = "\brdm2imp\data\ico\brdm2_tow_ico.paa";

side = 1;

faction = "CDF";

crew = "CDF_Soldier_Crew";

typicalCargo[] = {"CDF_Soldier"};

gunnerCanSee = 31;

accuracy = 0.32;

forceHideDriver = 1;

forceHideCommander = 1;

forceHideGunner = 0;

class Turrets: Turrets

{

class MainTurret: MainTurret

{

weapons[] = {"BRDM2IMP_TOWLauncher"};

magazines[] = {"6Rnd_TOW_HMMWV"};

soundServo[] = {"\Ca\sounds\Vehicles\Servos\turret-1",0.01,1.0,10};

gunnerAction = "BRDM2_TOWGunner";

gunnerInAction = "BRDM2_TOWGunner";

gunnerOpticsModel = "\ca\weapons\optika_TOW";

hasGunner = 1;

outGunnerMayFire = true;

forceHideGunner = 0;

viewGunnerInExternal = 1;

minElev = -10;

maxElev = 20;

gunnerForceOptics = 0;

castGunnerShadow = 1;

class ViewOptics

{

initAngleX = 0;

minAngleX = -30;

maxAngleX = 30;

initAngleY = 0;

minAngleY = -100;

maxAngleY = 100;

initFov = 0.2;

minFov = 0.058;

maxFov = 0.2;

};

class Turrets {};

};

class CommanderPeriscope: NewTurret

{

forceHideGunner = 1;

weapons[] = {"Laserdesignator_mounted","SmokeLauncher"};

magazines[] = {"Laserbatteries","SmokeLauncherMag","SmokeLauncherMag"};

soundServo[] = {"\ca\Weapons\Data\Sound\gun_elevate2",0.017782794,0.5,2};

gunBeg = "commander_gun_muzzle";

gunEnd = "commander_gun_chamber";

};

};

smokeLauncherGrenadeCount = 6;

smokeLauncherVelocity = 15;

smokeLauncherOnTurret = 0;

smokeLauncherAngle = 45;

threat[] = {0.9,0.7,0.2};

Share this post


Link to post
Share on other sites

That did the trick! The fire geo was missing the proxy... could have sworn I added that but it would seem not.

Thanks!

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  

×