OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Terox on 05 Dec 2002, 19:40:34

Title: Multiple flag carriers
Post by: Terox on 05 Dec 2002, 19:40:34
I asked this question in the advanced section in more detail but as yet have received no replies.
Heres the link if you need more background
http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=3940 (http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=3940)

So i will back track and make things simpler

An East V West Game
I want 6 West players to always spawn and respawn carrying flags
 
East has to kill these players and take the flag from them

The possible flag states are
1) west player A1 alive & flag carrier
2) west player A1 dead & flag carrier
3) west player A1 dead & east is  flag carrier
4) west A1 has respawned and is now flag carrier, also east is carrying his flag prior to A1 respawn

No.4 i could probably leave out , allowing A1 to once again carry the flag after east has done whatever i decide they should do with the flag

Possibilities i can think of are
a) auto return the flag to score by taking it from A1's deadbody
b) take flag to trigger area to score, returning flag to A1 as they do it


Any ideas??????????????????????????
Could i use a resistance flag etc
Title: Re:Multiple flag carriers
Post by: Terox on 24 Dec 2002, 16:58:03
mmmm  anyone offer any help here at all, or am i gonna end up bald lol
Title: Re:Multiple flag carriers
Post by: freaky on 27 Dec 2002, 19:42:25
just a comment i think that is a great idea
maybe what u can do  is have flag poles in respawn to make it simpler if no one helps u out with this one hope they do.
Title: Re:Multiple flag carriers
Post by: rchxenson on 27 Dec 2002, 23:39:33
well I can't see a question here, do you need help with the script or what?  Where are you running into the problem.  It seems straight forward enough to me....

You do not need to have a resistance flag as west can carry west flags and vice versa.....

I think the only problem would lie in the fact that when tou have a flag you can not get the action to take another....ie if you are flag carrier you cannot take another flag and I am not sure btu there might be an issue with everyone carrying a flag...but don't quote me on that last part, I know the first part will be an issue.

Do you just need help writing a script for this?
Title: Re:Multiple flag carriers
Post by: Terox on 29 Dec 2002, 18:38:35
the idea is they respawn carrying flags every time, then east have to kill them to capture the flag and score


west have to carry their flag to a safe location to score


the problem is having 6 west guys all carrying a flag at the same time

They respawn in one of 6 random locations

I suppose a script that randomises the flag carrier to have 1 of say 30 flags would do

and then the flag scoring would be in a triggered area
If the west player reached his safe zone, then he could be teleported back and given another flag

My questions really are

1) Is it possible to have multiple flag carriers all at the same time
2) Would this be more inline with a ctf or a flagfight