| closedRound Win |
| Started by Spectral2 on 05-03-2007, 02:00 AM |
Threads: 1
Joined: Mar 2007
What would the meta event be for dod when a team wins by capping all the flags but the players havent been reset yet? I would like to pull info after a team has won but before everything is reset.
Threads: 17
Joined: Jan 2005
register_event("RoundState", "function", "flags", "conditions")n nConditions: 0 = end , 1= start , 3 = allies win , 4 = axis win , 5 = round draw
Threads: 1
Joined: Mar 2007
would 0 be at the end of the round whether an allies won or axis won or round draw?
Threads: 103
Joined: May 2005
i would do something like:n
register_event("RoundState", "whatever_function_name", "a", "1=3", "1=4", "1=5")..that will call the function after a team has won (or a draw if its using a timer, such as para style maps) but before everything gets resetnnnever used 1=0 before, dont really know exactly when that gets called...n1=1 is called after the resetThreads: 1
Joined: Mar 2007
ty sir, thats what i was thinking of just using 1=3 1=4 1=5 but wanted to see if 0 would work.
Threads: 17
Joined: Jan 2005
Yeah I have never tried 0, but my guess would be at the end of the map maybe.
Threads: 54
Joined: May 2005
If I had to guess... I would assume it to be a simple way to detect all 3 types of "ends", with 0 being the "generic" catch for the end of the round, as opposed to actually picking one or another team as a winner (or draw)n n
nregister_event("RoundState", "whatever_function_name", "a", "1=0") == register_event("RoundState", "whatever_function_name", "a", "1=3", "1=4", "1=5")Threads: 103
Joined: May 2005
registering it with 1=0 i dont think would do anything, as it would only get called if the 1st argument was 0.. its not going to magically know that if the plugin registers it with 1=0 to fire with 1=3,1=4,1=5... it would just see the message, read the argument, see that its not =0 and do nothing...

