Submarine underwater speed

Ask questions, discuss ideas, get answers
Post Reply
exe
Posts: 60
Joined: Wed Feb 08, 2012 10:04 pm

Submarine underwater speed

Post by exe »

Hi,

I would like to change the submarine's underwater speed without changing its surface speed. I thought that would be an easy task but I can't find the correct line of code. :?

Thanks!
Last edited by exe on Sat Jan 23, 2016 7:37 pm, edited 1 time in total.
Diamondback
Posts: 589
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Submarine underwater speed

Post by Diamondback »

Only way I see of doing this would be to have a giant obstacle object (such as barbwire for soldiers) that is placed at the bottom of the sea. This obstacle object would somehow be coded to slow down the vehicle and would not have any effect on the submarine when it is still at the surface.
See my Strasbourg map project here.
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Submarine underwater speed

Post by Swaffy »

Airplane engine? Since they don't work under water
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Seth
Posts: 16
Joined: Sun Jun 19, 2011 10:49 am

Re: Submarine underwater speed

Post by Seth »

And if you want to increase your underwater speed you can have a second engine, c_ETShip, positioned above the water line when surfaced.
Bitcoin address: 1NEoGgsFS9vxLT3eW4w6RFdvzPXLpQX66t
exe
Posts: 60
Joined: Wed Feb 08, 2012 10:04 pm

Re: Submarine underwater speed

Post by exe »

Thanks for your ideas, I'll try them.
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Submarine underwater speed

Post by Swaffy »

Seth wrote:And if you want to increase your underwater speed you can have a second engine, c_ETShip, positioned above the water line when surfaced.
This might change the movement physics since the force is coming from a different location on the vehicle. But worth playing with.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
exe
Posts: 60
Joined: Wed Feb 08, 2012 10:04 pm

Re: Submarine underwater speed

Post by exe »

Seth wrote:And if you want to increase your underwater speed you can have a second engine, c_ETShip, positioned above the water line when surfaced.
This works and it's also very easy to do, thanks a lot. Thread marked as [SOLVED].
Post Reply