Setting Up Doors (Killing Floor 2)

From Killing Floor 2 Wiki
Jump to navigation Jump to search


Door Pathnode Setup

Doors require very specific paths through the doorway.

  1. The KFPathNodes right near the the door have to be fully encased by the KFDoorTrigger on both sides of the doorway.
  2. ALL KFPathnodes that connect to the KFDoorMarker outside of the KFDoorTrigger radius MUST have its paths proscribed (Blocked (RED)).
  3. The KFPathNodes on opposite sides of the Door WITHIN the KFDoorTrigger MUST have their paths proscribed (Blocked (RED)).


The KFDoorTrigger has a number of functionalities attached to it that are not outwardly apparent. One such function is that when a Zed encounters a KFDoorTrigger (represented by the square brackets [ ]), the Zed's collision cylinder will shrink to allow more Zed through the doorway/tight corridor more easily. How this ties into navigation is that the Zed are trying to find a path that works like:


PathNodes outside KFDoorTrigger ↔ [ PathNode ↔ KFDoorMarker ↔ PathNode ] ↔ PathNodes outside KFDoorTrigger


So that the engine understands when to revert the collision cylinder of the Zed back to normal. The sequencing of the PathNodes to the the KFDoorMarker is essential to getting Zed to navigate correctly through a door. No other Navigation link can exist that bypasses the KFDoorMarker.

If you have Zeds that are standing at the door not attacking it, it is probably because you have not properly proscribed paths leading to the KFDoorMarker. Double check to make sure that only the KFPathNodes within the KFDoorTrigger only connects to the KDoorMarker!

!--T:1--> Warning Warning: The more recent Community Official maps may not have doors set up correctly, check the original official maps released for better representation

There is a sample map available to copy and paste setups located at:

C:\SteamLibrary\steamapps\common\killingfloor2\KFGame\BrewedPC\Maps\SDK\Mod_Tools_Door_Template.kfm


Actor Descriptions

KFDoorActor Properties

KFDoorActor

Mesh Attachments - StaticMesh actor properties used to define the doors that will be on the left and right and attached to the SkeletalMesh actor that is used to operate the door under the hood

Center Weld Component - StaticMesh actor properties used to define the door's weld mesh

Skeletal Mesh Comp - The "under the hood" actor that code uses to operate the door. Generally should not be modified

Damage Emitter - Particle system used when the door is taking damage

   ParticleSystem'FX_Environmental_EMIT.Doors.FX_Door_Pound_metal_01'
   ParticleSystem'FX_Environmental_EMIT.Doors.FX_Door_Pound_Wood_01'
   ParticleSystem'FX_Environmental_EMIT.Doors.FX_Door_Pound_Mech_01'

Destroyed Emitter - Particle system used when the door is destroyed

   ParticleSystem'FX_Environmental_EMIT.Doors.FX_Door_Pound_metal_01'
   ParticleSystem'FX_Environmental_EMIT.Doors.FX_Door_Pound_Wood_01'
   ParticleSystem'FX_Environmental_EMIT.Doors.FX_Door_Pound_Mech_01'


Door Material - [EDMT_Metal/EDMT_Wood] Used to define what the door is made of to assist in audio

Max Health - Maximum amount of damage the door can take overall before being destroyed

Max Weld Integrity - Maximum amount of weld "health" the door can have before the weld breaks

Combat Weld Modifier - Amount of mitigation the welding will have when the door is taking damage

Frame Size of Two Doors - The size of the orifice that the door will occupy based on two doors. Under the hood, the doors will be proportionately scaled to fit this value

My Nav Mesh Obstacle - Unused - Used to associate a KFDoorNavMeshObstacle actor to the door (used ONLY with NavMesh)

Broken Door Impulse - the amount of force applied to the doors when they are destroyed. Used in the simulation of the doors coming off the hinges

Max Angular Velocity - used to define the maximum amount of angular twist the doors will have when destroyed. Used in the simulation of the doors coming off the hinges

Opening

Door Mechanism - How the door operates

   EDM_Hinge which works like a typical hinged door
   EDM_Slide works by sliding the door open horizontally
   EDM_Lift works like a garage door and opens vertically

Cool Down Time - Amount of time between uses of the door

Open Blend Time - How long it takes to open/close the door

Hinged Rotation - The angular amount the door will open (used ONLY on EDM_Hinge Door Mechanism)

Slide Translation - How far the door will slide when opening (used ONLY on EDM_Slide Door Mechanism)

Lift Translation - How far the door will lift when opening (used ONLY on EMD_Lift Door Mechanism)

Automatic Door - Unused - A setting that allows for doors to automatically open

KFDoorTrigger Properties

Door Actor - Used to associate the KFDoorTrigger to a KFDoorActor

Collision - Collision Radius - Used to define the interaction distance the player/Zed must be within to interact with the door

NOTE: If a Door Actor is not defined, the KFDoorTrigger can be used in otherwise narrow passageways to allow the Zed to pass through easier. The KFDoorTrigger shrinks the collision on the Zed to allow them to pass through single doors.