Hooks hooks
Hooks called by HL2RP
Summary
Hooks
Hooks
EntityBreached(self.entity, activator)
server gamemodes/cwhl2rp/schema/entities/entities/cw_breach/init.lua:76Called 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
No documentation available.
Arguments
playerinfo
Called from
Call sites
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
nilfor the default
Called from
Call sites
PlayerCanKnockOnDoor(self.Owner, trace.Entity)
server gamemodes/cwhl2rp/schema/entities/weapons/cw_stunstick/shared.lua:331No documentation available.
Arguments
self.Ownertrace.Entity
Called from
Call sites
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:334No documentation available.
Arguments
self.Ownertrace.Entity
Called from
Call sites
PlayerStunEntity(self.Owner, trace.Entity)
server gamemodes/cwhl2rp/schema/entities/weapons/cw_stunstick/shared.lua:286Called 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
No documentation available.
Arguments
player
Called from
sh_ration:OnUsesh_ration_high:OnUsesh_ration_highest:OnUsesh_ration_medium:OnUsesh_ration_minimal:OnUsesh_ration_std:OnUse
Call sites
- gamemodes/cwhl2rp/schema/items/sh_ration.lua:32 shared
- gamemodes/cwhl2rp/schema/items/sh_ration_high.lua:33 shared
- gamemodes/cwhl2rp/schema/items/sh_ration_highest.lua:34 shared
- gamemodes/cwhl2rp/schema/items/sh_ration_medium.lua:32 shared
- gamemodes/cwhl2rp/schema/items/sh_ration_minimal.lua:31 shared
- gamemodes/cwhl2rp/schema/items/sh_ration_std.lua:32 shared
Defined in
- gamemodes/cwhl2rp/schema/commands/sh_charheal.lua
- gamemodes/cwhl2rp/schema/items/sh_bandage.lua
- gamemodes/cwhl2rp/schema/items/sh_health_kit.lua
- gamemodes/cwhl2rp/schema/items/sh_health_vial.lua
- gamemodes/cwhl2rp/schema/entities/entities/cw_breach/init.lua
- gamemodes/cwhl2rp/schema/entities/weapons/cw_stunstick/shared.lua
- gamemodes/cwhl2rp/schema/items/sh_breach.lua
- gamemodes/cwhl2rp/schema/items/sh_ration.lua
- gamemodes/cwhl2rp/schema/items/sh_ration_high.lua
- gamemodes/cwhl2rp/schema/items/sh_ration_highest.lua
- gamemodes/cwhl2rp/schema/items/sh_ration_medium.lua
- gamemodes/cwhl2rp/schema/items/sh_ration_minimal.lua
- gamemodes/cwhl2rp/schema/items/sh_ration_std.lua
- gamemodes/cwhl2rp/schema/sv_schema.lua