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

Different SourceMod cvars for each map?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kokokolia
Junior Member
Join Date: Aug 2019
Old 12-30-2021 , 06:22   Different SourceMod cvars for each map?
Reply With Quote #1

Hello.

I'm trying to use different SourceMod console commands for different maps. I know that I can to make a config like /tf/cfg/ctf_2fort.cfg and it works fine. But only for default TF2 console vars. For example, If I try to use sm_crb_red_engineers 0 from the [TF2] Class Restrictions For Bots plugin, the command will not be executed.

Also I tried to use /tf/umc_mapcycle.txt which works with UMC, but TF2 still ignores the different SourceMod commands for different maps. But I'm sure that the script is workable because it works if I'll type commands via the console.

So I need a solution to execute different console commands from SourceMod for different maps (like sm_crb_red_engineers 0 on ctf_2fort map, sm_crb_blu_engineers 123 on koth_king map). Cheers.

Last edited by kokokolia; 12-30-2021 at 06:22.
kokokolia is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-30-2021 , 07:30   Re: Different SourceMod cvars for each map?
Reply With Quote #2

https://www.sourcemod.net/plugins.ph...tion=&search=1

yes, SRCDS own configure files are executed "too early" (ex. server.cfg and game own map config).
Then sourcemod plugins config file are executed afterwards (...cfg/sourcemod/)

For your problem, you need find sm plugin which handle map configure files but can execute files much later.

Here is one example of many plugins.
Execute Configs 1.0 (Updated 08/12/09)
__________________
Do not Private Message @me
Bacardi 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 03:51.


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