Home   Help Search Login Register  

Author Topic: from 120 km/h to 0 km/h  (Read 9385 times)

0 Members and 1 Guest are viewing this topic.

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:from 120 km/h to 0 km/h
« Reply #15 on: 14 Mar 2003, 19:26:10 »
In any event, I think you should leave out the adjustment to the z-velocity in those scripts.  Afterall, the arrester hook does not make the plane stop moving vertically, eh?

Yeah you could probably remove that, but in my testing it seemed totally realistic. I have a demo mission that I should post. If you come down to hard and the "hook" catches you, the z velocity adjustment doesn't help - you still blow up. :P

I set my test mission up so that the hook will only activate if your altitude is 2 meters or lower.

"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:from 120 km/h to 0 km/h
« Reply #16 on: 14 Mar 2003, 23:18:54 »
LOL ;D

Large transport aircraft (such as a C-130) can't land on carriers I'm afraid (though maybe they can in OFP :))

It's not a question of runway length (as you've got arrester cables and the catapult), it's a question of landing gear strength.

All aircraft used in carrier ops have to have heavily reinforced landing gear to withstand take-offs and landings. The larger (Heavier) the aircraft, the stronger the landing gear has to be...

The forces acting on a C-130's gear if it tried to land on a carrier would be incredible ;)

Plizkin

  • Guest
Re:from 120 km/h to 0 km/h
« Reply #17 on: 17 Mar 2003, 14:51:45 »
hey toadlife,

Simulate a landinghook:

[tomcat,0,0.2] exec "changevel.sqs"

Simulate a catapult:

[tomcat,200,0.2] exec "changevel.sqs"


SCRIPT:
=======================================================

_vehicle = _this select 0
_goal = _this select 1
_rate = _this select 2
_speed = speed _vehicle
?_speed > _goal:goto "slowdown"
goto "speedup"


#slowdown
_vehicle setvelocity [(velocity _vehicle select 0) / 1.05,(velocity _vehicle select 1) / 1.05,(velocity _vehicle select 2) / 1.05]
~_rate
?speed _vehicle <= _goal:exit
goto "slowdown"


#speedup
_vehicle setvelocity [(velocity _vehicle select 0) * 1.05,(velocity _vehicle select 1) * 1.05,(velocity _vehicle select 2) * 1.05]
~_rate
?speed _vehicle >= _goal:exit
goto "speedup"
=======================================================

Sorry, this script don`t work. There is a error. I think, my computer don`t know the word "setvelocity".
=======================================================

p.s.:  So much I know, they will first relase the Aircaft carrier from the World War 2, then the American Aircaft carrier. Fuck, I`m waiting motherfuckin 7 month for it. They ever said, yeees, tomorow we`ll relase it. But the next day they said the same shit.

Okay my friends, please make a script without errors or a script with words, which my computer know ! Or I need a new config.bin (Sorry for my shitty english)  ;D

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:from 120 km/h to 0 km/h
« Reply #18 on: 18 Mar 2003, 02:18:38 »
Sorry, this script don`t work. There is a error. I think, my computer don`t know the word "setvelocity".

It does too work. I tested that script thouroghly before I pasted it in. I can check in again.
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:from 120 km/h to 0 km/h
« Reply #19 on: 18 Mar 2003, 02:43:10 »
Here is an example mission. You start of in an A-10 directly south of the landing strip on the tip of everon. You must touch down right at the beggining of the landing strip or the hook will not catch you.

After succesfully landing and stopping, taxi forward a bit and the same script will catapult you to 200 knots.

Little hints will tell you when the landing hook and catapult are activated.

"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Plizkin

  • Guest
Re:from 120 km/h to 0 km/h
« Reply #20 on: 20 Mar 2003, 15:41:31 »
which version are you using ? I`m using v1.75 ! Could you send me your "config.bin" and "resource.bin", please ? Maybe it works then. ??? I try it, THERE IS A ERROR >:(. Belive me. If I fly in the trigger, I can just read your hint "Landing hook activated" or "Catapult activated".

Plizkin

  • Guest
Re:from 120 km/h to 0 km/h
« Reply #21 on: 20 Mar 2003, 15:59:01 »
if you tell me, how to upload pic`s, then I can show my screenshot with the error.  ;D

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:from 120 km/h to 0 km/h
« Reply #22 on: 20 Mar 2003, 17:37:00 »
Quote
which version are you using ? I`m using v1.75 !

lol - why don't you upgrade to a version, where setvelocity
command is supported?

Code: [Select]
vehicle setVelocity [x, z, y]
Operand types:
    vehicle: Object
    [x, z, y]: Array
Compatibility:
    Version 1.8 required.
Type of returned value:
    Nothing
Description:
    Set velocity (speed vector) of vehicle.


especially watch this line: Version 1.8 required.

~S~ CD
« Last Edit: 20 Mar 2003, 17:37:58 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:from 120 km/h to 0 km/h
« Reply #23 on: 21 Mar 2003, 06:49:56 »
LMAO!!!
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Plizkin

  • Guest
Re:from 120 km/h to 0 km/h
« Reply #24 on: 21 Mar 2003, 15:00:54 »
could you make a mission, please ? I`m too stupid to do that   :-\

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:from 120 km/h to 0 km/h
« Reply #25 on: 21 Mar 2003, 15:16:07 »
Quote
could you make a mission, please ? I`m too stupid to do that  

Does this mean you've already upgraded to a version
higher than 1.75?  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Plizkin

  • Guest
Re:from 120 km/h to 0 km/h
« Reply #26 on: 21 Mar 2003, 15:19:30 »
no, its 1.75 yet

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:from 120 km/h to 0 km/h
« Reply #27 on: 21 Mar 2003, 15:51:48 »
Then read again reply #22

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline granQ

  • Contributing Member
  • **
    • Anrop.se
Re:from 120 km/h to 0 km/h
« Reply #28 on: 22 Mar 2003, 13:42:50 »
thanks toadlife, i hope you don't mind if i use this script in a addon?

Just remove the "z" lowering and it will be almost perfect for my "crashstop". Just gonna see if i can do a nice splash effect with the drop commando.
Cura Posterior

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:from 120 km/h to 0 km/h
« Reply #29 on: 22 Mar 2003, 22:16:29 »
thanks toadlife, i hope you don't mind if i use this script in a addon?


Please do. You may have to tweak it a bit, as I didn't do a whole heck of alot of testing on it, but it's a good 'proof of concept' script.  :thumbsup:
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.