entity_player_base

From Valve Developer Community
Jump to navigation Jump to search
Entity player base.png
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because it spawns automatically when requaried.

entity_player_base is a point entity available in Black Mesa Black Mesa. It is the base from elimination game mode that zombies attack throughout the game mode and is a priority target for them. Spawns automatically after the countdown at 0 0 0 position even if placed via Hammer Hammer. The bottom part of the anti-mass spectrometer is used as a placeholder model, the size of which is reduced by half. Maybe it is the entity that also have been able to upgrade players weapons, give heathkits and other stuff by interacting with this entity, as said by Adam Bomb here.

Represented by class CEntityPlayerBase.

Icon-Bug.pngBug:Just like the game mode, this entity is unfinished and have several bugs and issues:
  • This entity can't be killed because it doesn't receive any damage (even if you are using custom breakable model). Also don't die if value of health lower then 1.
  • The collision is based on bounding box.
  • Physics objects can go through this entity.
Note.pngNote:Players are friendly to this entity, this can be seen in a single player game (the player will lower his weapon when looking at this entity).

Keyvalues

Health (health) <integer>
The amount of health. Default is 9999999.
Physics Impact Damage Scale (physdamagescale) <float>
Scales damage energy when this object is hit by a physics object. NOTE: 0 means this feature is disabled for backwards compatibility.\nSet to 1.0 for materials as strong as flesh, smaller numbers indicate stronger materials.

Inputs

PhysDamageScale <float>
Sets the value that scales damage energy when this character is hit by a physics object.
KilledNPC <void>
Output sent when it kills a player or bot.
Note.pngNote:Other keyvalues, inputs and outputs are same as CBaseAnimating.