Raised This Month: $ Target: $400
 0% 

DoD end of round reset?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Trp. Jed
Member
Join Date: Aug 2004
Old 09-25-2004 , 21:37   DoD end of round reset?
Reply With Quote #1

Yes I've searched but not been able to find it.

How does one detect the end of a round or a new round starting in DoD? I.e when all objectives are capped, one team wins and you go back to square one.

The plug-in I'm writing needs it but Im not usings DoDX, just raw AMXX 0.16.
Trp. Jed is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-25-2004 , 22:15  
Reply With Quote #2

a log event would be a good way..... dunno what dod logs look like though, if you post one I could prob figure it out.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 09-26-2004 , 06:02  
Reply With Quote #3

Message RoundState, read data 1 to get round result ( I think : 0 = end , 1= start , 3 = allies win , 4 = axis win , 5 = round draw )
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
Trp. Jed
Member
Join Date: Aug 2004
Old 09-26-2004 , 06:43  
Reply With Quote #4

Danke Sid

I have nothing against DoDX by the way - just that a lot of the people who want this plugin dont/wont install it.
Trp. Jed is offline
Trp. Jed
Member
Join Date: Aug 2004
Old 09-28-2004 , 12:30  
Reply With Quote #5

Sid, is RoundState and event or a message? I tried register_message but it never gets caught.
Trp. Jed is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-28-2004 , 14:22  
Reply With Quote #6

it's an even.

in plugin_init:
register_event("RoundState","roundend","a","1 =3","1=4")
(for example)

and then

public roundend(){
//do something here
}

that will execute roundend() when axis or allies win.

hope that helps a bit
FeuerSturm is offline
Trp. Jed
Member
Join Date: Aug 2004
Old 09-28-2004 , 15:58  
Reply With Quote #7

Ah thanks, I got a bit confused because in the meta game command it lists them as messages.

To be honest I dont even need to know who wins, just when the round has eneded and a new one starts so I can reset some variables.

But thanks for the heats up. To notepad!
Trp. Jed is offline
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 09-28-2004 , 16:44  
Reply With Quote #8

event = message

register_event(message,function,flags,params) - "function" will be executed (at message end) when this message will be send if params and flags match,

register_message(message,function) - specific message can be changed, function is executed after any message value. Very unstable , crashable function, don't ever use it if you really don't know what you want to do.
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
Trp. Jed
Member
Join Date: Aug 2004
Old 09-30-2004 , 01:13  
Reply With Quote #9

Fair enough guys, thanks for the heads up.

I don't actually need to know who won or lost, just that the round has ended either due to the time expiring or a full cap taking place, its just so I can reset some stuff.
Trp. Jed is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode