Left 4 Dead 2

Left 4 Dead 2

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

Subscribe to download
Spectator Mode (Mutation)

In 2 collections by Blue
L4D2 - Maps and Mutations
61 items
My L4D2 Content
111 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.
37 Comments
zombiekiller2045 14 Jul @ 4:14pm 
forget it, i solved it. You just need to type: map mapname spectatormode
zombiekiller2045 14 Jul @ 4:12pm 
Do you have to use "<" and ">" or " ' " and " ' " for the campaigns?
Tuna Sandwich 30 Apr @ 6:10am 
i've been looking at the comments on this thread, and i'm glad someone has pointed out the bots getting stuck on chapter 4 of death toll. it always irritates me whenever the forklift crescendo starts, the bots suddenly lose their sense of navigation and just stays on the flipped over bus area fighting every oncoming horde until they eventually die one-by-one. i'm assuming this is because the crescendo is automatically triggered without anyone interacting with the forklift, which somehow affects the bots' path-finding ability? i wonder if it's possible to turn off the auto-crescendo thing, perhaps it will make the bots better at identifying their surroundings.
RedBigEvilDevil 29 Mar @ 1:36am 
Would be better, if we can see auras survivors and infected.
Mod works for me.

The first map of the campaign is fine, I can cycle between bots freely and spectate them.

However, once the second map of campaign is loaded, the game sticks my spectating to Louis/Coach and shows "Press left mouse to play as Louis/Coach".
- no more free cycling between bots
- no more free-look spectating
Troko Tripod13 30 Aug, 2024 @ 9:22pm 
It’s not working bro
Vinnie Bounty Hunter 24 Aug, 2024 @ 11:12am 
fix and update!
Noah The sleepy clown 20 Aug, 2024 @ 7:45pm 
everytime i load a game with this mutation i get stuck on the loading screen
please fix :((((((((((((
Lying Sack Of Fun 15 Aug, 2024 @ 2:16am 
How do you activate addons for this?
gaugezilla06 7 Jul, 2024 @ 3:24pm 
can you make a script version?