cs2_player_pawn
This type represents a C_CSPlayerPawn
class.
This type inherits base_entity
type. All of its base methods and fields are also available in this type.
should_draw
Returns true
if the game will draw this player on screen.
Arguments
None.
Returns
Type
Description
bool
true
if will.
Example
is_left_handed
Returns true
if left-hand mode is enabled.
Arguments
None.
Returns
Type
Description
bool
true
if left-handed.
Example
get_abs_origin
Returns the absolute origin (the one that is used for rendering).
Arguments
None.
Returns
Type
Description
Origin.
Example
get_abs_angles
Returns the absolute angles (the one that is used for rendering).
Arguments
None.
Returns
Type
Description
Angles.
Example
get_abs_velocity
Method
Returns the absolute velocity.
Arguments
None.
Returns
Type
Description
Velocity.
Example
set_abs_origin
Sets the new absolute origin.
Arguments
Name
Type
Description
vec
New origin.
Returns
Nothing.
Example
set_abs_angles
Sets new absolute angles.
Arguments
Name
Type
Description
ang
New angles.
Returns
Nothing.
Example
set_abs_velocity
Method
Sets new absolute velocity.
Arguments
Name
Type
Description
vel
New velocity.
Returns
Nothing.
Example
is_alive
Returns true
if the player is alive.
Arguments
None.
Returns
Type
Description
bool
true
if alive.
Example
is_enemy
Returns true
if this player is an enemy to the local player.
Arguments
None.
Returns
Type
Description
bool
true
if an enemy.
Example
is_enemy_to
Returns whether this player is an enemy to another entity.
Arguments
Name
Type
Description
ent
Other entity.
Returns
Type
Description
bool
true
if an enemy.
Example
get_active_weapon
Returns the active weapon.
Arguments
None.
Returns
Type
Description
Weapon instance.
Example
get_name
Returns the sanitized player name.
Arguments
None.
Returns
Type
Description
string
Player's name.
Example
get_view_offset
Returns the player's view offset (eye location relative to the player's origin).
Arguments
None.
Returns
Type
Description
View offset.
Example
get_eye_pos
Returns the player's eye position.
Arguments
None.
Returns
Type
Description
Eye position.
Example
Last updated