‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
player_shared.gsc File Reference

Go to the source code of this file.

Macros

#define LARGE_SEARCH_RADIUS   2048
 
#define PLAYER_HALF_HEIGHT   16
 
#define PLAYER_POS_SEARCH_RADIUS   100
 
#define PLAYER_RADIUS   15
 

Functions

function __init__ ()
 
function allow_stance_change (b_allow=true)
 
function fill_current_clip ()
 
function generate_weapon_data ()
 
function get_snapped_spot_origin (spot_position)
 
function get_weapondata (weapon)
 
function give_back_weapons (b_immediate=false)
 
function is_spawn_protected ()
 
function is_valid_weapon (weaponObject)
 
function last_valid_position ()
 
function on_player_spawned ()
 
function simple_respawn ()
 
function switch_to_primary_weapon (b_immediate=false)
 
function take_weapons ()
 
function weapondata_give (weapondata)
 

Macro Definition Documentation

◆ LARGE_SEARCH_RADIUS

#define LARGE_SEARCH_RADIUS   2048

Definition at line 18 of file player_shared.gsc.

◆ PLAYER_HALF_HEIGHT

#define PLAYER_HALF_HEIGHT   16

Definition at line 16 of file player_shared.gsc.

◆ PLAYER_POS_SEARCH_RADIUS

#define PLAYER_POS_SEARCH_RADIUS   100

Definition at line 17 of file player_shared.gsc.

◆ PLAYER_RADIUS

#define PLAYER_RADIUS   15

Definition at line 15 of file player_shared.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 22 of file player_shared.gsc.

References on_player_spawned(), on_spawned(), register(), and VERSION_TU4.

◆ allow_stance_change()

function allow_stance_change ( b_allow  = true)

Definition at line 402 of file player_shared.gsc.

◆ fill_current_clip()

function fill_current_clip ( )

Definition at line 345 of file player_shared.gsc.

Referenced by cSceneObject::_finish_player().

◆ generate_weapon_data()

function generate_weapon_data ( )

Definition at line 160 of file player_shared.gsc.

References ARRAY_ADD, DEFAULT, get_weapondata(), and IS_TRUE.

◆ get_snapped_spot_origin()

function get_snapped_spot_origin ( spot_position  )

Definition at line 381 of file player_shared.gsc.

References trace().

Referenced by on_player_spawned().

◆ get_weapondata()

function get_weapondata ( weapon  )

Definition at line 233 of file player_shared.gsc.

Referenced by generate_weapon_data(), and take_weapons().

◆ give_back_weapons()

function give_back_weapons ( b_immediate  = false)

Definition at line 203 of file player_shared.gsc.

References switch_to_primary_weapon(), and weapondata_give().

Referenced by cSceneObject::finish().

◆ is_spawn_protected()

◆ is_valid_weapon()

function is_valid_weapon ( weaponObject  )

Definition at line 359 of file player_shared.gsc.

Referenced by switch_to_primary_weapon().

◆ last_valid_position()

function last_valid_position ( )

◆ on_player_spawned()

function on_player_spawned ( )

Definition at line 29 of file player_shared.gsc.

References get(), get_snapped_spot_origin(), IS_TRUE, and last_valid_position().

Referenced by __init__().

◆ simple_respawn()

function simple_respawn ( )

Description:
"Function Name: simple_respawn()"
"Summary: Respawn a player at whatever the current best spawn point is using the gamemodes base spawn function. Most of the spawn logic is not included and this is mostly just a teleport using the spawn logic. The player entity is untouched, and no spawn callbacks are called." "CallOn: player"
"Example:e_player player::simple_respawn();"

Definition at line 376 of file player_shared.gsc.

◆ switch_to_primary_weapon()

function switch_to_primary_weapon ( b_immediate  = false)

Definition at line 330 of file player_shared.gsc.

References is_valid_weapon().

Referenced by cSceneObject::_prepare_player(), and give_back_weapons().

◆ take_weapons()

function take_weapons ( )

Definition at line 114 of file player_shared.gsc.

References ARRAY_ADD, DEFAULT, get_weapondata(), and IS_TRUE.

Referenced by cSceneObject::_prepare().

◆ weapondata_give()

function weapondata_give ( weapondata  )

Definition at line 291 of file player_shared.gsc.

References get_weapon_by_name().

Referenced by give_back_weapons(), and return_additionalprimaryweapon().