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_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

FromPawn(pPawn)

Get controller from pawn.

Parameters
  • pPawn CCSPlayerPawn*

FromSlot(iSlot)

Get controller from slot.

Parameters
  • iSlot int

FromSlot(slot)

Get controller from slot.

Parameters
  • slot CPlayerSlot

FromUserId(iUserId)

Get controller from user id.

Parameters
  • iUserId int

FromUserId(userId)

Get controller from user id.

Parameters
  • userId CPlayerUserId

FromSteamId(uSteamId)

Get controller from steam id.

Parameters
  • uSteamId uint64

FromSteamId(steamId)

Get controller from steam id.

Parameters
  • steamId CSteamID

PrintToConsole(pszMessage)

Print to console.

Parameters
  • pszMessage const char*

PrintToChat(pszMessage)

Print to chat.

Parameters
  • pszMessage const char*

PrintToCenter(pszMessage)

Print to center.

Parameters
  • pszMessage const char*

PrintToCenterAlert(pszMessage)

Print alert.

Parameters
  • pszMessage const char*

PrintToCenterHtml(pszMessage, iDuration)

Print to center in HTML.

Parameters
  • pszMessage const char*
  • iDuration int

Respawn()

Respawn player.

SwitchTeam(nTeam)

Switch team without killing.

Parameters
  • nTeam int

ChangeTeam(nTeam)

Change team like jointeam.

Parameters
  • nTeam int

IsBot()

Is bot.

Disconnect(eReason)

Disconnect player.

Parameters
  • eReason ENetworkDisconnectionReason

ExecuteClientCommand(pszCommand)

Execute client command.

Parameters
  • pszCommand const char*

ExecuteClientCommandFromServer(pszCommand)

Execute command from server.

Parameters
  • pszCommand const char*

GetPawn()

Get pawn.

GetPlayerPawn()

Get player pawn.

GetObserverPawn()

Get observer pawn.

GetPlayerIndex()

Get player index.

GetSlot()

Get slot.

GetPlayerSlot()

Get player slot.

GetUserID()

Get steamid.

GetPlayerUserID()

Get player userid.

GetSteamID()

Get steamid.

GetPlayerSteamID()

Get player steamid.

GetPlayerName()

Get player name.

GetIpAddress()

Get IP address.

ReplicateConVar(pszConVar, pszValue)

Replicate convar.

Parameters
  • pszConVar const char*
  • pszValue const char*

FireEventToClient(pEvent)

Fires gameEvent to client's legacy listener.

Parameters
  • pEvent IGameEvent*

FromIndex()

Parameters
  • index.Get()

On this page