Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
_zm_powerup_nuke.csc
Go to the documentation of this file.
1
#using scripts\codescripts\struct;
2
3
#using scripts\shared\clientfield_shared;
4
#using scripts\shared\system_shared;
5
6
#insert scripts\shared\shared.gsh;
7
#insert scripts\shared\version.gsh;
8
9
#using scripts\shared\ai\zombie_death;
10
11
#using scripts\zm\_zm_powerups;
12
13
#insert scripts\zm\_zm_utility.gsh;
14
15
#namespace zm_powerup_nuke;
16
17
REGISTER_SYSTEM
(
"zm_powerup_nuke"
, &
__init__
, undefined )
18
19
function
__init__
()
20
{
21
zm_powerups::include_zombie_powerup
(
"nuke"
);
22
zm_powerups::add_zombie_powerup
(
"nuke"
);
23
24
clientfield::register
(
"actor"
,
"zm_nuked"
,
VERSION_TU1
, 1,
"counter"
, &
zombie_nuked
, !
CF_HOST_ONLY
, !
CF_CALLBACK_ZERO_ON_NEW_ENT
);
25
clientfield::register
(
"vehicle"
,
"zm_nuked"
,
VERSION_TU1
, 1,
"counter"
, &
zombie_nuked
, !
CF_HOST_ONLY
, !
CF_CALLBACK_ZERO_ON_NEW_ENT
);
26
}
27
28
function
zombie_nuked
( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
29
{
30
self
zombie_death::flame_death_fx
( localClientNum );
31
}
32
CF_CALLBACK_ZERO_ON_NEW_ENT
#define CF_CALLBACK_ZERO_ON_NEW_ENT
Definition:
version.gsh:103
__init__
function __init__()
Definition:
_zm_powerup_nuke.csc:19
VERSION_TU1
#define VERSION_TU1
Definition:
version.gsh:39
CF_HOST_ONLY
#define CF_HOST_ONLY
Definition:
version.gsh:102
include_zombie_powerup
function include_zombie_powerup(powerup_name)
Definition:
_zm_powerups.csc:81
zombie_nuked
function zombie_nuked(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition:
_zm_powerup_nuke.csc:28
REGISTER_SYSTEM
#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition:
shared.gsh:204
flame_death_fx
function flame_death_fx(localClientNum)
Definition:
zombie_death.csc:35
register
function register()
Definition:
_ai_tank.gsc:126
add_zombie_powerup
function add_zombie_powerup(powerup_name, client_field_name, clientfield_version=VERSION_SHIP)
Definition:
_zm_powerups.csc:40
scripts
zm
_zm_powerup_nuke.csc
Generated by
1.8.17