View Single Post
Author Message
Justin_Chellah
Junior Member
Join Date: Oct 2023
Location: Germany
Old 10-19-2023 , 10:25   [L4D2] Interactive Survivor Groups - Voice lines for L4D2 survivors on L4D1 campaigns
Reply With Quote #1

This is a SourceMod Plugin that enables the voice lines and adds respective server-side names for L4D2 characters on maps with the original L4D1 survivors, e.g. No Mercy, Dead Air, etc. (custom campaigns included; nothing is hardcoded).

IMPORTANT: The way this plugin works is that it "splits" both groups of survivors under the hood if it's a campaign that has the original L4D1 survivors.

Let's take a look at this enum for further elaboration:
Code:
enum SurvivorCharacterType
{
	SurvivorCharacter_Gambler = 0,		// Nick
	SurvivorCharacter_Producer,		// Rochelle
	SurvivorCharacter_Coach,		// Coach
	SurvivorCharacter_Mechanic,		// Ellis

	SurvivorCharacter_NamVet,		// Bill
	SurvivorCharacter_TeenGirl,		// Zoey
	SurvivorCharacter_Biker,		// Francis
	SurvivorCharacter_Manager,		// Louis
	
	SurvivorCharacter_Unknown
};
Basically, the plugin will see the first four survivors in the enum as the L4D1 survivors (default by the game) and the last four as the L4D2 survivors. Most plugins that allow players to change characters aren't using the last four numbers so a custom version of a character selection plugin will be required.

Installation
  • Install SourceScramble and add these key/value pairs inside the "Patches" section to your sourcescrambler_manager.cfg file:
    Code:
    "interactive_survivor_groups" "Bill survivor character"
    "interactive_survivor_groups" "Zoey survivor character"
    "interactive_survivor_groups" "Francis survivor character"
    "interactive_survivor_groups" "Louis survivor character"
    "interactive_survivor_groups" "Nick survivor character"
    "interactive_survivor_groups" "Rochelle survivor character"
    "interactive_survivor_groups" "Coach survivor character"
    "interactive_survivor_groups" "Ellis survivor character"

Known Issues
  • Survivor viewmodel arms, images, and names are displayed incorrectly on the client side which can't be fixed from the server

Requirements
Supported Platforms
  • Windows
  • Linux

Supported Games
  • Left 4 Dead 2

Preview Video
GitHub Repo

Last edited by Justin_Chellah; 11-23-2023 at 04:00. Reason: Updated plugin version
Justin_Chellah is offline