Hooks called by HL2RP

Summary

Hooks

Called when an entity has been breached.
Called when a player attempts to breach an entity; any real door except rotating ones may be breached.
Called when a player has been healed.
Called when a player hits an entity with a stunstick.

Hooks

EntityBreached(self.entity, activator)

server gamemodes/cwhl2rp/schema/entities/entities/cw_breach/init.lua:76

Called when an entity has been breached.

Opens doors without a Combine lock, busting down rotating doors breached by a player. A Combine lock breached by a Combine player is blown off a rotating door with a smoke charge; otherwise it flashes.

Parameters

  • entity Entity The breached entity
  • activator Entity Who breached it, if anyone

Called from

Call sites

PlayerAdjustPermaKillInfo(player, info)

server gamemodes/cwhl2rp/schema/sv_schema.lua:1026

No documentation available.

Arguments

  • player
  • info

Called from

Call sites

PlayerCanBreachEntity(player, entity)

shared gamemodes/cwhl2rp/schema/items/sh_breach.lua:27

Called when a player attempts to breach an entity; any real door except rotating ones may be breached.

Parameters

  • player Player The player
  • entity Entity The entity

Returns

  • Boolean Whether the entity can be breached, or nil for the default

Called from

Call sites

PlayerCanKnockOnDoor(self.Owner, trace.Entity)

server gamemodes/cwhl2rp/schema/entities/weapons/cw_stunstick/shared.lua:331

No documentation available.

Arguments

  • self.Owner
  • trace.Entity

Called from

Call sites

PlayerHealed(target, player, itemTable)

shared gamemodes/cwhl2rp/schema/commands/sh_charheal.lua:67

Called when a player has been healed.

Boosts the healer's Agility and progresses their Medical attribute, more for a health kit than a health vial and least for a bandage.

Parameters

  • player Player The player who was healed
  • healer Player The player who healed them
  • itemTable Item The item used

Called from

Call sites

PlayerKnockOnDoor(self.Owner, trace.Entity)

server gamemodes/cwhl2rp/schema/entities/weapons/cw_stunstick/shared.lua:334

No documentation available.

Arguments

  • self.Owner
  • trace.Entity

Called from

Call sites

PlayerStunEntity(self.Owner, trace.Entity)

server gamemodes/cwhl2rp/schema/entities/weapons/cw_stunstick/shared.lua:286

Called when a player hits an entity with a stunstick.

Progresses the player's Strength and punches the view of a hit player. Four hits less than two seconds apart knock the target out for the knockout_time config value.

Parameters

  • player Player The player with the stunstick
  • entity Entity The entity that was hit

Called from

Call sites

PlayerUseRation(player)

shared gamemodes/cwhl2rp/schema/items/sh_ration.lua:32

No documentation available.

Arguments

  • player

Called from

Call sites

Defined in