Home   Help Search Login Register  

Author Topic: realistic tank fear for enemy support drivers!  (Read 1219 times)

0 Members and 1 Guest are viewing this topic.

BronzeEagle

  • Guest
realistic tank fear for enemy support drivers!
« on: 25 Aug 2004, 03:39:15 »
Like, if an enemy tank comes up to a vehicle group and they don't have an armored vehicle that can withstand the blow, how about they hop out and wait until the enemy tank is gone before they get back in?  Id make it based on whether or not they could see the tank.  Noones done that before.      

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:realistic tank fear for enemy support drivers!
« Reply #1 on: 25 Aug 2004, 15:06:32 »
Hmm i think a better way would be to vary the setfleeing values depending on whats around......

SilentHunter_764

  • Guest
Re:realistic tank fear for enemy support drivers!
« Reply #2 on: 27 Aug 2004, 09:49:47 »
hmmmm good idea, but i belive pathy has a point there.

Maybe make it so that they have a sentry waypoint, and the next WP would be a 'get out' wp, then a 'get in' waypoint with a timer of _____ so that they dont just jump out then jump in again.

 ;D :D :P

Bluelikeu

  • Guest
Re:realistic tank fear for enemy support drivers!
« Reply #3 on: 12 Sep 2004, 22:17:36 »
This is infact very easy to simulate.

Code:

//

#Variables
_LightVeh = _This Select 0
_ArmoredVehType  = _This Select 1
_Know = _This Select 2
_PrepTime = _This Select 3

#FindNearestObject
_Tank = NearestObject [_LightVeh, _ArmoredVehType]
~1
If(_Tank == Null) Then {Goto "FindNearestObject"}
If(Commander _LightVeh KnowsAbout _Tank >= _Know) Then {Goto "GetOut"}
~4
Goto "FindNearestObject"

#GetOut
Commander _LightVeh Action ["Eject", _LightVeh]
Gunner _LightVeh Action ["Eject", _LightVeh]
Driver _LightVeh Action ["Eject", _LightVeh]

#DoMove
_Pos = ((GetPos _LightVeh Select 0)+ 10)
_Pos2 = ((GetPos _LightVeh Select 1)+ 10)

Commander Move [_Pos, _Pos2]
(Units Group Commander) AllowGetIn False
#Wait
~_PrepTime
(Units Group Commander) AllowGetIn True
Goto "Variables"


//

Init:
[_This, "Tank", 0.3, 20] Exec "RunAway.sqs"

[Name of light vehicle, type of armored vehicle to fear, amount of knoweldge needed to know about tank before exiting, amount of time to wait before getting back in to vehicle and repeating process] Exec "Nameofscript.sqs"


Hope this works
If it doesn't, then you can e-mail me at bluelikeu32@hotmail.com an i will try to help you.

djukel

  • Guest
Re:realistic tank fear for enemy support drivers!
« Reply #4 on: 13 Sep 2004, 16:34:11 »
I think " NearestObject " command  has a small scanning radius. If I know well it is only 50 meters? Or am I wrong?

Bluelikeu

  • Guest
Re:realistic tank fear for enemy support drivers!
« Reply #5 on: 13 Sep 2004, 17:09:20 »
Accually it has a very long range. Just checked it. So the script should work correctly.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:realistic tank fear for enemy support drivers!
« Reply #6 on: 25 Sep 2004, 21:18:14 »
Accually it has a very long range. Just checked it. So the script should work correctly.
My experience is that 'nearestobject' only has a range of 50 meters. Are you sure about that? ???
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Nulear_Man

  • Guest
Re:realistic tank fear for enemy support drivers!
« Reply #7 on: 26 Sep 2004, 00:20:20 »
Quote
Tank == Null
Will not work
You need to use "isnull tank"
Also it would be "Tank == objNull" anyway

 ;D