MUG Posted September 18, 2012 Posted September 18, 2012 Working on Search and Destroy. Ideally, I need the map to restart (like when /map_restart is used) at the end of a round. Can this be done via a script? Or am I again missing an obvious map entity? I know I can use an entity to reload the map, but I'd rather not force a loading screen every round.
Turquoise Dragon Posted September 18, 2012 Posted September 18, 2012 If you made it into a siege map, I know you can do target_siege_end. Simply trigger it using the map instead of the .siege file and it shouldn't mess with the timer. However, it'd loose the ability of people being able to use their own skin for it. And that might suck.
MUG Posted September 19, 2012 Author Posted September 19, 2012 Just going to go ahead and bump this with @@MoonDog@@Szico VII@@GingerbreadNinjaas you people know one or two things about scripts right?
MUG Posted September 19, 2012 Author Posted September 19, 2012 I only know target_level_changeAye, I was using that, but I'm finding that it crashes some servers for some mad reason. Seemed okay on a local/hamachi ja++ server, but crashed an online clanmod one.
therfiles Posted September 19, 2012 Posted September 19, 2012 Why not just have all the players be tele'd back to starting position and re-open all the doors, remove the weapon pushers, and such when the obj is complete?
MUG Posted September 20, 2012 Author Posted September 20, 2012 Why not just have all the players be tele'd back to starting position and re-open all the doors, remove the weapon pushers, and such when the obj is complete?That is an option(one i may well have to take). However, it is FAR more complex than just resetting some doors and some teleports. I also have to reset all of this:and then all the rest that is off shot....
therfiles Posted September 20, 2012 Posted September 20, 2012 Hmmmm....would a 1 round match limit work? I mean when the time limit/score limit (maybe you can make some score entities give 1000 points to the winning team) is hit and ending the match and restarting. Maybe even a warm-up so people can choose player models and such. Understand what I'm saying?
MUG Posted September 20, 2012 Author Posted September 20, 2012 I mean when the time limit/score limit (maybe you can make some score entities give 1000 points to the winning team) Had a look at this already, regrettably, not possible.
MUG Posted September 20, 2012 Author Posted September 20, 2012 I'm not sure what clanmod is. Or what precisely you want reset. If it is objective based you can use scripts on the triggers to increment a global variable while having a loop running every 1 seconds in the background checking for the variable to reach a certain amount. Kind of like my ipod script that changes music. Once the global variable hits the amount specified the if() will catch it and execute whatever block of commands you want, and reset the global variable back to 0. As for completely restarting the map, no. I don't think so, sorry. Have you tried setting up some vstrs to exec with rcon?Clanmod doesn't really play any role in making the map work, it would run fine in base, I'm just using clanmod to adjust gun damages etc. Its basically like japlus, but done differently. I'm already able to detect when the round is over and needs to reset, using the entities I have set up in the map, I'm just seeking a way to restart the map from there. I was hoping I would be able to target a script_runner, or something of that nature, which would then restart the map. Is there anyway to just send a command directly to the server via a script or similar, as if it were entered into rcon?
therfiles Posted September 20, 2012 Posted September 20, 2012 Well I know there is nothing ICARUS scripting about it, unfortunately...
MUG Posted September 20, 2012 Author Posted September 20, 2012 Oh well, was worth a shot, thanks for the help gents. therfiles likes this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now