Left 4 Dead 2

Left 4 Dead 2

49 ratings
Spectator Mode (Mutation)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Miscellaneous
Game Modes: Co-op
File Size
Posted
63.645 KB
Mar 25, 2022 @ 1:49pm
1 Change Note ( view )

Subscribe to download
Spectator Mode (Mutation)

In 1 collection by Blue
My L4D2 Content
121 items
Description
This is a mutation that must be launched through the console to work due to what mutations can and cannot do. I am not good at coding so this is the best I can do.

The mutation allows you to spectate 4 bots completely by themselves as they run through coop mode on their own. This only supports the official campaigns, as to fire specific entities there needs to be scripts involved. Bots can technically complete custom maps provided there isn't complex crescendos or finales involved, but this will obviously vary.

To launch, simply type this in the console window.

map <mapname> spectatormode



Tips n stuff
---------------------------------------
In a way, with this addon L4D2 can now play out like a little interactable movie, much akin to its southern horror movie motif.

Bots will avoid shooting through each other and if they do by chance, they will deal FF. Bots also try their best not to leave others behind.

To check survivor status, items, progression through map, and difficulty, as always, hold down tab.

Bots are stupid. Bots will do dumb stuff. Just be aware not everything will work like intended.

For some fun since sv_cheats is enabled by default, you can use commands like "give rifle_desert" or "z_spawn tank" to mess with the survivors or the flow of the match. Items spawn from your POV and zombies spawn where you look when in free-cam mode. If you ever feel like helping the survivors, type "jointeam 2" in the console, and "jointeam 1" to go back to spectators.

Just be aware that the survivors, due to the hidden cstrike cvars being enabled, will run off without you pretty fast as they do not see you as a teammate or a leader, rather just a dead bot teammate not following the team.

The difficulty, due to the nature of the mutation, is locked at Normal and cannot be changed. I do not recommend changing it either if you do find a way as bots need support of a player to succeed on Advanced or Expert.

To enable free-cam, make sure "spectating free look" is enabled in your multiplayer settings.

I did not make this in its entirety, I sourced code from the amazingly done Single Vs with Bots addon after being inspired watching the survivors run their course through the eyes of a ghost infected.

This mod involves zero extra scripts and can be used with any addon editing bot AI, although be advised I have not tested both working together. All of the code is in the mutation script alone so nothing should ever conflict file/addon wise. The mutation can be launched through the menu but it will do nothing due to sv_cheats failing to switch from 0 to 1.

A good example of a custom map that bots can definitively complete is "Hard Rain: Downpour", as the finale alongside the only crescendo event involve basic buttons. This is because the AI has code to search out buttons compiled into a map and press them.
---------------------------------------

Enjoy.
26 Comments
Freshman Mar 29 @ 7:16am 
OH MY GOD THANK U SO MUCH!!
Marchin Mar 9 @ 12:51pm 
btw since sv_cheats is enabled by default i found a command to switch the difficulty u can use "z_difficulty" and Advanced difficulty is labeled as Hard and Expert as Impossible while Easy and Normal Difficulties are still the same :luv:
Noah The sleepy clown Feb 4 @ 7:32am 
i like this mod
10/10:steamthumbsup:
Artemis Sep 21, 2023 @ 6:55am 
Also, i don't know if it's just me,but i used "jointeam 2" on the console and the bots were following me just fine and recognized me as a valid teammate. I did not test it extensively however
Artemis Sep 21, 2023 @ 6:51am 
I STRONGLY recommend using this mod together with the Left 4 Bots (Improved A.I.) + BOTS T3 mods to get the ultimate spectating experience. Watching vanilla bots trying to play the game can be... dreadful

I also recommend turning off the Director in the more punishing gauntlet crescendo events after a while, like the one in Death Toll Part 4 for example, because the bots prioritize fighting off the horde over rushing to the safehouse and this will often result in everyone getting killed eventually. Be sure to turn it back on once they make it to the safe house, of course
K Aug 5, 2023 @ 12:10pm 
This mod works perfect and with mods if you launch it the correct way
lying sack of fun Jun 15, 2023 @ 9:27am 
Mods don't work with this.
howes_ye_sista1999 May 6, 2023 @ 10:24am 
i wanna play this with 8 players
K Mar 13, 2023 @ 5:21pm 
@Blue Do you know if there is a way to change the spectator camera's speed? Just thought I'd ask you since it revolves around this.
Princess ∆lice [↿⟡↾] Feb 28, 2023 @ 4:23am 
is work for me