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

Solved [CSS] Prevent map change after game end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nerus
Senior Member
Join Date: Aug 2010
Location: Poland
Old 07-01-2017 , 11:47   [CSS] Prevent map change after game end
Reply With Quote #1

Like in the title,

how to prevent change map before game end?

Can I hook even for it?

Last edited by Nerus; 07-09-2017 at 07:34.
Nerus is offline
sdz
Senior Member
Join Date: Feb 2012
Old 07-02-2017 , 00:10   Re: [CSS] Prevent map change after game end
Reply With Quote #2

Try setting mp_chattime to an arbitrary high value below 2,147,483,647

Last edited by sdz; 07-02-2017 at 00:11.
sdz is offline
Nerus
Senior Member
Join Date: Aug 2010
Location: Poland
Old 07-02-2017 , 07:41   Re: [CSS] Prevent map change after game end
Reply With Quote #3

This is the range of Convar
Quote:
"mp_chattime" = "15" ( def. "10" ) min. 1.000000 max. 120.000000
I've tried to restart the game by "mp_restartgame 1" convar after the match ends - without results, map change after chat time.
Nerus is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 07-02-2017 , 23:08   Re: [CSS] Prevent map change after game end
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?p=2521756
__________________
ambn is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-03-2017 , 12:56   Re: [CSS] Prevent map change after game end
Reply With Quote #5

Here script sample to remove cvar lower bound, just change cvar name and use ConVarBound_Upper
https://forums.alliedmods.net/showpo...54&postcount=2



another sample
https://forums.alliedmods.net/showpo...10&postcount=7
__________________
Do not Private Message @me

Last edited by Bacardi; 07-03-2017 at 13:00.
Bacardi is offline
Nerus
Senior Member
Join Date: Aug 2010
Location: Poland
Old 07-09-2017 , 07:32   Re: [CSS] Prevent map change after game end
Reply With Quote #6

I guess it will change map to the same map after the match ends (reload map)?

Quote:
Originally Posted by Bacardi View Post
Here script sample to remove cvar lower bound, just change cvar name and use ConVarBound_Upper
https://forums.alliedmods.net/showpo...54&postcount=2



another sample
https://forums.alliedmods.net/showpo...10&postcount=7
I know that I can change ConVar's properties. In this case: bounds of mp_chattime, but this will not prevent to map change because match or map was finished after it is impossible to restart the match. Anyway, I have dropped this problem and leave it at is.

Thx for help guys.

Last edited by Nerus; 07-09-2017 at 07:34.
Nerus is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 07-09-2017 , 12:01   Re: [CSS] Prevent map change after game end
Reply With Quote #7

mp_match_end_restart 1
__________________
B3none is offline
Nerus
Senior Member
Join Date: Aug 2010
Location: Poland
Old 07-09-2017 , 14:32   Re: [CSS] Prevent map change after game end
Reply With Quote #8

Quote:
Originally Posted by b3none View Post
mp_match_end_restart 1
Code:
Unknown command "mp_match_end_restart"
Nerus is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-10-2017 , 07:42   Re: [CSS] Prevent map change after game end
Reply With Quote #9

mp_ignore_round_win_conditions 1, round never ends

Or use server cmd or ask plugin to use this end of game
mp_restartgame 10

*edit
Don't use SM mapchooser plugin, it will change map also when game ends.
__________________
Do not Private Message @me

Last edited by Bacardi; 07-10-2017 at 07:44.
Bacardi is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 07-10-2017 , 10:31   Re: [CSS] Prevent map change after game end
Reply With Quote #10

Quote:
Originally Posted by Nerus View Post
Code:
Unknown command "mp_match_end_restart"
https://forums.alliedmods.net/showthread.php?t=193095

My bad mate, I read it here
__________________
B3none 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 13:06.


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