Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
player_shared.csc
Go to the documentation of this file.
1
#using scripts\shared\clientfield_shared;
2
#using scripts\shared\system_shared;
3
4
#insert scripts\shared\shared.gsh;
5
#insert scripts\shared\version.gsh;
6
7
#namespace player;
8
9
REGISTER_SYSTEM
(
"player"
, &
__init__
, undefined )
10
11
function
__init__
()
12
{
13
clientfield::register
(
"world"
,
"gameplay_started"
,
VERSION_TU4
, 1,
"int"
, &
gameplay_started_callback
, !
CF_HOST_ONLY
,
CF_CALLBACK_ZERO_ON_NEW_ENT
);
14
}
15
16
function
gameplay_started_callback
(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
17
{
18
SetDvar(
"cg_isGameplayActive"
, newVal);
19
}
CF_CALLBACK_ZERO_ON_NEW_ENT
#define CF_CALLBACK_ZERO_ON_NEW_ENT
Definition:
version.gsh:103
VERSION_TU4
#define VERSION_TU4
Definition:
version.gsh:45
__init__
function __init__()
Definition:
player_shared.csc:11
CF_HOST_ONLY
#define CF_HOST_ONLY
Definition:
version.gsh:102
REGISTER_SYSTEM
#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition:
shared.gsh:204
gameplay_started_callback
function gameplay_started_callback(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition:
player_shared.csc:16
register
function register()
Definition:
_ai_tank.gsc:126
scripts
shared
player_shared.csc
Generated by
1.8.17