WPlayerResource - lnx00/Lmaobox-Library GitHub Wiki

lnxLib.TF2.WPlayerResource

[!WARNING]
Deprecated! This wrapper has been replaced with lnxLib.TF2.PlayerResource since v1.0 and is no longer available!

Wrapper for the PlayerResource entity. Inherits from WEntity.

Functions

  • .FromEntity(entity) Creates a WPlayerResource from a given native Entity.
  • .Get() Returns the current player resource entity or nil if it doesn't exist.

Methods

DT_PlayerResource

  • :GetPing(index) Returns the ping of the given player.
  • :GetScore(index) Returns the score of the given player.
  • :GetDeaths(index) Returns the deaths of the given player.
  • :GetConnected(index) Returns if the given player is connected.
  • :GetTeam(index) Returns the team number of the given player.
  • :GetAlive(index) Returns if the given player is alive.
  • :GetHealth(index) Returns the health of the given player.
  • :GetAccountID(index) Returns the account ID of the given player.
  • :GetValid(index) Returns if the given player is valid.
  • :GetUserID(index) Returns the user ID of the given player.

DT_TFPlayerResource

  • :GetTotalScore(index) Returns the total score of the given player.
  • :GetMaxHealth(index) Returns the max health of the given player.
  • :GetMaxBuffedHealth(index) Returns the max buffed health of the given player.
  • :GetPlayerClass(index) Returns the class number of the given player.
  • :GetArenaSpectator(index).
  • :GetActiveDominations(index) Returns the amount of active dominations of the given player.
  • :GetNextRespawnTime(index) Returns when the given player will respawn.
  • :GetChargeLevel(index).
  • :GetDamage(index) Returns the damage amount of the given player.
  • :GetDamageAssist(index) Returns the damage assist amount of the given player.
  • :GetDamageBoss(index) Returns the boss damage of the given player.
  • :GetHealing(index) Returns the healing of the given player.
  • :GetHealingAssist(index) Returns the healing assist amount of the given player.
  • :GetDamageBlocked(index) Returns the blocked damage of the given player.
  • :GetCurrencyCollected(index) Returns the amount of currency collected of the given player.
  • :GetBonusPoints(index).
  • :GetPlayerLevel(index) Returns the level of the given player.
  • :GetStreaks(index).
  • :GetUpgradeRefundCredits(index).
  • :GetBuybackCredits(index).
  • :GetPartyLeaderRedTeamIndex(index).
  • :GetPartyLeaderBlueTeamIndex(index).
  • :GetEventTeamStatus(index).
  • :GetPlayerClassWhenKilled(index).
  • :GetConnectionState(index) Returns the connection state of the given player.
  • :GetConnectTime(index) Returns the time the given player has been connected.