OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: Dubieman 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:
-
Quick answer...your god
game engine issue.
Vyper
-
You can place a trigger:
condition:(vehicle player == player) and (speed player > 50)
activation: player setdammage 1
-
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:
-
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:
-
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
-
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...
@((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.