Need a custom vehicle setup that is VERY steady.

Ask questions, discuss ideas, get answers
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Need a custom vehicle setup that is VERY steady.

Post 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
Coroner47
Posts: 213
Joined: Tue Nov 24, 2009 5:11 am
Location: Canada

Re: Need a custom vehicle setup that is VERY steady.

Post by Coroner47 »

can i ask what exactly is the purpose of the vehicle? are you trying to make a camera vehicle for filming?
Image
Pray hard, die fast
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: Need a custom vehicle setup that is VERY steady.

Post by Dennis|8749236 »

Sherman tank and remove the track and add 4 wheels??
(like LAV25 in BF2?)
What is the meaning of Life?? (Don't think about it!)
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Need a custom vehicle setup that is VERY steady.

Post 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 :)
Coroner47
Posts: 213
Joined: Tue Nov 24, 2009 5:11 am
Location: Canada

Re: Need a custom vehicle setup that is VERY steady.

Post 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
Image
Pray hard, die fast
User avatar
Crimson_Raptor
Posts: 18
Joined: Fri Jun 25, 2010 3:17 am
Location: Tulsa, Oklahoma
Contact:

Re: Need a custom vehicle setup that is VERY steady.

Post 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?
"I want you to remember that no bastard ever won a war by dying for his country. He won it by making the other poor dumb bastard die for his country."
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Need a custom vehicle setup that is VERY steady.

Post 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?
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post 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.
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Need a custom vehicle setup that is VERY steady.

Post 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.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Need a custom vehicle setup that is VERY steady.

Post 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...
Post Reply