PDA

View Full Version : Round start pause


Hell Phoenix
07-10-2006, 04:43 PM
Anyone know if its possible to tell if you are in the round start freeze? I couldnt find any info on it for dod.

Wilson [29th ID]
07-10-2006, 11:41 PM
Actually there's a more simple way to do it.

public reset_hud(id)
set_user_maxspeed(id, 600.0)

This will make it so that every time the client spawns it sets the speed of the client to 600 - it includes the initial round with the pausing. It will still say "Platoon, Move Out and Stay Low!" but by that time the whole team is long out of their spawn :)

EDIT: This is assuming you'd like to get rid of the round start pause. I realised later that you might want to do something else. Hope this helps.

diamond-optic
07-10-2006, 11:48 PM
well if he is.. you might have brought up a good point...

does it stop you from moving until the roundstart msg goes off..? i cant recall of the top of my head...

but if so you can catch the roundstate msg to determine when the round ended/new round is starting and then use the roundstart msg to determine when the freeze time is over...

Hell Phoenix
07-11-2006, 12:00 AM
Im trying to detect when it is because Im using things in my chicken plugin that bypass it (one being maxspeed). Also, I found if I chicken someone during this time, they never spawn.

So I need to figure out how to find out when its in the freeze time so I dont allow using the commands at that time.

Diamond-optic...how would I catch the roundstart message?

diamond-optic
07-11-2006, 12:03 AM
theres 2 for each team...

register_event("TextMsg","roundstart_allies1","bc","1=3","2=#game_roundstart_allie1")
register_event("TextMsg","roundstart_allies2","bc","1=3","2=#game_roundstart_allie2")

register_event("TextMsg","roundstart_brits1","bc","1=3","2=#game_roundstart_brit1")
register_event("TextMsg","roundstart_brits2","bc","1=3","2=#game_roundstart_brit2")

register_event("TextMsg","roundstart_axis1","bc","1=3","2=#game_roundstart_axis1")
register_event("TextMsg","roundstart_axis2","bc","1=3","2=#game_roundstart_axis2")

Hell Phoenix
07-11-2006, 12:19 AM
Cool...I will give it a shot. Whats the difference between the 2 for each team? I mean do both fire at round start or does only 1?

diamond-optic
07-11-2006, 12:34 AM
well i think its one or the other, this is what prints the text in the chat.... so they are different from each other..

but now that i think of it.. i think they arent server wide.. or team wide or whatever..

like one guy on allies might get one of them while another guy on allies gets the other one.. so now im not sure if its useful or not...

Wilson [29th ID]
07-13-2006, 12:35 PM
Actually, in dod_english.txt it says:

game_roundstart_allie1
game_roundstart_allie2
game_roundstart_brit1
game_roundstart_brit2
game_roundstart_axis1
game_roundstart_axis2

The difference between the two is random - whether it says "Platoon, move out and stay low!" or "Squad, charge your weapons we're moving up!" at the beginning of the round.

Hell Phoenix
07-13-2006, 02:26 PM
Well I guess its a moot point because I cant find anything to hook when a team wins =/

Anyone know of anything?

diamond-optic
07-13-2006, 10:05 PM
']Actually, in dod_english.txt it says:

game_roundstart_allie1
game_roundstart_allie2
game_roundstart_brit1
game_roundstart_brit2
game_roundstart_axis1
game_roundstart_axis2
The difference between the two is random - whether it says "Platoon, move out and stay low!" or "Squad, charge your weapons we're moving up!" at the beginning of the round.
thats what i said....


and for the roundend... try:

register_event("RoundState", "round_message", "a", "1=3", "1=4", "1=5")
if:
1=3 -> allies won
1=4 -> axis won
1=5 -> draw

Hell Phoenix
07-14-2006, 01:28 AM
diamond-optic...did I ever tell you that your my hero? Your everything I wish I could be.....

Thank you buddy...worked like a charm =D

diamond-optic
07-14-2006, 01:31 AM
only thing that might cuase a problem is that initial freeze time when the map starts.. cuase theres no round end event to pick up on...

Hell Phoenix
07-14-2006, 01:42 AM
Yeah I figured that out. I just set the var to true at map/plugin load until the roundstart is sent which hooks it off again. Works swell! Thanks again diamond!

diamond-optic
07-14-2006, 01:44 AM
hehee glad i could help