Page 1 of 2
Need a custom vehicle setup that is VERY steady.
Posted: Sun Aug 22, 2010 5:48 pm
by fo0k
I need a tank style vehicle but one not requiring the usual tracks or animations etc.. just a setup that will move and be 100% level at all times. maybe not even with suspension I guess. It will only be travelling on a flat surface..
Ill be making a custom mesh so appearance is irrelevant ...the main thing is the physics of it. its gotta be 1000% level.. when you accelerate, brake turn etc.. zero tilting movement etc. this could even be a hovering vehicle using different engine types or whatever.. any suggestions welcome but would appreciate it if anyone can try to code such a thing..
oh yeah.. it has to be 1000000% level
Re: Need a custom vehicle setup that is VERY steady.
Posted: Tue Aug 24, 2010 6:05 am
by Coroner47
can i ask what exactly is the purpose of the vehicle? are you trying to make a camera vehicle for filming?
Re: Need a custom vehicle setup that is VERY steady.
Posted: Tue Aug 24, 2010 1:39 pm
by Dennis|8749236
Sherman tank and remove the track and add 4 wheels??
(like LAV25 in BF2?)
Re: Need a custom vehicle setup that is VERY steady.
Posted: Tue Aug 24, 2010 2:04 pm
by fo0k
The camera is for this 'top down' tanks map Im making.. all camera views are very high up (like 200 meters now, with a low FOV to give the GTA 1 kinda feel. the camera is fixed and pointing straight down (its the normal first person cam.. all others are disabled). Because of the height of the camera
any slight rocking of the tank when moving off.. braking.. results in a BIG movement up where the camera is. a 1 degree tilt at the tank results in the camera moving 10/20 meters up above
so it has to almost 'hover'...
It also needs to move like a tank still so adding 4 wheels will result in a car movement me thinks.
Also, although its a top down only view I guess it would be nice to be able to film/fraps the action at street level so it probably does need to look like a tank still with tracks animated etc.. they can all be asthetic though..
help me

Re: Need a custom vehicle setup that is VERY steady.
Posted: Tue Aug 24, 2010 6:43 pm
by Coroner47
found a couple things. ive never used them, but maybe you can use them on the camera your using.
Code: Select all
ObjectTemplate.SetAutomaticPitchStabilization 1
ObjectTemplate.SetAutomaticYawStabilization 1
Re: Need a custom vehicle setup that is VERY steady.
Posted: Wed Aug 25, 2010 3:19 am
by Crimson_Raptor
What about just flattening out the terrain? And only uses a slight incline to roads or other levels like Grand Theft Auto has?
Re: Need a custom vehicle setup that is VERY steady.
Posted: Wed Aug 25, 2010 12:16 pm
by fo0k
Terrain is flat.. That's not the issue, sir
Anyone suggest a vehicle like this in another mod that I can look at?
Posted: Wed Aug 25, 2010 10:13 pm
by freddy
come to think about the modded ptboats i use, iwé made them able to go over land and they are kinda rock steady when they do. there´s no stearing on them tho.
what i did was that i gave them like 10 invisible wheels covering the whole bottom of the boat, i think the more the better if you want it steady.
Re: Need a custom vehicle setup that is VERY steady.
Posted: Wed Jan 16, 2013 4:46 am
by Vilespring
know this is old, but I need help moving a camera. I have a SU-100 based of the T34. It is very good, but the hull hatch on the tank gets in the way when aiming to the left. I've tried to move the camera, but it just won't move! I set the camera 200 meters to the right, and it is in the same place! the code is here;
rem *** SU-100CockpitInternal ***
ObjectTemplate.create SimpleObject SU-100CockpitInternal
ObjectTemplate.geometry 1p_T34_Gunner_m1
ObjectTemplate.addTemplate SU-100Camera
ObjectTemplate.setPosition 0/0/-0.01 <------ this does nothing
and this;
rem *** SU-100GunBase ***
ObjectTemplate.create RotationalBundle SU-100GunBase
ObjectTemplate.setNetworkableInfo T34GunInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/T34GunBase.ssc
rem -------------------------------------
ObjectTemplate.addTemplate lodSU-100Cockpit
ObjectTemplate.setPosition 0/0/1 <------- this does nothing
ObjectTemplate.addTemplate SU-100GunBarrel
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/5/0
ObjectTemplate.setMaxSpeed 15/15/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY
I'd like help why this doesn't move the camera.
Re: Need a custom vehicle setup that is VERY steady.
Posted: Wed Jan 16, 2013 9:23 am
by Senshi
That is not even remotely related to the original thread. Instead of necromancing this thread, you should have just created a new one

.
I'm not really sure why it doesn't work. The only explanation that this "camera" is not the one that is actually being used ingame. But from the code snippets everything looks quite alright...