Chopper Take Off Delay

Until this forum becomes busy just include BF2, 2142 or BFV in the title

Chopper Take Off Delay

Postby Player » Sat Jan 23, 2010 9:29 pm

I've noticed in BF2 there's an initial Delay before the Choppers will take off but only the first time they take off.
If you have taken off once and land, exit the chopper and then enter the same chopper and take off again, there is no delay.

I'm having trouble locating the code where this is done. I'm interested in extending or shortening the delays.

I'm also interested if anyone else has some tweaked engines for faster more manuevarable choppers that they are will to share examples of.
Player
 
Posts: 28
Joined: Sat Oct 24, 2009 5:06 pm

Re: Chopper Take Off Delay

Postby Dennis|8749236 » Wed Feb 10, 2010 12:57 am

try to adjust torque...
from start to top speed it need time to reach it, you can adjust torque to adjust the time it reach the speed can let it take off...
(my grammar is BAD T_T)
What is the meaning of Life?? (Don't think about it!)
User avatar
Dennis|8749236
 
Posts: 240
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth

Re: Chopper Take Off Delay

Postby freddy » Wed Feb 10, 2010 1:39 pm

there is some lines
Code: Select all
ObjectTemplate.delayToUse

http://dzn.org.pl/mdt/scripting/ObjectT ... .shtm.html

and
Code: Select all
ObjectTemplate.timeToNotAllowChange

http://dzn.org.pl/mdt/scripting/ObjectT ... .shtm.html

dunno if they can be useful, have seen them in the code but never tried them out myself.
User avatar
freddy
 
Posts: 1193
Joined: Sun Oct 18, 2009 4:58 pm

Re: Chopper Take Off Delay

Postby archer » Wed Feb 10, 2010 2:15 pm

The chance for those properties to work is rather slim, because they're made for (Hand)FireArms objects and not for Engine objects. Of course BF sometimes allows to use wrong properties on wrong types, you never know.
I would add an invisible c_ETPlane engine with limited fuel (ObjecTemplate.HeatIncrement) facing down and connected to c_PIThrottle, so it would prevent the copter from taking off until it runs out of fuel. This would work only once (only the first takeoff) but is still better than nothing.
You can also look at objects.rfa from DC to see how they done it there. I remember flying a copter that needed time before takeoff, but I'm not sure whether it was in DC or rather in PoE for BFV. It was a very long time ago ^^
dzn.battlefield.pl - my Bf1942 modding website
User avatar
archer
 
Posts: 54
Joined: Fri Feb 05, 2010 4:40 pm
Location: Übertów

Re: Chopper Take Off Delay

Postby Player » Thu Feb 11, 2010 8:30 pm

archer wrote:You can also look at objects.rfa from DC to see how they done it there.


You wouldn't happen to have a copy lying around that i could download do you?

Just the Objects.rfa

Thanks to everyone for the ideas.. so far none are quite what i was looking for.. I'll keep trying and if i come across the line of code i'll let you know.
Player
 
Posts: 28
Joined: Sat Oct 24, 2009 5:06 pm

Re: Chopper Take Off Delay

Postby archer » Thu Feb 11, 2010 9:06 pm

I did some research and there's another idea. Look at UH60, it has an engine called usthe_uh60_Rotor.
Code: Select all
ObjectTemplate.setMaxRotation 0/0/150
ObjectTemplate.setMaxSpeed 0/0/1
ObjectTemplate.setAcceleration 0/0/10
ObjectTemplate.setInputToRoll PIThrottle

If I'm right (I have no way to test it right now) SetMaxSpeed and SetAcceleration may regulate the time which the main rotor takes to start generating thrust.
Hope this helps.
dzn.battlefield.pl - my Bf1942 modding website
User avatar
archer
 
Posts: 54
Joined: Fri Feb 05, 2010 4:40 pm
Location: Übertów


Return to Battlefield 2, 2142 and Vietnam Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron