Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
_satchel_charge.csc
Go to the documentation of this file.
1
#using scripts\codescripts\struct;
2
3
#using scripts\shared\callbacks_shared;
4
#using scripts\shared\system_shared;
5
#using scripts\shared\util_shared;
6
#using scripts\shared\weapons\_weaponobjects;
7
8
#insert scripts\shared\shared.gsh;
9
#insert scripts\shared\version.gsh;
10
11
#precache( "client_fx", "weapon/fx_c4_light_orng" );
12
#precache( "client_fx", "weapon/fx_c4_light_blue" );
13
14
#namespace satchel_charge;
15
16
function
init_shared
( localClientNum )
17
{
18
level._effect[
"satchel_charge_enemy_light"
] =
"weapon/fx_c4_light_orng"
;
19
level._effect[
"satchel_charge_friendly_light"
] =
"weapon/fx_c4_light_blue"
;
20
21
callback::add_weapon_type
(
"satchel_charge"
, &
satchel_spawned
);
22
}
23
24
function
satchel_spawned
( localClientNum )
// self == the grenade
25
{
26
self
endon(
"entityshutdown"
);
27
28
if
(
self
isGrenadeDud() )
29
return
;
30
31
self
.equipmentFriendFX = level._effect[
"satchel_charge_friendly_light"
];
32
self
.equipmentEnemyFX = level._effect[
"satchel_charge_enemy_light"
];
33
self
.equipmentTagFX =
"tag_origin"
;
34
35
self
thread
weaponobjects::equipmentTeamObject
( localClientNum );
36
}
satchel_spawned
function satchel_spawned(localClientNum)
Definition:
_satchel_charge.csc:24
add_weapon_type
function add_weapon_type(weapontype, callback)
Definition:
callbacks_shared.csc:780
equipmentTeamObject
function equipmentTeamObject(localClientNum)
Definition:
_weaponobjects.csc:233
init_shared
function init_shared(localClientNum)
Definition:
_satchel_charge.csc:16
scripts
shared
weapons
_satchel_charge.csc
Generated by
1.8.17