# CDOTA_PlayerResource

extends CBaseEntity

Function Description Client
void AddAegisPickup(iPlayerID)
void AddClaimedFarm(iPlayerID, flFarmValue, bEarnedValue)
void AddGoldSpentOnSupport(iPlayerID, iCost)
void AddRunePickup(iPlayerID)
bool AreUnitsSharedWithPlayerID(nUnitOwnerPlayerID, nOtherPlayerID)
bool CanRepick(iPlayerID)
void ClearKillsMatrix(iPlayerID)
void ClearLastHitMultikill(iPlayerID)
void ClearLastHitStreak(iPlayerID)
void ClearRawPlayerDamageMatrix(iPlayerID)
void ClearStreak(iPlayerID)
int GetAegisPickups(iPlayerID)
int GetAssists(iPlayerID)
unsigned GetBroadcasterChannel(iPlayerID)
unsigned GetBroadcasterChannelSlot(iPlayerID)
int GetClaimedDenies(iPlayerID)
float GetClaimedFarm(iPlayerID, bOnlyEarned)
int GetClaimedMisses(iPlayerID)
unknown GetConnectionState(iPlayerID)
int GetCreepDamageTaken(iPlayerID, bTotal)
float GetCustomBuybackCooldown(iPlayerID)
int GetCustomBuybackCost(iPlayerID)
int GetCustomTeamAssignment(iPlayerID) Get the current custom team assignment for this player.
int GetDamageDoneToHero(iPlayerID, iVictimID)
int GetDeaths(iPlayerID)
int GetDenies(iPlayerID)
unsigned GetEventPointsForPlayerID(nPlayerID)
unsigned GetEventPremiumPoints(nPlayerID)
unknown GetEventRanks(nPlayerID)
int GetGold(iPlayerID)
int GetGoldLostToDeath(iPlayerID)
float GetGoldPerMin(iPlayerID)
int GetGoldSpentOnBuybacks(iPlayerID)
int GetGoldSpentOnConsumables(iPlayerID)
int GetGoldSpentOnItems(iPlayerID)
int GetGoldSpentOnSupport(iPlayerID)
float GetHealing(iPlayerID)
int GetHeroDamageTaken(iPlayerID, bTotal)
int GetKills(iPlayerID)
int GetKillsDoneToHero(iPlayerID, iVictimID)
int GetLastHitMultikill(iPlayerID)
int GetLastHitStreak(iPlayerID)
int GetLastHits(iPlayerID)
int GetLevel(iPlayerID)
int GetMisses(iPlayerID)
int GetNearbyCreepDeaths(iPlayerID)
int GetNetWorth(iPlayerID)
handle GetNthCourierForTeam(nCourierIndex, nTeamNumber)
int GetNthPlayerIDOnTeam(iTeamNumber, iNthPlayer)
int GetNumConsumablesPurchased(iPlayerID)
int GetNumCouriersForTeam(nTeamNumber)
int GetNumItemsPurchased(iPlayerID)
uint64 GetPartyID(iPlayerID)
handle GetPlayer(iPlayerID)
int GetPlayerCount() Includes spectators and players not assigned to a team
int GetPlayerCountForTeam(iTeam)
bool GetPlayerLoadedCompletely(iPlayerID)
string GetPlayerName(iPlayerID)
int GetRawPlayerDamage(iPlayerID)
int GetReliableGold(iPlayerID)
int GetRespawnSeconds(iPlayerID)
int GetRoshanKills(iPlayerID)
int GetRunePickups(iPlayerID)
handle GetSelectedHeroEntity(iPlayerID)
int GetSelectedHeroID(iPlayerID)
string GetSelectedHeroName(iPlayerID)
unsigned GetSteamAccountID(iPlayerID)
uint64 GetSteamID(iPlayerID) Get the 64 bit steam ID for a given player.
int GetStreak(iPlayerID)
float GetStuns(iPlayerID)
int GetTeam(iPlayerID)
int GetTeamKills(iTeam)
int GetTeamPlayerCount() Players on a valid team (radiant, dire, or custom*) who haven't abandoned the game
float GetTimeOfLastConsumablePurchase(iPlayerID)
float GetTimeOfLastDeath(iPlayerID)
float GetTimeOfLastItemPurchase(iPlayerID)
int GetTotalEarnedGold(iPlayerID)
int GetTotalEarnedXP(iPlayerID)
int GetTotalGoldSpent(iPlayerID)
int GetTowerDamageTaken(iPlayerID, bTotal)
int GetTowerKills(iPlayerID)
int GetUnitShareMaskForPlayer(nPlayerID, nOtherPlayerID)
int GetUnreliableGold(iPlayerID)
float GetXPPerMin(iPlayerID)
bool HasCustomGameTicketForPlayerID(iPlayerID) Does this player have a custom game ticket for this game?
bool HasRandomed(iPlayerID)
bool HasSelectedHero(iPlayerID)
bool HaveAllPlayersJoined()
void IncrementAssists(iPlayerID, iVictimID)
void IncrementClaimedDenies(iPlayerID)
void IncrementClaimedMisses(iPlayerID)
void IncrementDeaths(iPlayerID, iKillerID)
void IncrementDenies(iPlayerID)
void IncrementKills(iPlayerID, iVictimID)
void IncrementLastHitMultikill(iPlayerID)
void IncrementLastHitStreak(iPlayerID)
void IncrementLastHits(iPlayerID)
void IncrementMisses(iPlayerID)
void IncrementNearbyCreepDeaths(iPlayerID)
void IncrementStreak(iPlayerID)
void IncrementTotalEarnedXP(iPlayerID, iXP, nReason)
bool IsBroadcaster(iPlayerID)
bool IsDisableHelpSetForPlayerID(nPlayerID, nOtherPlayerID)
bool IsFakeClient(iPlayerID)
bool IsHeroSelected(pHeroname)
bool IsHeroSharedWithPlayerID(nUnitOwnerPlayerID, nOtherPlayerID)
bool IsValidPlayer(iPlayerID)
bool IsValidPlayerID(iPlayerID)
bool IsValidTeamPlayer(iPlayerID)
bool IsValidTeamPlayerID(iPlayerID)
int ModifyGold(iPlayerID, iGoldChange, bReliable, nReason)
int NumPlayers()
int NumTeamPlayers()
void RecordConsumableAbilityChargeChange(iPlayerID, item_definition_index, nChargeIncrementOrDecrement) Increment or decrement consumable charges (nPlayerID, item_definition_index, nChargeIncrementOrDecrement)
handle ReplaceHeroWith(iPlayerID, pszHeroClass, nGold, nXP) (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
void ResetBuybackCostTime(nPlayerID)
void ResetTotalEarnedGold(iPlayerID)
void SetBuybackCooldownTime(nPlayerID, flBuybackCooldown)
void SetBuybackGoldLimitTime(nPlayerID, flBuybackCooldown)
void SetCameraTarget(nPlayerID, hTarget) (playerID, entity) - force the given player's camera to follow the given entity
void SetCanRepick(iPlayerID, bCanRepick)
void SetCustomBuybackCooldown(iPlayerID, flCooldownTime) Set the buyback cooldown for this player.
void SetCustomBuybackCost(iPlayerID, iGoldCost) Set the buyback cost for this player.
void SetCustomPlayerColor(iPlayerID, r, g, b) Set custom color for player (minimap, scoreboard, etc)
void SetCustomTeamAssignment(iPlayerID, iTeamAssignment) Set custom team assignment for this player.
void SetGold(iPlayerID, iGold, bReliable)
void SetHasRandomed(iPlayerID)
void SetLastBuybackTime(iPlayerID, iLastBuybackTime)
void SetOverrideSelectionEntity(nPlayerID, hEntity) Set the forced selection entity for a player.
void SetUnitShareMaskForPlayer(nPlayerID, nOtherPlayerID, nFlag, bState)
void SpendGold(iPlayerID, iCost, iReason)
void UpdateTeamSlot(iPlayerID, iTeamNumber, desiredSlot)
int WhoSelectedHero(pHeroFilename)