Source2Toolkit
SchemaEntityClasses

CCSPlayerController

CCSPlayerController

Inheritance: CBasePlayerController

Fields

  • m_pInGameMoneyServices CCSPlayerController_InGameMoneyServices*
  • m_pInventoryServices CCSPlayerController_InventoryServices*
  • m_pActionTrackingServices CCSPlayerController_ActionTrackingServices*
  • m_pDamageServices CCSPlayerController_DamageServices*
  • m_iPing uint32_t
  • m_bHasCommunicationAbuseMute bool
  • m_uiCommunicationMuteFlags uint32_t
  • m_szCrosshairCodes CUtlSymbolLarge
  • m_iPendingTeamNum uint8_t
  • m_flForceTeamTime float
  • m_iCompTeammateColor int32_t
  • m_bEverPlayedOnTeam bool
  • m_bAttemptedToGetColor bool
  • m_iTeammatePreferredColor int32_t
  • m_bTeamChanged bool
  • m_bInSwitchTeam bool
  • m_bHasSeenJoinGame bool
  • m_bJustBecameSpectator bool
  • m_bSwitchTeamsOnNextRoundReset bool
  • m_bRemoveAllItemsOnNextRoundReset bool
  • m_flLastJoinTeamTime float
  • m_szClan CUtlSymbolLarge
  • m_iCoachingTeam int32_t
  • m_nPlayerDominated uint64_t
  • m_nPlayerDominatingMe uint64_t
  • m_iCompetitiveRanking int32_t
  • m_iCompetitiveWins int32_t
  • m_iCompetitiveRankType int8_t
  • m_iCompetitiveRankingPredicted_Win int32_t
  • m_iCompetitiveRankingPredicted_Loss int32_t
  • m_iCompetitiveRankingPredicted_Tie int32_t
  • m_nEndMatchNextMapVote int32_t
  • m_unActiveQuestId uint16_t
  • m_rtActiveMissionPeriod uint32_t
  • m_nQuestProgressReason QuestProgress__Reason
  • m_unPlayerTvControlFlags uint32_t
  • m_iDraftIndex int32_t
  • m_msQueuedModeDisconnectionTimestamp uint32_t
  • m_uiAbandonRecordedReason uint32_t
  • m_eNetworkDisconnectionReason uint32_t
  • m_bCannotBeKicked bool
  • m_bEverFullyConnected bool
  • m_bAbandonAllowsSurrender bool
  • m_bAbandonOffersInstantSurrender bool
  • m_bDisconnection1MinWarningPrinted bool
  • m_bScoreReported bool
  • m_nDisconnectionTick int32_t
  • m_bControllingBot bool
  • m_bHasControlledBotThisRound bool
  • m_bHasBeenControlledByPlayerThisRound bool
  • m_nBotsControlledThisRound int32_t
  • m_bCanControlObservedBot bool
  • m_hPlayerPawn CHandle<CCSPlayerPawn>
  • m_hObserverPawn CHandle<CCSObserverPawn>
  • m_DesiredObserverMode int32_t
  • m_hDesiredObserverTarget CEntityHandle
  • m_bPawnIsAlive bool
  • m_iPawnHealth uint32_t
  • m_iPawnArmor int32_t
  • m_bPawnHasDefuser bool
  • m_bPawnHasHelmet bool
  • m_nPawnCharacterDefIndex uint16_t
  • m_iPawnLifetimeStart int32_t
  • m_iPawnLifetimeEnd int32_t
  • m_iPawnBotDifficulty int32_t
  • m_hOriginalControllerOfCurrentPawn CHandle<CCSPlayerController>
  • m_iScore int32_t
  • m_iRoundScore int32_t
  • m_iRoundsWon int32_t
  • m_recentKillQueue uint8_t
  • m_nFirstKill uint8_t
  • m_nKillCount uint8_t
  • m_bMvpNoMusic bool
  • m_eMvpReason int32_t
  • m_iMusicKitID int32_t
  • m_iMusicKitMVPs int32_t
  • m_iMVPs int32_t
  • m_nUpdateCounter int32_t
  • m_flSmoothedPing float
  • m_lastHeldVoteTimer IntervalTimer
  • m_bShowHints bool
  • m_iNextTimeCheck int32_t
  • m_bJustDidTeamKill bool
  • m_bPunishForTeamKill bool
  • m_bGaveTeamDamageWarning bool
  • m_bGaveTeamDamageWarningThisRound bool
  • m_dblLastReceivedPacketPlatFloatTime double
  • m_LastTeamDamageWarningTime float
  • m_LastTimePlayerWasDisconnectedForPawnsRemove float
  • m_nSuspiciousHitCount uint32_t
  • m_nNonSuspiciousHitStreak uint32_t
  • m_bFireBulletsSeedSynchronized bool

Methods

CCSPlayerController* FromPawn(pPawn)

Get controller from pawn.

Parameters

CCSPlayerController* FromSlot(iSlot)

Get controller from slot.

Parameters
  • iSlot int

CCSPlayerController* FromSlot(slot)

Get controller from slot.

Parameters
  • slot CPlayerSlot

CCSPlayerController* FromUserId(iUserId)

Get controller from user id.

Parameters
  • iUserId int

CCSPlayerController* FromUserId(userId)

Get controller from user id.

Parameters
  • userId CPlayerUserId

CCSPlayerController* FromSteamId(uSteamId)

Get controller from steam id.

Parameters
  • uSteamId uint64

CCSPlayerController* FromSteamId(steamId)

Get controller from steam id.

Parameters
  • steamId CSteamID

PrintToCenterHtml(pszMessage, iDuration, bMenu)

Print to center in HTML.

Parameters
  • pszMessage const char*
  • iDuration int
  • bMenu bool

TakeDamage(pAttacker, iDamage, bitsDamageType)

Take damage from player

Parameters

Respawn()

Respawn player.

SwitchTeam(nTeam)

Switch team without killing.

Parameters
  • nTeam int

ChangeTeam(nTeam)

Change team like jointeam.

Parameters
  • nTeam int

CCSPlayerPawn* GetPlayerPawn()

Get player pawn.

CCSObserverPawn* GetObserverPawn()

Get observer pawn.

CCSPlayerController* New(className)

Parameters
  • className const char*

CCSPlayerController* FromIndex(iIndex)

Parameters
  • iIndex int

CCSPlayerController* FromIndex(index)

Parameters
  • index CEntityIndex

CHandle<CCSPlayerController> GetHandle()

On this page