Raised This Month: $51 Target: $400
 12% 

Solved [TF2] End Round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
caxanga334
Member
Join Date: Nov 2013
Location: Brazil
Old 05-07-2019 , 12:17   [TF2] End Round
Reply With Quote #1

How can I force the current round to end.
I'm ending the round by sending roundwin input to game_round_win but this is freezing the server on KOTH maps.
This also happens if you send roundwin via ent_fire on a listen server (without sourcemod).

Is the an alternate way to force the round to end?
I also don't want to use mp_restartround

Server crash: https://crash.limetech.org/lkumjcbk7sfl

Last edited by caxanga334; 05-11-2019 at 08:07. Reason: added link to server crash dump
caxanga334 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-07-2019 , 19:58   Re: [TF2] End Round
Reply With Quote #2

Maybe the code from either DarthNinja, Leonardo, or El Diablo War3Evo will help from this thread: https://forums.alliedmods.net/showthread.php?p=1756067
PC Gamer is offline
caxanga334
Member
Join Date: Nov 2013
Location: Brazil
Old 05-07-2019 , 20:21   Re: [TF2] End Round
Reply With Quote #3

Quote:
Originally Posted by PC Gamer View Post
Maybe the code from either DarthNinja, Leonardo, or El Diablo War3Evo will help from this thread: https://forums.alliedmods.net/showthread.php?p=1756067
DarthNinja's code won't help because it uses game_round_win.

Edit:
Leonardo's code will probably work. I'm only able to confirm on next Saturday.
For now I've tested using mp_forcewin on a vanilla Listen Server, everything worked fine.

Edit 2: Tested Leonardo's code, it worked. This is the code I'm using:
PHP Code:
new iFlags GetCommandFlags("mp_forcewin");
SetCommandFlags"mp_forcewin"iFlags & ~FCVAR_CHEAT );
ServerCommand"mp_forcewin %i"iTeam ); 

Last edited by caxanga334; 05-11-2019 at 08:06. Reason: tested mp_forcewin on VLS
caxanga334 is offline
Reply



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 06:21.


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