CSPlayerPawn
Exported class in cs_script/point_script.
- Extends
BaseModelEntity→Entity; inherited members are on those pages. - Returned for
player, which the game creates itself (no Hammer entry):FindEntitiesByClass("player").
CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2 · engine class CCSPlayerPawn
Members
GetPlayerController
GetPlayerController(): CSPlayerController | undefinedGets the controller currently controlling this player pawn.
GetOriginalPlayerController
GetOriginalPlayerController(): CSPlayerControllerGets the controller that this player pawn was originally spawned for.
Reset
Reset(): voidReset the player to full health and ammo. If dead they will be alive with the default weapon loadout. Cancels any bot takeover.
IsInputPressed
IsInputPressed(inputs: CSInputs): booleanReturns: true if specified inputs are pressed at the end of the current tick.
WasInputJustPressed
WasInputJustPressed(inputs: CSInputs): booleanReturns: true if specified inputs went from released to pressed at some point during the current tick.
WasInputJustReleased
WasInputJustReleased(inputs: CSInputs): booleanReturns: true if specified inputs went from pressed to released at some point during the current tick.
SetEyeAngles
SetEyeAngles(angle: QAngle): voidFindWeapon
FindWeapon(name: string): CSWeaponBase | undefinedSee also: Items.
FindWeaponBySlot
FindWeaponBySlot(slot: CSGearSlot): CSWeaponBase | undefinedGetActiveWeapon
GetActiveWeapon(): CSWeaponBase | undefinedGetC4
GetC4(): C4 | undefinedDestroyWeapon
DestroyWeapon(target: CSWeaponBase): voidDestroyWeapons
DestroyWeapons(): voidDropWeapon
DropWeapon(target: CSWeaponBase): voidSwitchToWeapon
SwitchToWeapon(target: CSWeaponBase): voidGiveNamedItem
GiveNamedItem(name: string, autoDeploy?: boolean): voidSee also: Items.
GetArmor
GetArmor(): numberSetArmor
SetArmor(value: number): voidHasHelmet
HasHelmet(): booleanSetHasHelmet
SetHasHelmet(hasHelmet: boolean): voidHasDefuser
HasDefuser(): booleanSetHasDefuser
SetHasDefuser(hasDefuser: boolean): voidGetDefuseTarget
GetDefuseTarget(): CSPlantedC4 | undefinedGetHostage
GetHostage(): CSHostage | undefinedThe hostage this player is picking up or carrying
IsDucking
IsDucking(): booleanIsDucked
IsDucked(): booleanIsScoped
IsScoped(): booleanIsNoclipping
IsNoclipping(): booleanIsBuyMenuOpen
IsBuyMenuOpen(): booleanGetCustomCamera
GetCustomCamera(): CustomPlayerCameraIsCrouching deprecated
IsCrouching(): booleanDeprecated: This method will be removed in a future update
IsCrouched deprecated
IsCrouched(): booleanDeprecated: This method will be removed in a future update