AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2]Merasmus Timer (https://forums.alliedmods.net/showthread.php?t=199438)

Mitch 10-28-2012 01:48

[TF2]Merasmus Timer
 
1 Attachment(s)
Description:
A fairly basic timer to predict the spawning of Merasmus that shows the time until the next time he will spawn

I
nfo
:

The times are based off of the
tf_merasmus_spawn_interval(default 180)
and tf_merasmus_spawn_interval_variation(default 30) ingame Cvars.

Cvars
:
sm_meras_timer_version "1.0"; Version Cvar.

Commands:
None

Screenshots:
counting down: (top left corner)
http://cloud-2.steampowered.com/ugc/...BA5785B0504D6/

Installation:
Place meras_timer.smx into the addons/sourcemod/plugins/ folder.

Versions:

1.0, Initial release;
1.1. Fixed an issue with client counts;

Mr. Man 10-28-2012 02:37

Re: [TF2]Merasmus Timer
 
This is fantastic! Thank you very much! Now everyone knows "exactly" when he's coming :fox:

TheDOO 11-01-2012 23:27

Re: [TF2]Merasmus Timer
 
Seems to have a small issue when a round ends. Sometimes the timer will read 0 on both high and low, yet he still doesn't show up for another 20+ seconds

Usually happens when the timer only has a few seconds left on the low side and the round ends. I'm guessing the actual merasmus timer might not take into account some of the after round stuff possibly?

TheDOO 11-05-2012 01:00

Re: [TF2]Merasmus Timer
 
Is there another cvar now after the update? Merasmus seems to be spawning almost every 30 seconds after his death. Timer is nowhere near accurate anymore.

DarthNinja 11-06-2012 03:41

Re: [TF2]Merasmus Timer
 
Here are some issues that prevent this from being approved:
  • You declare a number of global variables that are only used in one function.
  • "Timer" is a reserved word; Don't use it as a variable or function name.
  • Your client count is currently hardcoded to 10. However the required number of players can be changed with the cvar tf_merasmus_min_player_count. Also I believe only players on teams are counted.
  • You should use !IsFakeClient instead of !IsClientReplay(i) && !IsClientSourceTV(i).
  • The plugin currently checks the values of tf_merasmus_spawn_interval and tf_merasmus_spawn_interval_variation more often than needed. Use HookConVarChange to cut down on updates and make them happen immediately.

XyzKiller 11-07-2012 00:03

Re: [TF2]Merasmus Timer
 
Also what seems to happen, after beating Merasmus a couple times, he spawns very quickly after being defeated. Like 30 seconds most and he will respawn when around level 5+


All times are GMT -4. The time now is 01:42.

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