AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   GameCron (https://forums.alliedmods.net/showthread.php?t=91619)

altex 05-03-2009 08:17

GameCron
 
1 Attachment(s)
Description
-----------
GameCron plugin is for delayed command execution counting from every map start.

http://forums.alliedmods.net/showthread.php?t=91619

Commands and Cvars
------------------
sm_gamecron_version - GameCron version.

sm_gamecron_add <seconds> <command> - Add delayed command.
sm_gamecron_del <id> - Delete task by id.
sm_gamecron_clear - Delete all tasks.
sm_gamecron_list - List all current tasks.
sm_gamecron_restart - Restart all timers for tasks.

Requirements
------------
Counter-Strike: Source
SourceMod 1.2.0

Changelog
---------
1.0.3:
* CPU usage optimization.

1.0.2:
+ Added sm_gamecron_version.

1.0.1:
+ Added restart hooking. It was commented due to compatibility with SourceMod 1.0.0.
- Debug log messages removed.

My plugins | Donations via PayPal

SWAT_88 05-03-2009 10:07

Re: [CSS] GameCron
 
There are many cron plugins.
What are the benefits of your version?

altex 05-03-2009 10:31

Re: [CSS] GameCron
 
I agree, there are many cron plugins. :)

But i was searching for plugin, that can execute command in specified time after map is starter/restarted.

To illustrate what i was looking for, i give an example.
It was needed by gungame server, and i added two lines in server.cfg
Code:

mani_vote_rock_the_vote_threshold_percent 60
gamecron_clear
gamecron_add 600 "mani_vote_rock_the_vote_threshold_percent 100"

So players can rock the vote right after map is starter and 60% of players can run change the map. But after 10 minutes of playing this value changes to 100%, so players can change map only if all players decided to do that. This is very specific situation. After 10 minutes of playing some players can achive very high level and this plugin can prevent other players to reset map for example.

SWAT_88 05-04-2009 12:58

Re: [CSS] GameCron
 
Quote:

Originally Posted by altex (Post 820146)
I agree, there are many cron plugins. :)

But i was searching for plugin, that can execute command in specified time after map is starter/restarted.

To illustrate what i was looking for, i give an example.
It was needed by gungame server, and i added two lines in server.cfg
Code:

mani_vote_rock_the_vote_threshold_percent 60
gamecron_clear
gamecron_add 600 "mani_vote_rock_the_vote_threshold_percent 100"

So players can rock the vote right after map is starter and 60% of players can run change the map. But after 10 minutes of playing this value changes to 100%, so players can change map only if all players decided to do that. This is very specific situation. After 10 minutes of playing some players can achive very high level and this plugin can prevent other players to reset map for example.

That makes sense!
Nice.

altex 06-15-2009 16:49

Re: [CSS] GameCron
 
Release 1.0.3:
* CPU usage optimization.

Kenny Loggins 07-14-2009 02:34

Re: [CSS] GameCron
 
Does this work with TF2?

altex 07-14-2009 03:30

Re: [CSS] GameCron
 
Quote:

Originally Posted by Kenny Loggins (Post 871796)
Does this work with TF2?

I think it work in any mod (with some minor limitations because of different warmup implementation), but i've not tested yet.

Please test it, i think it should work fine and the most worst that could happen is just timer will not restart after warmup ended.

After you provide me a report, i will fix all the issues you'll find.

Antithasys 07-14-2009 13:03

Re: [CSS] GameCron
 
Plugin compiles on forums, and with no additional files a .zip file is not needed. Please remove .zip file, and only post .sp for forum compiling. Once done plugin will be approved.

altex 07-14-2009 13:23

Re: [CSS] GameCron
 
Quote:

Originally Posted by Antithasys (Post 872174)
Plugin compiles on forums, and with no additional files a .zip file is not needed. Please remove .zip file, and only post .sp for forum compiling. Once done plugin will be approved.

I realy think that zip file with standard structure is better than lots of files without folders structure.

If i put translate files, some includes in scripting folder, add game data file, some sounds and so on, than it will be not easy to users to set up such plugins. Zip-archive way is more ergonomic. I can put readme and changelog files in separate files, there is no need to write all this informaion to source files. I can even add version number to archive name, i do not think that adding version number to sp-file is better way. etc etc etc

And i can not see any issues for automatic forum compiler to support common folder structure, where top folder of the archive is parent folder for "addons" folder. As you can see all of my plugins released in only that way as i think it is more usefull for all people.

But i'll add some additional files as you wish.

cybersquare420 07-16-2009 11:07

Re: [CSS] GameCron
 
i agree... i always prefer the directory structure to be in tact... makes it easier for inexperienced server admins to install and configure a plugin...
depending on how the files are named, it can be confusing... especially if the coder does not speak the same language as the admin... this can lead to a ton of frustration for both parties over even the simplest of issues.

my 2 cents.

p.s. nice plugin


All times are GMT -4. The time now is 04:55.

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