OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: DOA on 16 Oct 2003, 19:16:31

Title: Help me create an un-ending battle?
Post by: DOA on 16 Oct 2003, 19:16:31
In a multiplayer mission, what is the best way to re-create or respawn AI soldiers, AI vehicles, empty vehicles, and live players with their original waypoints to keep a battle going?

Picture a mission where the live players along with lots of AI are defending a position such as a key town, airport, or "Nogova Bridge". An enemy force, made up of live players and AI, attacks in close waves or is constantly re-enforced by respawning/re-creating players and AI with the same waypoints/weapons/vehilcles they had when they are killed. Both sides should respawn live players and respawn or re-create AI to keep the battle raging until the ending time limit or trigger.

I have tried the respawn scripts for live players and the AI Vehicle respawn scripts I found on OFPEC, by such good people as toadlife and doolittle. They work fine; but, they have limitations. The soldier respawn scripts seem to only work with playable units. The AI vehicle respawn script works on AI soldiers as well as the AI vehicles, but they disappear into thin air when they are killed and that doesn't look very realistic. I don't want dead soldiers stacking up like cord wood but the bodies should fall and remain for a short while for realism.

I am trying to make a long running battle for some combat ready trigger happy friends.

I hope I don't ask for too much. Thanks in advance.  :o

DOA
Title: Re:Help me create an un-ending battle?
Post by: keou on 16 Oct 2003, 20:27:59
i'm sure there's many methods, but one i enjoy using is resupplying  an enemy force using snyper's script.  a trigger is set up in a certain area and when the enemy reaches below a certain count, reinforcements are sent in.

it doesn't hold true to their waypoints and whatnot, but you can have a manned/armored patrol show up and "search and destroy" the area....or even an airdrop of men.  hell...you can also have it call in airstrikes and artillary against you as well.

it gives it a more realistic feeling rather than respawning the enemy.

if you want to go that route, check out his script in the editors depot.  make sure you read the thread because (unless it's been fixed), you need to add a ";" to the script in order to have the AI callups work correctly.

just a thought.
Title: Re:Help me create an un-ending battle?
Post by: General Barron on 16 Oct 2003, 23:20:00
There's an esload of  of different respawn scripts out there, so you should just do some looking around.

Try looking at this: http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=12265;start=0 (http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=12265;start=0)

Or look at one of these here: http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_7 (http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_7)
Title: Re:Help me create an un-ending battle?
Post by: DOA on 17 Oct 2003, 17:02:14
Thanks Guys,
With your guidance, I am making good progress.
I am a networking and systems guy and all this programing stuff is way over my head; but, I am getting better at it.


I am going to troll a few more days before I solve this one to see if anyone else has any good ideas/scripts.

Thanks again...DOA
Title: Re:Help me create an un-ending battle?
Post by: DrStrangelove on 18 Oct 2003, 19:13:03
My SpawnManager2 can create infinite battles: http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=13718

Brandnew !  :D
Title: Re:Help me create an un-ending battle?
Post by: DOA on 19 Oct 2003, 17:11:39
Thank you very much DrStrangelove.  Very well done. Your Spawnmanager2 is outstanding.
DOA  :o