Home   Help Search Login Register  

Author Topic: Am I God?  (Read 1631 times)

0 Members and 1 Guest are viewing this topic.

Dubieman

  • Guest
Am I God?
« on: 30 Jan 2004, 01:10:46 »
So I was testing 1.95 beta's AI dogfighting capibility which is way frigging better than before cause the planes actually line up behind you and blow you out of the sky...... ;D ;D :o

So as I was battleing the 15  A10s for the sky of coursew I crashed a few timesyet leading them into mountains and such. BUT a few times when the plane was crashing or something, you can eject 5 meters above the ground and land on your feet unhurt while speeding at 500. ???

So that is totally screwed up! :hmm:
So anyone know how to mess around with planes to stop this? Cause humans don't land unhurt on the ground after going about the speed of sound. :noo:


Vyper

  • Guest
Re:Am I God?
« Reply #1 on: 30 Jan 2004, 14:43:28 »
Quick answer...your god

game engine issue.

Vyper

deaddog

  • Guest
Re:Am I God?
« Reply #2 on: 30 Jan 2004, 15:56:03 »
You can place a trigger:

condition:(vehicle player == player) and (speed player > 50)
activation:  player setdammage 1


Dubieman

  • Guest
Re:Am I God?
« Reply #3 on: 30 Jan 2004, 21:32:20 »
I think that would work!  :)
Just are you sure it wouldn't like screw with the player like once the jet is above 50 it kills the player? :o

But maybe just maybe, I like being god. :toocool:

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Am I God?
« Reply #4 on: 30 Jan 2004, 22:07:57 »
Make sure you have a condition to check the height of the player above ground as well, otherwise he'll die when he jumps out of the plane 300 meters above.

:beat: *Gets Shot* :beat:

Offline XCess

  • Former Staff
  • ****
Re:Am I God?
« Reply #5 on: 13 Feb 2004, 23:36:07 »
The speed that kills should be lower however since falling out a car will hurt you a hell of a lot, if it's >= 29.9999 the you should be have setDammage for the pilot at 0.99999and then on a linear decline in dammage as the speed decreases

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Am I God?
« Reply #6 on: 14 Feb 2004, 00:58:55 »
My realistic HALO script compensates for this bug. I worked out the exact velocity the player had to be falling at in order to die and these are the lines that detects it and kill the soldier if neccesary...
Code: [Select]
@((getpos _unit select 2) <= 10) || !(alive _unit)
?velocity vehicle _unit select 2 <= -15:_killem=true
...
....
....
?_killem && alive _unit:_unit setdammage 1;deletevehicle _chute;_unit switchmove "combattodying"

note -the deletevehicle _chute part gets rid of the parachute in the script I'm referring to and may not be neccesary in your script.

If a player is falling at 15 meters per second or faster, they will die. 14.9999 meters per second or below and they will live.
« Last Edit: 14 Feb 2004, 01:04:44 by toadlife »
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.