View Single Post
Author Message
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 08-11-2013 , 01:27   [TF2] RED+BLU vs Machine
Reply With Quote #1

Valve's MvM trailer shows both RED and BLU members fighting off the Robots, yet all we have right now are RED people. This randomly assigns players to RED or BLU when fighting the robots.

I did the first version of this in about 3 hours so it's bound to be a tad strange or buggy, but it seems to work properly in terms of most things. The bots are currently overridden to be 'reddish' (they're actually unassigned, but clients see them as RED-skinned, though as a bonus Medics and Spies may see their names as grey). < Planned optional feature.

Screenshots:
Spoiler


Cvars:
Just the version cvar at the moment. Don't touch that.

Commands:
mvm_myteam
[team] - Use this to check your MvM team. If you have access to the (nonexistent) command "mvm_redblu_set_access" (access for this command defaults to the Root/z flag) then you can add the [team] argument to set your MvM team (2 is RED, 3 is BLU, and any other values use RED).

Installation:
Install SendProxy Manager (if missing link, use Windows (.dll) or Linux (.so) and this for gamedata).
Install TF2Attributes.
Place the .smx file attached below into addons/sourcemod/plugins/. Restart your server and switch to an MvM map.

Known bugs/weirdness:
Not a clue how Bot Engy buildings behave. They should be BLU, but darker and greyer.
Client prediction causes some player collisions to be... weird. You still walk through your "teammates" (any human).
Any and all bots are considered MvM bots at the moment, I think. Try not to use normal TFBots with this.
Medics can see any bots' health (this is intentional so at the very least they can see their heal target's health).
UI/HUD/respawn timer display bugs for BLU players. Nothing doing.
Same goes for BLU footsteps being robot footsteps. Footstep sounds are determined clientside, sadly.
Humiliation round anims. Same deal.

I have no idea how this interacts with RED2Robots or plugins that swap players to be robots in MvM.

Coming soon:
Cvars to control teams per-class and other team selection methods.
Footstep sounds for others won't be robot steps (though you'll still hear them for yourself if you're BLU).

Changelog:
Code:
08/10/2013 - 1.0
*Initial release
Previous plugin views - nop
Attached Files
File Type: sp Get Plugin or Get Source (mvm_redblu.sp - 1130 views - 7.0 KB)
File Type: smx mvm_redblu.smx (7.6 KB, 1608 views)
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 04-15-2014 at 03:04.
FlaminSarge is offline