Home   Help Search Login Register  

Author Topic: Better tank reverse AI  (Read 1021 times)

0 Members and 1 Guest are viewing this topic.

Marsuitor

  • Guest
Better tank reverse AI
« on: 24 Aug 2002, 04:30:14 »
How about it?

I'm getting tired of tanks having to turn around 180 and then drive forward in order to back out of a situation...

Jakerod

  • Guest
Re:Better tank reverse AI
« Reply #1 on: 24 Aug 2002, 05:47:14 »
doesnt happen to me...do you mean when your not the commander or what?

Marsuitor

  • Guest
Re:Better tank reverse AI
« Reply #2 on: 24 Aug 2002, 07:10:31 »
Well, say you're commanding a platoon. You're taken under AT fire and decide to back out instead of taking up the fight.
What happens is i order my own driver to reverse, no problem. But the other tanks, who try to keep formation, turn around and expose their rear instead of reversing like i'm doing.

I don't know if it makes any difference, game wise (Is tank front/rear armor modelled to any degree in OFP?). But it doesn't look good and certainly isn't realistic.
Same goes if i'm gunner on a single tank. The commander/driver, if he decides to "chicken" out, turns the thing around and drives off and thus exposes the rear end...

So question, is it possible to write a script, or possibly change the default AI behaviour to allow for "smarter" reversing?

Guru

  • Guest
Re:Better tank reverse AI
« Reply #3 on: 02 Oct 2002, 03:50:54 »
perhaps a constantly updating getdir loop would do it?
-
or perhaps a not so constant 1 that uses a radio called "short term"  or action activated script for extreme situations?
-
might need to do a whole pile of setpos commands moving backwards set .02 apart(probably have to play with that part of it) so it gives effect of backing up
-
I think u want other tanks to keep ur direction of travel so they move in unisun with you... so using getdir from you an setpos for them based on ur position have them all move as you do but u would want a called disabler so u can turn it off as well.... unfortunately i havent a clue how to code that :'(