 |
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\callbacks_shared;
4 #using scripts\shared\clientfield_shared;
5 #using scripts\shared\duplicaterender_mgr;
6 #using scripts\shared\filter_shared;
7 #using scripts\shared\visionset_mgr_shared;
8 #using scripts\shared\util_shared;
10 #using scripts\shared\abilities\_ability_player;
11 #using scripts\shared\abilities\_ability_power;
12 #using scripts\shared\abilities\_ability_util;
14 #insert scripts\shared\duplicaterender.gsh;
15 #insert scripts\shared\shared.gsh;
16 #insert scripts\shared\version.gsh;
17 #insert scripts\shared\abilities\gadgets\_gadget_vision_pulse.gsh;
19 #using scripts\shared\system_shared;
21 #namespace gadget_vision_pulse;
27 if ( !SessionModeIsCampaignGame() )
41 if(
self == GetLocalPlayer( localClientNum ) )
43 self.vision_pulse_owner = undefined;
46 self gadgetpulseresetreveal();
55 self endon(
"entityshutdown" );
59 if(
self IsEMPJammed() )
62 self notify (
"emp_jammed_vp" );
71 self endon (
"startVPShader" );
72 self endon(
"death" );
73 self endon(
"entityshutdown" );
74 self notify(
"disableVPShader" );
75 self endon(
"disableVPShader" );
84 self notify (
"watchworldpulseend" );
85 self endon (
"watchworldpulseend" );
92 self endon(
"entityshutdown" );
93 self endon(
"death" );
95 self notify(
"startVPShader" );
113 elapsedTime = ( GetServerTime( localClientNum ) - starttime ) * 1.0;
127 pulseRadius = getvisionpulseradius( localClientNum );
128 pulseMaxRadius = getvisionpulsemaxradius( localClientNum );
142 if( isDefined( owner ) && ( owner isPlayer() ) && isAlive( owner ) )
152 self endon(
"entityshutdown" );
153 self endon(
"death" );
154 self endon(
"finished_local_pulse" );
155 self notify (
"watch_vision_pulse_owner_death" );
156 self endon (
"watch_vision_pulse_owner_death" );
158 owner =
self.vision_pulse_owner;
164 self notify (
"vision_pulse_owner_death" );
167 self.vision_pulse_owner = undefined;
172 self endon(
"entityshutdown" );
173 self endon(
"death" );
174 self endon (
"vision_pulse_owner_death" );
176 self notify(
"startVPShader" );
178 self notify(
"startLocalPulse" );
179 self endon(
"startLocalPulse" );
183 origin = getrevealpulseorigin( localClientNum );
207 self notify (
"finished_local_pulse" );
208 self.vision_pulse_owner = undefined;
215 if(
self == GetLocalPlayer( localClientNum ) )
217 if ( IsDemoPlaying() && (bnewent || oldval == newval ) )
229 self endon(
"entityshutdown" );
230 self endon(
"death" );
232 self notify(
"startEnemyPulse" );
233 self endon(
"startEnemyPulse" );
247 currTime = GetServerTime( localClientNum );
262 if( on_off && (
self == GetLocalPlayer( localClientNum ) ) )
274 self notify(
"gadget_visionpulse_changed" );
276 player = GetLocalPlayer( localClientNum );
278 if( !isDefined(
self.visionPulseRevealSelf ) && player ==
self )
280 self.visionPulseRevealSelf =
false;
283 if( !isDefined(
self.visionPulseReveal ) )
285 self.visionPulseReveal =
false;
290 owner =
self gadgetpulsegetowner( localClientNum );
291 if ( (
self.visionPulseRevealSelf != bReveal ) || ( isDefined(
self.vision_pulse_owner ) && isDefined( owner ) && (
self.vision_pulse_owner != owner ) ) )
293 self.vision_pulse_owner = owner;
294 self.visionPulseRevealSelf = bReveal;
300 if (
self.visionPulseReveal != bReveal )
302 self.visionPulseReveal = bReveal;
#define VISION_PULSE_CONSTID_IRIS_FADE
class AnimationAdjustmentInfoZ startTime
#define VISION_PULSE_DURATION
#define VISION_PULSE_VISIONSET_ALIAS
function vision_pulse_owner_valid(owner)
function enable_filter_vision_pulse(localClientNum, filterid)
function do_reveal_enemy_pulse(localClientNum)
#define CF_CALLBACK_ZERO_ON_NEW_ENT
function disable_filter_vision_pulse(localClientNum, filterid)
function watch_emped(localClientNum)
#define REVEAL_MATERIAL_SELF
#define DR_TYPE_OFFSCREEN
#define FILTER_INDEX_VISION_PULSE
#define VISION_PULSE_CONSTID_VIEWMODEL_ORIGIN_Y
#define VISION_PULSE_ENT_SCRIPT_VECTOR
#define VISION_PULSE_FADE_RAMP_OUT
function register_visionset_info(name, version, lerp_step_count, visionset_from, visionset_to, visionset_type=VSMGR_VISIONSET_TYPE_NAKED)
function gadget_visionpulse_reveal(localClientNum, bReveal)
function set_reveal_self(localClientNum, on_off)
function set_filter_vision_pulse_constant(localClientNum, filterid, constid, value)
function set_reveal_enemy(localClientNum, on_off)
#define VISION_PULSE_CONSTID_MAX_RADIUS
#define VISION_PULSE_CONSTID_HIGHLIGHT_ENEMIES
function waittill_any(str_notify1, str_notify2, str_notify3, str_notify4, str_notify5)
#define VISION_PULSE_CONSTID_VIEWMODEL_PULSE_WIDTH
function on_localplayer_spawned(localClientNum)
#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
function init_filter_vision_pulse(localClientNum)
function watch_world_pulse_end(localClientNum)
function do_vision_world_pulse(localClientNum)
#define VISION_PULSE_CONSTID_VIEWMODEL_PULSE_POSITION
#define VISION_PULSE_CONSTID_VIEWMODEL_ORIGIN_X
#define VISION_PULSE_VISIONSET_STEPS
function disableShader(localClientNum, duration)
function set_dr_filter_offscreen(name, priority, require_flags, refuse_flags, drtype1, drval1, drcull1, drtype2, drval2, drcull2, drtype3, drval3, drcull3)
#define VISION_PULSE_CONSTID_EDGE_WIDTH
#define VISION_PULSE_RAMP_OUT_TIME
#define VISION_PULSE_CONSTID_RADIUS
function vision_pulse_changed(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
function update_dr_flag(localClientNum, toset, setto=true)
#define VISION_PULSE_CONSTID_PULSE_WIDTH
#define VISION_PULSE_CONSTID_VIEWMODEL_EDGE_WIDTH
#define VISION_PULSE_VISIONSET
#define VISION_PULSE_CONSTID_VIEWMODEL_IS_PULSED
#define REVEAL_MATERIAL_ENEMY
#define WAIT_CLIENT_FRAME
#define VISION_PULSE_FADE_RAMP_IN
#define VISION_PULSE_REVEAL_TIME
function do_vision_local_pulse(localClientNum)
function watch_vision_pulse_owner_death(localClientNum)