Jump to content
Sign in to follow this  
Oberon3d

Wheeled vehicle with turret...

Recommended Posts

How should I config a wheeled turreted vehicle?...

Is there any list of named parts? or so...I know nothing yet about naming pieces tounge.gif

1.jpg

Cheers smile.gif

Share this post


Link to post
Share on other sites
Guest BratZ

I have to figure mine out everytime ,just by looking at the demo models of uh-60mg.p3d (has turret out the side)

and models like the uaz_mg.p3d

And we don't have the config for those specific vehicles but in the cfgweapons.hpp and cfgvehicles.hpp shows use of them or look in a config.cpp of a model that you know has a turret

You prolly want to look in some tank models (expect confusion)

Share this post


Link to post
Share on other sites

Dont look in tank models smile.gif

You need 4 wheels, a turret, a gun.

Work from the jeep demo and brsseb's tutorials. In one he builds a car and in the other he places a gun on a boat. Build the car to his selections and then just add the turret on the top.

If you look at tanks you will see that they have drive wheels, return wheels, road wheels, guide wheels and track - all with differnet selection names to those ound in cars.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class All{};

class AllVehicles:All{};

class Land: AllVehicles{};

class LandVehicle: Land{};

class Car: LandVehicle{};

class Jeep: Car{};

class JeepMG: Jeep

{

displayName="$STR_DN_JEEP_MG";

model="Jeep_mg.p3d";

picture="ijeepmg.paa";

gunnerAction="ManActJeepGunner";

hasGunner=1;

castGunnerShadow=1;

castDriverShadow=1;

driverIsCommander=1;

scope=2;

weapons[]={"Browning"};

magazines[]={"Browning"};

gunnerOpticsModel="optika_empty";

transportSoldier=1;

class Turret

{

gunAxis="OsaHlavne";

turretAxis="OsaVeze";

soundServo[]={};

gunBeg="usti hlavne";

gunEnd="konec hlavne";

minElev=-5;

maxElev=40;

minTurn=-360;

maxTurn=360;

body="OtocVez";

gun="OtocHlaven";

};

class ViewGunner

{

initAngleX=5;

minAngleX=-30;

maxAngleX=30;

initAngleY=0;

minAngleY=-180;

maxAngleY=180;

initFov=0.700000;

minFov=0.420000;

maxFov=0.850000;

};

class MGunClouds: WeaponCloudsMGun

{

};

};

<span id='postcolor'>

The best way is to just do like:

class YourAddonName: JeepMG

then add the turret and view gunner classes to the Addons class.

And look at what scousejedi sayed about turrets selections, http://ofp.info/brsseb/

Share this post


Link to post
Share on other sites

I just used the M113 model from the demo to find the selection names for the turret.

Very nice looking Ferret too biggrin.gif

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  

×