Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › Scripting Help › Round Win
8 posts, 4 people · 997 views Thread Rating: ★★★★★
closedRound Win
Started by Spectral2 on 05-03-2007, 02:00 AM
S Spectral2
started this thread
Posts: 16
Threads: 1
Joined: Mar 2007
05-03-2007, 02:00 AM #1

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.

H Hell Phoenix
posted here
Posts: 201
Threads: 17
Joined: Jan 2005
05-03-2007, 12:12 PM #2

register_event("RoundState", "function", "flags", "conditions")n nConditions: 0 = end , 1= start , 3 = allies win , 4 = axis win , 5 = round draw

S Spectral2
started this thread
Posts: 16
Threads: 1
Joined: Mar 2007
05-03-2007, 07:33 PM #3

would 0 be at the end of the round whether an allies won or axis won or round draw?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
05-03-2007, 07:45 PM #4

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 reset

S Spectral2
started this thread
Posts: 16
Threads: 1
Joined: Mar 2007
05-04-2007, 05:36 AM #5

ty sir, thats what i was thinking of just using 1=3 1=4 1=5 but wanted to see if 0 would work.

H Hell Phoenix
posted here
Posts: 201
Threads: 17
Joined: Jan 2005
05-04-2007, 10:04 AM #6

Yeah I have never tried 0, but my guess would be at the end of the map maybe.

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
05-04-2007, 10:12 AM #7

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")
diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
05-05-2007, 07:07 PM #8

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...

Archive › Old Forum Threads › Help › Scripting Help › Round Win
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC