AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [TF2] Warmup Round Mini Games (https://forums.alliedmods.net/showthread.php?t=121212)

simoneaolson 03-12-2010 23:03

[TF2] Warmup Round Mini Games
 
2 Attachment(s)
TF2 Warmup Round Mini Games v1.20

Description:

Bored of round after round of the same old gameplay? This plugin adds a new on take on the same old fun in Team Fortress 2, hosting 4 fun games that can be played X number of times at the start of every map by both teams. Teams compete for the best score.

Modes:

(1) Free For All - Friendly fire and Instant respawn, compete for the most kills!
(2) Fire! Fire! Fire! - Several Pyros are sent to the enemy base with buffed health, the other team must remove them from their base
(3) Melee Maddness - Friendly fire and Instant respawn, Melee weapons only
(4) Heavy Bloodbath - All players spawn as a heavy, no respawning. Compete to be the last man standing on your team


CVARS:

tf2_minigames_enabled - Enabled/Disable TF2 Mini-Games (bool) Def: 1
tf2_minigames_time - Time in seconds to play each mini-game, Def: 50
tf2_minigames_rounds - Number of Mini Games to play before round start, Def: 2
tf2_minigames_mode - How to select mini-game to be played: (1 = Sequentially) (2 = Randomly), Def: 1
tf2_minigames_crits - Enable/Disable Crits during a Mini Game Round (bool), Def: 1
tf2_minigames_minplayers - Fires TF2 Minigames ONLY when there are less than/equal X many players on the server (0 = Disable) Def: 0
tf2_minigames_explode - Explode players on death in mini games (bool) Def: 1
tf2_minigames_waiting - Time to wait for players to join the server Def:13.0
tf2_minigames_party_off - Disable party mode when the minigames end (bool) Def:1

Notes:

* Suggestions, comments are very much appreciated
* If you find any bugs with this plugin please post them here
* This plugin changes the warmup round time to (tf2_minigames_time * tf2_minigames_rounds) to allow enough time for each game
* Thanks to the Sourcemod community for all of your help!

Requirements:
Sourcemod 1.3.4
Metamod Source 1.8.3
(as of August 2010)

Changelog:

v1.02 -
(1) New CVAR (tf2_minigames_minplayers)
(2) Fixed the issue with the spies not going back from invisibility
(3) Fixed kills not being displayed in HUD

v1.03 -
(1) On spawn, all clients are returned to visibility

v1.04 -
(1) Added teamkill meter to hint text
(2) Added a CVAR to control if players explode on death
(3) Tweaked respawn times
(5) Now displays a message when the client enters the server

v1.05 -
(1) Polished the round-end stats
(2) More than one player can now win the friendly-fire mini games
(3) Fixed a PrintToChat crash, led to players being stuck in the game
(4) Added a 'Ding' sound to whenever a client kills another in the friendly-fire mini games

v1.06 -
(1) Added functionality to wait for players to join the server (tf2_minigames_waiting)
(2) Minor fixes

v1.10 -
(1) Added more announcer sound clips, including First blood
(2) Random players no longer win the mode: Heavy Bloodbath if there were no kills
(3) Fixed friendly fire not turning on in Heavy Bloodbath
(4) Lowered one of the offsets of the particle effects in friendly fire mode
(5) Players now switch back to their original class/team after Heavy Bloodbath
(6) Removed mode: Spy in the Base
(7) Enabled birthday mode during minigames
(8 ) Fixed language phrase error

v 1.11
(1) Removed colorize function
(2) Added config file (AutoExecConfig)
(3) Fixed PrintToChat formatting error (thanks Onedda)

v 1.12
(1) Fixed major bug with players being stuck
(2) Optimized plugin

v1.13
(1) Fixed "achieved" particle not being displayed
(2) Added "mini_fireworks" effect
(3) Added buffed condition

v1.14
(1) Waiting for players is now canceled if there aren't enough players (tf2_minigames_minplayers)

v1.15
(1) Added client id checking system (fewer client id-related bugs)

v1.20
(1) Major bugfixes regarding how the mingames start/stop
(2) Added a Waiting For Players coutdown
(3) Now functions properly on Linux SRCDS

Mecha the Slag 03-13-2010 05:26

Re: [TF2] Warmup Round Mini Games
 
It looks like a nice concept, but too much of it is just mindless killing. If it's meant to be real minigames, it needs something extraordinary!

Also I dunno if this can even be played before warmup ends since it usually isn't more than 10 seconds for me.

crazydog 05-04-2010 21:32

Re: [TF2] Warmup Round Mini Games
 
Not sure why, but as long as this plugin is enabled on our server, kills do not show up in the HUD or in console. Ever.

Also, I'd like to see a minimum players setting.
i.e. If there are less than x players, only do free for all / melee madness

Another bug:
A guy who was an invisible spy was still invisible when the real game started.

Also, when it moved the dead invisible spy to spec, he got kicked by our AFK kicker immediately (this one: https://forums.alliedmods.net/showthread.php?p=708265). The problem with that is that he is an admin (and we have admins set to be immune), and we require that they be afk in spec for 2 minutes before being kicked.

I'd like to use this plugin, as what we are doing now (Always FF + melee only) gets a little tired, but these bugs kill it right now.

simoneaolson 05-04-2010 22:32

Re: [TF2] Warmup Round Mini Games
 
Quote:

Originally Posted by crazydog (Post 1170945)
Not sure why, but as long as this plugin is enabled on our server, kills do not show up in the HUD or in console. Ever.

Also, I'd like to see a minimum players setting.
i.e. If there are less than x players, only do free for all / melee madness

Another bug:
A guy who was an invisible spy was still invisible when the real game started.

Also, when it moved the dead invisible spy to spec, he got kicked by our AFK kicker immediately (this one: https://forums.alliedmods.net/showthread.php?p=708265). The problem with that is that he is an admin (and we have admins set to be immune), and we require that they be afk in spec for 2 minutes before being kicked.

I'd like to use this plugin, as what we are doing now (Always FF + melee only) gets a little tired, but these bugs kill it right now.


Ok, I made a couple of changes in v1.02

(1) New CVAR (tf2_minigames_minplayers)
(2) Fixed the issue with the spies not going back from invisibility
(3) Fixed kills not being displayed in HUD (however, not tested)

What i need clarification on is what exactly are the circumstances in which the invisible spy is kicked by the AFK manager, I don't seem to understand what caused this to happen (from what you have described).

WGSXFrank 05-04-2010 22:58

Re: [TF2] Warmup Round Mini Games
 
I'll give this a try on my server tomorrow for an event. I'll be sure to write back with some feedback afterward. :)

EDIT: It won't compile >_<
Quote:

SourcePawn Compiler 1.3.2
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

tf2_minigames.sp(38 ) : error 020: invalid symbol name ""
tf2_minigames.sp(293) : error 017: undefined symbol "ChatMessage"
tf2_minigames.sp(293) : error 017: undefined symbol "ChatMessage"
tf2_minigames.sp(293) : error 029: invalid expression, assumed zero
tf2_minigames.sp(293) : fatal error 127: too many error messages on one line

Compilation aborted.
5 Errors.

simoneaolson 05-05-2010 02:40

Re: [TF2] Warmup Round Mini Games
 
simple syntax error xD

crazydog 05-05-2010 19:33

Re: [TF2] Warmup Round Mini Games
 
The AFK manager thing was the afk manager iteslf. For some reason it was kicking as soon as someone went spectate, but i think I figured that out.

We just had to stick on a backup of SM on our server, so some things weren't working right. heh.

Thanks for the update. I'll try it out some time later this week.

crazydog 05-10-2010 20:34

Re: [TF2] Warmup Round Mini Games
 
I noticed that you have this logic:
Code:
if (GetClientCount() <= GetConVarInt(Cvar_TF2_MINIGAMES_MIN)) miniGames = true
Shouldn't it be
Code:
if (GetClientCount() >= GetConVarInt(Cvar_TF2_MINIGAMES_MIN)) miniGames = true

simoneaolson 05-10-2010 20:42

Re: [TF2] Warmup Round Mini Games
 
I believe i misunderstood your request. I thought you wanted it to initiate the mini games if there are less than, equal to X players. lol * Corrects

crazydog 05-10-2010 21:25

Re: [TF2] Warmup Round Mini Games
 
Here's another bug: Free for all didn't have instant respawn.

Also, kill notifications do work. Thanks for the fix.


All times are GMT -4. The time now is 19:26.

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