Time limit enforcer
1 Attachment(s)
What it does
Some maps such as cp_toy_fort or ctf_snofort_final continually extend the map beyond the alloted time limit. This plugin forces the map to change to the next map once the time limit is reached. Requirements nextmap.smx Installation
Has been tested with TF2 but should work with other mods. Changelog v1.1.100 SourceMod release v1.1.200 Fixed a stupid bug where plugin failed to recognize whether it was on or off v1.1.201 Fixed minor bug v.1.1.202 Changed method of ending the map V.1.1.203 Small bug fixes v1.1.203b3 Updated version by Bacardi and Stoone see post: https://forums.alliedmods.net/showpo...5&postcount=57 |
Re: Time limit enforcer
|
Re: Time limit enforcer
Team06's version doesn't work in TF2.
This one uses a different method of ending the map and does not require SDK calls. It also takes into account if the map gets extended. |
Re: Time limit enforcer
i remember asking for this a long while ago. glad it got done. :)
|
Re: Time limit enforcer
Could you please post a link to the compiled version? I'd really like to add this to my TF2 server.
I'm getting "Plugin failed to compile! Please try contacting the author." when clicking Get Plugin. I also have no luck with compiling on my computer: Code:
//SourceMod Batch Compiler Code:
//SourceMod Batch Compiler Code:
SourcePawn Compiler 1.0.4 Thanks Strontiumdog, I really love your work! |
Re: Time limit enforcer
1 Attachment(s)
Ah crap.
I wrote it using SM1.1 commands....GetNextMap and ForceChangeLevel are SM1.1 The forum compiler is still 1.04, I think. Either Download SM1.1 Or if you want, you can try the compiled version below. |
Re: Time limit enforcer
Thanks Strontiumdog, there's so much to remember with all of this, it's a wonder more of our heads haven't exploded.
|
Re: Time limit enforcer
thanks mate! i was looking for this exactly...works great in TF2 :)
cheers |
Re: Time limit enforcer
Strontiumdog, I've tried this plugin a couple of times on my TF2 servers. Whenever it is installed, all maps just end when the timelimit (mp_timelimit "30") is reached.
The default behavior on our servers without the plugin is that pl maps continue to the end of a round, ctf maps will go into overtime if an intell is out of it's starting position and cp maps will continue until a cap point is a solid color. Since the default value for sm_forcetimelimit_enable is 0, I would expect that just putting the plugin on the server should not change the behavior describe above. Instead, with the plugin installed, when 30 mintues are up, no end of map scoreboard just bang map change. I've tried putting sm_forcetimelimit_enable "0" into both the server.cfg and sourcemod.cfg files (seperately and at the same time, just to ensure it's getting read). Still after 30 minutes it's immediate map change. I've created map specific configs in the /cfgs folder with the correct map names for toyfort, snofort, cyberpunk and mario_kart. The only thing they contain is sm_forcetimelimit_enable "1". This really doesn't matter since all maps end with the plugin installed, but at least these don't go forever. :) I've been a programmer for years in other languages, but just starting to look at SM code. I was wondering, should there be an if (g_Enable) statement in all of the public functions, or at least in the MapChange one? I really don't know enough about timers yet to grasp if this would matter. When you get a chance, could you please check into this? I'm a fan of a lot of your work and I'd really like to have this one kill the endless maps, but leave the others alone. Thanks! |
Re: Time limit enforcer
Oh God. Thanks for pointing out the bug.
No. It wasn't that. g_enable is a handle, and I was trying to find if the handle == 1... *sigh* I should have done Code:
New version uploaded. |
All times are GMT -4. The time now is 05:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.