Info l4d1 survivor spawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Included a link to the tutorial so it's easier for people to access.)
Line 18: Line 18:
== Related Tutorials ==
== Related Tutorials ==
This tutorial teaches how to spawn L4D1 survivors inside of a L4D2 level, and enable the Louis bot to use the mounted machine gun.  
This tutorial teaches how to spawn L4D1 survivors inside of a L4D2 level, and enable the Louis bot to use the mounted machine gun.  
[[Creating_NPC-Controlled_Mounted_Guns|Creating NPC-Controlled Mounted Guns]]
[[Creating_NPC-Controlled_Mounted_Guns|Creating NPC-Controlled Mounted Guns]]

Revision as of 08:27, 15 June 2023

C++ Class hierarchy
CL4D1SurvivorSpawn
CBaseEntity

Template:L4d2 point It is used to spawn one of the original survivors from L4D1 as seen in The Passing campaign.

You can use this entity in your maps to create the feeling of a bigger world, like in The Passing. They're able to use weapons and target infected, much like the Survivor bots on your team. However, they're more limited to the bots on your team in that they can't move around the map independently.
Louis is the only survivor bot capable of using the prop_mounted_machine_gun and will walk towards it himself, if the navmesh allows it.

Keyvalues

Character (character) <choices>
Which survivor to spawn here. Bill was included in The Sacrifice update and was not available in the previous DLC, The Passing, due to a significant plot advancement within the series.
  • 4 : Bill
  • 5 : Zoey
  • 6 : Francis
  • 7 : Louis
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

SpawnSurvivor
Spawn the survivor

Related Tutorials

This tutorial teaches how to spawn L4D1 survivors inside of a L4D2 level, and enable the Louis bot to use the mounted machine gun.

Creating NPC-Controlled Mounted Guns