PDA

View Full Version : Round Win


Spectral2
05-03-2007, 03:00 AM
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.

Hell Phoenix
05-03-2007, 01:12 PM
register_event("RoundState", "function", "flags", "conditions")

Conditions: 0 = end , 1= start , 3 = allies win , 4 = axis win , 5 = round draw

Spectral2
05-03-2007, 08:33 PM
would 0 be at the end of the round whether an allies won or axis won or round draw?

diamond-optic
05-03-2007, 08:45 PM
i would do something like:
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 reset

never used 1=0 before, dont really know exactly when that gets called...
1=1 is called after the reset

Spectral2
05-04-2007, 06:36 AM
ty sir, thats what i was thinking of just using 1=3 1=4 1=5 but wanted to see if 0 would work.

Hell Phoenix
05-04-2007, 11:04 AM
Yeah I have never tried 0, but my guess would be at the end of the map maybe.

=|[76AD]|= TatsuSaisei
05-04-2007, 11:12 AM
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)


register_event("RoundState", "whatever_function_name", "a", "1=0") == register_event("RoundState", "whatever_function_name", "a", "1=3", "1=4", "1=5")

diamond-optic
05-05-2007, 08:07 PM
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...