 |
Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
|
Go to the documentation of this file. 1 #using scripts\codescripts\struct;
3 #using scripts\shared\clientfield_shared;
4 #using scripts\shared\system_shared;
5 #using scripts\shared\visionset_mgr_shared;
7 #insert scripts\shared\shared.gsh;
8 #insert scripts\shared\version.gsh;
10 #using scripts\zm\_zm_perks;
12 #insert scripts\zm\_zm_perks.gsh;
13 #insert scripts\zm\_zm_utility.gsh;
14 #insert scripts\zm\_zm_perk_widows_wine.gsh;
16 #using scripts\zm\_zm_powerup_ww_grenade;
18 #precache( "client_fx", WIDOWS_WINE_FX_FILE_MACHINE_LIGHT );
19 #precache( "client_fx", WIDOWS_WINE_FX_FILE_WRAP );
20 #precache( "client_fx", WIDOWS_WINE_1P_EXPLOSION );
22 #namespace zm_perk_widows_wine;
64 function widows_wine_wrap_cb( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
68 if ( IsDefined(
self ) && IsAlive(
self ) )
70 if ( !isdefined(
self.fx_widows_wine_wrap ) )
72 self.fx_widows_wine_wrap = PlayFxOnTag( localClientNum, level._effect[
WIDOWS_WINE_FX_WRAP],
self,
"j_spineupper" );
75 if( !isdefined(
self.sndWidowsWine ) )
77 self playsound( 0,
"wpn_wwgrenade_cocoon_imp" );
78 self.sndWidowsWine =
self playloopsound(
"wpn_wwgrenade_cocoon_lp", .1 );
84 if ( isdefined(
self.fx_widows_wine_wrap ) )
86 StopFX( localClientNum,
self.fx_widows_wine_wrap );
87 self.fx_widows_wine_wrap = undefined;
90 if( isdefined(
self.sndWidowsWine ) )
92 self playsound( 0,
"wpn_wwgrenade_cocoon_stop" );
93 self stoploopsound(
self.sndWidowsWine, .1 );
101 owner =
self GetOwner( localClientNum );
102 if ( IsDefined(owner) && owner == GetLocalPlayer(localClientNum) )
112 if ( !ViewmodelHasTag( localClientNum, tag ) )
115 if ( !ViewmodelHasTag( localClientNum, tag ) )
123 DeleteFx( localClientNum, fx_contact_explosion,
true );
function init_widows_wine()
#define WIDOWS_WINE_1P_EXPLOSION
#define WIDOWS_WINE_FX_FILE_MACHINE_LIGHT
function register_perk_clientfields(str_perk, func_clientfield_register, func_code_callback)
function register_perk_init_thread(str_perk, func_init_thread)
#define CF_CALLBACK_ZERO_ON_NEW_ENT
function widows_wine_code_callback_func()
#define WIDOWS_WINE_FX_MACHINE_LIGHT
#define PERK_CLIENTFIELD_WIDOWS_WINE
#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
function widows_wine_client_field_func()
#define CF_WIDOWS_WINE_WRAP
function widows_wine_wrap_cb(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
#define WIDOWS_WINE_FX_FILE_WRAP
#define PERK_WIDOWS_WINE
function widows_wine_1p_contact_explosion_play(localClientNum)
function widows_wine_1p_contact_explosion(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
#define WIDOWS_WINE_FX_WRAP
function register_perk_effects(str_perk, str_light_effect)