CS_TerminateRound not firing?
Hey guys, I'm attempting to modify Mapchooser Extended lightly.
When an RTV is successful, instead of ForceChangeLevel being called and the map changing abruptly, I wish for the map change to be a bit more "graceful", meaning timelimit is lowered to expire the map, everyone gets slayed, round is ended, scoreboard pops up and map changes. Currently this is what I have: Code:
It's a bit sloppy of a way of doing it, but should do the trick, right? Everything else works, except the round isn't ending. Any thoughts on why? I tested making it even sloppier, changing the part in question to: Code:
and that works, but obviously I don't want cheats on at any point in time. |
Re: CS_TerminateRound not firing?
If terminate round isn't actually ending the round then that makes me think that the gamedata is bad.
Also terminate round will need a higher value for the map end time or it will wait only 1 second and then cut to the map change. mp_match_restart_delay may be the value to set the CS_TerminateRound value to. Edit: you are right about setting the timelimit and max rounds to a low value, as it will trigger the end-of-map checks. |
Re: CS_TerminateRound not firing?
I dont think settings cheats on and off like that is an issue because nothing can can be processed inbetween the squential calls as SRCDS isnt threaded.
Slaying everyone is a bit harsh and would effect stats plugins like rankme. Calling endround wouldn't require you to slay the clients. |
Re: CS_TerminateRound not firing?
Quote:
Quote:
I'm not worried about stats since this is for movement servers (surf, bhop, etc), the slaying is just an added protection to ensure the round ends and the server changes to the next map. If I got the round to end properly then I could probably take out the slaying after testing, but that's what I'm stuck on. :( |
Re: CS_TerminateRound not firing?
Maybe another plugin is blocking the terminate round call?
|
Re: CS_TerminateRound not firing?
Perhaps try using the third argument in the function:
PHP Code:
|
Re: CS_TerminateRound not firing?
You can also try, creating a game_round_end entity and firing one of the inputs. Note, using the entity to end rounds will follow more steps than just calling the function (Like adding to the score iirc).
|
All times are GMT -4. The time now is 00:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.