| closedRound start pause |
| Started by Hell Phoenix on 07-10-2006, 03:43 PM |
Threads: 17
Joined: Jan 2005
Anyone know if its possible to tell if you are in the round start freeze? I couldnt find any info on it for dod.
Threads: 57
Joined: Oct 2005
Actually there's a more simple way to do it.rnrn
public reset_hud(id)rn set_user_maxspeed(id, 600.0)rnrnThis 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 :)rnrnEDIT: 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.Threads: 103
Joined: May 2005
well if he is.. you might have brought up a good point...nndoes it stop you from moving until the roundstart msg goes off..? i cant recall of the top of my head...nnbut 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...
Threads: 17
Joined: Jan 2005
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.rnrnSo 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.rnrnDiamond-optic...how would I catch the roundstart message?
Threads: 103
Joined: May 2005
theres 2 for each team...nn
register_event("TextMsg","roundstart_allies1","bc","1=3","2=#game_roundstart_allie1")n register_event("TextMsg","roundstart_allies2","bc","1=3","2=#game_roundstart_allie2")nnregister_event("TextMsg","roundstart_brits1","bc","1=3","2=#game_roundstart_brit1")n register_event("TextMsg","roundstart_brits2","bc","1=3","2=#game_roundstart_brit2")nnregister_event("TextMsg","roundstart_axis1","bc","1=3","2=#game_roundstart_axis1")n register_event("TextMsg","roundstart_axis2","bc","1=3","2=#game_roundstart_axis2")
Threads: 17
Joined: Jan 2005
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?
Threads: 103
Joined: May 2005
well i think its one or the other, this is what prints the text in the chat.... so they are different from each other..nnbut now that i think of it.. i think they arent server wide.. or team wide or whatever..nnlike 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...
Threads: 57
Joined: Oct 2005
Actually, in dod_english.txt it says:rnrn
game_roundstart_allie1rngame_roundstart_allie2rngame_roundstart_brit1rngame_roundstart_brit2rngame_roundstart_axis1rngame_roundstart_axis2rnrnThe 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.Threads: 17
Joined: Jan 2005
Well I guess its a moot point because I cant find anything to hook when a team wins =/rnrnAnyone know of anything?
Threads: 103
Joined: May 2005
']Actually, in dod_english.txt it says:nnnthats what i said....nnnand for the roundend... try:nnnThe 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.game_roundstart_allie1ngame_roundstart_allie2ngame_roundstart_brit1ngame_roundstart_brit2ngame_roundstart_axis1ngame_roundstart_axis2
register_event("RoundState", "round_message", "a", "1=3", "1=4", "1=5")nif:n1=3 -> allies wonn1=4 -> axis wonn1=5 -> draw
Threads: 17
Joined: Jan 2005
diamond-optic...did I ever tell you that your my hero? Your everything I wish I could be.....rnrnThank you buddy...worked like a charm =D
Threads: 103
Joined: May 2005
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...
Threads: 17
Joined: Jan 2005
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!
Threads: 103
Joined: May 2005
hehee glad i could help

