cs2_player_pawn

This type represents a C_CSPlayerPawn class.

circle-info

This type inherits base_entity type. All of its base methods and fields are also available in this type.

should_draw๏ปฟ

Method

Returns true if the game will draw this player on screen.

Arguments

None.

Returns

Type

Description

bool

true if will.

Example

if player:should_draw() then
    -- ...
end

is_left_handed๏ปฟ

Method

Returns true if left-hand mode is enabled.

Arguments

None.

Returns

Type

Description

bool

true if left-handed.

Example


get_abs_origin๏ปฟ

Method

Returns the absolute origin (the one that is used for rendering).

Arguments

None.

Returns

Type

Description

Origin.

Example


get_abs_angles๏ปฟ

Method

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๏ปฟ

Method

Sets the new absolute origin.

Arguments

Name

Type

Description

vec

New origin.

Returns

Nothing.

Example


set_abs_angles๏ปฟ

Method

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๏ปฟ

Method

Returns true if the player is alive.

Arguments

None.

Returns

Type

Description

bool

true if alive.

Example


is_enemy๏ปฟ

Method

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๏ปฟ

Method

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๏ปฟ

Method

Returns the active weapon.

Arguments

None.

Returns

Type

Description

Weapon instance.

Example


get_name๏ปฟ

Method

Returns the sanitized player name.

Arguments

None.

Returns

Type

Description

string

Player's name.

Example


get_view_offset๏ปฟ

Method

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๏ปฟ

Method

Returns the player's eye position.

Arguments

None.

Returns

Type

Description

Eye position.

Example

Last updated