I am currently writting a script to include tanks in SP games.
Based on the global/vehicles_thinkers.scr and similar to the way a truck with AI on it is added into the game.
I'm trying to build something that will control tank behaviour in a number of possible SP situation.
This is part of my reply in Jimmyjbo's post where I got the original idea from. Thanks Jimmyjbo
http://dynamic4.gamespy.com/~map/phpBB2 ... .php?t=421
My script is called tank_thinkers.scr and will live in the global directory of a map and accesed with a single thread from the map as the original is.
So far I've created four of what I call 'tank modes' -
1) Hunter - where the tank will shoot at the player or any friendlies in the game. When it acquires a target it stops and remain standing until the target is no longer alive or visible for a certain amount of time, it will then keep going on it's path.
2) Blitzcreig - same as above but the tank doesn't stop until it reaches the end on the path.
3) Passive - just drives the path with no attacking
4) Tank Battle - still working on this one but the name is pretty self explenatory. It's not for the player to drive the tank but rather have tanks fight each other around the player, to maybe include in an assualt map of some type.
It has the drive command built in so it starts moving with no extra commands necessary.
There are AI jumping out when the tanks explode.
Each tank can be looped so it travels the path over and over.
The tanks can be respawned after destraction making it posible to have waves of tanks that keep comming.
You can have as many tanks in the map as you like but at the moment each tank has to have it's own path to travel.
There are different skill levels you can apply which will change the amount of time a tank takes to reload or is stunned for.
I welcome any opinions or sugestions you may have on the subject.
I also need a couple of people to do testing, so if your into SP games and would like to help out, please email me.
Thanks all,
Mirek