Warmup Round (1.1.8, Updated: 10/7/2008)
3 Attachment(s)
General:
A while ago I promised some people I would at write a working warmup plugin, since the current ones are all "unapproved". I realize Liam has a warmup round in his weapon restrictions plugin, but even that has some outstanding issues. So this one is basic and standalone. I'm happy to take feature requests for this, so long as they aren't outrageous. Simple is good sometimes. =) Info: You can configure the warmup time length, whether or not to respawn the players, and the weapon they will recieve for the duration of the warmup round. If you give them a hegrenade, it will be unlimited. The unlimited nades are a blast with LDuke's flaming SuperNades Usage: Sit back and have fun. Installation: Download the zip file and extract into your /cstrike/ directory. Manual Installation:
Configuration:
Version 1.1.8: Changed GetEntDataEnt to GetEntDataEnt2 for stability. Possible crash scenario. Also changed to using "knife" instead of "" in sm_warmupround_weapon. I don't know what I was thinking on that one. You should upgrade to this version, as GetEntDataEnt has the potential for a server crash in previous versions. Version 1.1.7: Added hidden CVAR: sm_warmupround_active. This value will automatically change from 0 to 1 when the warmup round is active, then back to 0 when it's over. This can be used for stats programs or other plugin author's who don't want certain activities occuring during the warmup round. Between this feature and the pre/post config files, I don't see what else can be done to provide stats support. Version 1.1.6: Added validation to the cvar sm_warmupround_weapon to ensure that the proper weapon names are being set. Version 1.1.5: Prevented timer from carrying over to next map when map was changed during warmup. Version 1.1: Added CVARS, see above for usage. sm_warmupround_friendlyfire sm_warmupround_preexec sm_warmupround_postexec The preexec and postexec files should give people a way to disable their stat monitoring during the warmup time period. Since new CVAR's were added, you will need to delete your warmup.cfg file and allow it to be re-created, or add the new cvar's manually. Version 1.02: Please delete your warmup.cfg and let the plugin re-create it! Sorry folks! Updated version CVAR to sm_warmupround_version. Changed PrintCenterTextAll to PrintHintTextToAll - it just looks better. Minor code cleanup. Version 1.01: Minor code cleanup, prevent players from using purchased weapons during warmup. Version 1.0: First public release. Hopefully no bugs. =) |
Re: Warmup Round
Good job.
|
Re: Warmup Round
You need to stop them buying weapons during the warmup.
|
Re: Warmup Round
Quote:
|
Re: Warmup Round
just FYI OnConfigsExecuted() it's not working on listen servers until next version of SourceMOD
if (StrEqual(newValue[0], "1", false)) use if(newValue[0] == '1') |
Re: Warmup Round
Quote:
Thanks for the heads up on OnConfigsExecuted, I wasn't aware of that! Is it best to just move that stuff into OnMapStart for the time being? I figure the number of listen servers out there would be pretty few. |
Re: Warmup Round
if you'r not going to use:
if(newValue[0] == '1' then use if(StrEqual(newValue,"1")) Don't check string[char num] with StrEqual Place the stuff from OnConfigsExecuted() in OnPluginStart() until next SM Version or let it there permanently |
Re: Warmup Round
Doh - I see what you're saying. Thanks, nice catch.
Updaed. =) |
Re: Warmup Round
Unfortunately the forum does not allow you to use the same public cvar twice. Even if we change the cvar on the old plugin, somewhere there will still be a record of it, disallowing you to use it.
|
Re: Warmup Round
Quote:
Thanks, X |
All times are GMT -4. The time now is 19:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.