Module core.plugins.bodybags.sv_init

Bodybag Serverside Module

Module Overview

Functions

PLUGIN:OnTick(ply) Update player data and bodybag data.
PLUGIN:OnDamage(target, dmgInfo) Add damage data to a target.
PLUGIN:OnDeath(target, attacker, dmgInfo) Updates target with death damage data.
PLUGIN:OnSpawn(ply) Clear a player's bodybag data.
PLUGIN:GetBagData(ply) ConCommand callback, to send data about a player.

Functions

PLUGIN:OnTick(ply)
Update player data and bodybag data.

Parameters:

  • ply The player to update.
PLUGIN:OnDamage(target, dmgInfo)
Add damage data to a target.

Parameters:

  • target The targeted player.
  • dmgInfo The damage data to bring up.
PLUGIN:OnDeath(target, attacker, dmgInfo)
Updates target with death damage data.

Parameters:

  • target The targeted player.
  • attacker The attacker of the target.
  • dmgInfo The damage data to bring up.
PLUGIN:OnSpawn(ply)
Clear a player's bodybag data.

Parameters:

  • ply The player to clear.
PLUGIN:GetBagData(ply)
ConCommand callback, to send data about a player.

Parameters:

  • ply The player to get data for.