Ask questions, discuss ideas, get answers
exe
Posts: 60 Joined: Wed Feb 08, 2012 10:04 pm
Post
by exe » Thu Dec 17, 2015 10:36 pm
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: 617 Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:
Post
by Diamondback » Thu Dec 17, 2015 10:58 pm
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.
Swaffy
Posts: 1715 Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas
Post
by Swaffy » Fri Dec 18, 2015 10:18 am
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
Post
by Seth » Fri Dec 18, 2015 12:07 pm
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
Post
by exe » Sat Dec 19, 2015 4:00 pm
Thanks for your ideas, I'll try them.
Swaffy
Posts: 1715 Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas
Post
by Swaffy » Mon Dec 21, 2015 7:57 am
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
Post
by exe » Sat Jan 23, 2016 7:38 pm
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].