Marss911 0 Posted July 6, 2004 Hey guys, Where at I44 got one small bug we just cant solve. There's a Hanomag that got tracks and steering wheels. We all know that can't be done togetter. So what we wanted to do is just simply make it a Tank. Only thing is a Hanomag looks like this Its open. So now we forced the gunner and driver to turn out. That worked out fine. But then this happend We all know that if your the driver of a tank and you hit "Turn out" that the gunner cant move his turret anymore. And thats what we got now. a moving tank that cant move his turret... Now my big quastion is, is there anyway to bypass this so the gunner still cán move is turret if the driver is "Turned out" Config from what I got so far <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgVehicles {  class All {};  class AllVehicles: All {};  class Land: AllVehicles {};  class LandVehicle: Land {};  class Tank: LandVehicle {};  class RussianTank: Tank {};  class T80: RussianTank {};  class hakl_251: T80  {   crew="SoldierECrew";   picture="\i44_hakl\pic";   side=0;   fuelCapacity=100;   vehicleClass="I44:Armored";   displayName="SdK.fz. 251 (new)";   maxSpeed = 45;   simulation=tank;   armor=500;   armorStructural=10;   class HitTurret {  armor=1.0; material=51; name=turet; passThrough=1;  };   class HitGun {  armor=0.8; material=52; name=gun; passThrough=1;  };   outGunnerMayFire = true;   unitInfoType="UnitInfoShip";     hasCommander=false;   gunnerOpticsColor[]={};   driverAction="ManActTruckhanoDriver";   gunnerAction="ManActTruckhanoGunner";   driverInAction="ManActTruckhanoDriver";   gunnerInAction="ManActTruckhanoGunner";   viewCargoInExternal = true;     forcehidedriver = false;   forcehidegunner = true;   hideProxyInCombat = false;   driverCastShadow = true;   driverOpticsModel = "optika_empty";   gunnerCastShadow = true;   gunnerOpticsModel = "optika_empty";   cargoAction[]={ManActTruckhanoCoDriver,ManActCargo};   transportSoldier=9;   ejectdeadcargo=1;     soundEnviron[]={"Vehicles\OldRolling_Treads1",0.100000,0.700000};   soundEngine[]={"Vehicles\m113b",0.100000,1};   soundCrash[]={"Vehicles\crash_small2",0.100000,1};   soundGear[]={"Vehicles\Gear_Trans1",0.010000,1};   driverCanSee="31";   cost=100000;   unloadInCombat = true;   nameSound="apc";   weapons[]={"TMG34"};   magazines[]={"TMG34"};   model= "\i44_hakl\i44_hakl.p3d";   hiddenSelections[]={};     class Animations   { class armour { type="rotation"; animPeriod=1; selection="armour"; axis="armour_axis"; angle0=0;         angle1=+0.872664625; };   };   class Turret { gunAxis = "OsaHlavne"; turretAxis = "OsaVeze"; soundServo[]={}; gunBeg = "usti hlavne"; gunEnd = "konec hlavne"; minElev=-20; maxElev=+20; minTurn=-35; maxTurn=+35; body = "OtocVez"; gun = "OtocHlaven"; }; class TransportWeapons { class MP40 { weapon="MP40"; count=3; }; }; class TransportMagazines { class MP40Mag { magazine="MP40Mag"; count="24"; }; }; hideWeaponsDriver = true; hideWeaponsGunner = true; hideWeaponsCommander = true;     }; }; Regards Marcel Share this post Link to post Share on other sites
Marss911 0 Posted July 7, 2004 Seems like there's no other way then? Share this post Link to post Share on other sites
philcommando 0 Posted July 8, 2004 from my own experiments, it seem the 'turnout' command is 'hardwired' into the engine and cannot be removed easily while i was creating the rotating searchlights bunker. However dont give up hope, there might be a way, just not discovered yet One suggestion to the car/tank model u r making:- 1. make it into a jeepMg class 2. for front wheels, it can follow the normal 02 selections. 3. for the balance rear wheels and tracks, create as many wheels as u want and name them all rear wheels - the wheel animation should work for all of them. 4. If u cant have a proper thread animation - do an illusion trick - create treads on the wheel and let the wheel part rotate - it would seem the thread is moving when the wheels turns but the horizontal threads are not. Another way I have not tried this - perhaps u can copy the tank's track and wheel selection names and memory points of tank for the car class and then inherit the points in cfgModels the way we inherit zasleh? All the best! Share this post Link to post Share on other sites
PicVert 0 Posted July 9, 2004 dont rememeber exacly the word but have you tried the : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> outGunnerMayFire=true; maybe it could help Share this post Link to post Share on other sites
Footmunch 0 Posted July 9, 2004 dont rememeber exacly the word but have you tried the : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">outGunnerMayFire=true; maybe it could help I think that just means that the gunner can still fire when 'turned-out'. But the turret is fixed, so he can only fire along the axis of the vehicle. Share this post Link to post Share on other sites
Marss911 0 Posted July 9, 2004 Yeah I tried that to. As for the car with animated wheels / tracks is our last result. But we just dont want to do it :P If there issent anything at this time ill be using the car cpp again with animated wheels. Share this post Link to post Share on other sites
Footmunch 0 Posted July 9, 2004 The other possibility is to take the polys from a soldier model and put them into the res LOD's. Then hide/show them depending on whether there's a driver present in the vehicle. Of course, that wouldn't work for different uniforms or faces, and the driver wouldn't animate. Share this post Link to post Share on other sites
Marss911 0 Posted July 9, 2004 Yes, thats a good one. Maybe you can detect with a script wich model is in there. And then can change it with the hiddenselections. But that also will mean that there allot of poly's inside the model... hehe We will keep it as an option ;) Share this post Link to post Share on other sites
BraTTy 0 Posted July 10, 2004 Another thought is this: Maybe you could have the soldier reversed,turnout is actually turned in,have the turned out anim a sitting anim and the turnin is the standing anim Share this post Link to post Share on other sites
.granQ. 0 Posted July 10, 2004 why not make it car class, and have animation stuff on the tracks.. Share this post Link to post Share on other sites
Marss911 0 Posted July 11, 2004 Maybe you could have the soldier reversed,turnout is actually turned in,have the turned out anim a sitting anim and the turnin is the standing anim This is a idea I havent thought of yet! Ill try it out. Tnx for this one BraT Share this post Link to post Share on other sites