‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_zm_traps.gsc File Reference

Go to the source code of this file.

Functions

function __init__ ()
 
function __main__ ()
 
function _register_undefined_trap (str_trap)
 
function electroctute_death_fx ()
 
function electrocute_timeout ()
 
function get_trap_array (trap_type)
 
function init ()
 
function is_trap_registered (a_registered_traps)
 
function play_elec_vocals ()
 
function player_elec_damage ()
 
function player_fire_damage ()
 
function register_trap_basic_info (str_trap, func_activate, func_audio)
 
function register_trap_damage (str_trap, func_player_damage, func_damage)
 
function trap_activate_fire ()
 
function trap_activate_flipper ()
 
function trap_activate_rotating ()
 
function trap_audio_fx (trap)
 
function trap_damage ()
 
function trap_dialog ()
 
function trap_disable ()
 
function trap_enable ()
 
function trap_init ()
 
function trap_lights_green ()
 
function trap_lights_red ()
 
function trap_main ()
 
function trap_model_type_init ()
 
function trap_move_switches ()
 
function trap_set_string (string, param1, param2)
 
function trap_use_think (trap)
 
function trig_update (parent)
 
function private update_trigger_visibility ()
 
function zombie_flame_watch ()
 
function zombie_trap_death (trap, param)
 

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 54 of file _zm_traps.gsc.

References init(), and on_finalize_initialization().

◆ __main__()

function __main__ ( )

Definition at line 71 of file _zm_traps.gsc.

References trap_main().

◆ _register_undefined_trap()

function _register_undefined_trap ( str_trap  )

Definition at line 1233 of file _zm_traps.gsc.

Referenced by register_trap_basic_info(), and register_trap_damage().

◆ electroctute_death_fx()

function electroctute_death_fx ( )

Definition at line 1005 of file _zm_traps.gsc.

References a, electrocute_timeout(), and IS_ZOMBIETEAM.

Referenced by damage().

◆ electrocute_timeout()

function electrocute_timeout ( )

Definition at line 1064 of file _zm_traps.gsc.

Referenced by electroctute_death_fx().

◆ get_trap_array()

function get_trap_array ( trap_type  )

Definition at line 1127 of file _zm_traps.gsc.

◆ init()

function init ( )

Definition at line 63 of file _zm_traps.gsc.

References trap_init().

Referenced by __init__(), trap_init(), and trap_main().

◆ is_trap_registered()

function is_trap_registered ( a_registered_traps  )

Definition at line 1204 of file _zm_traps.gsc.

◆ play_elec_vocals()

function play_elec_vocals ( )

Definition at line 988 of file _zm_traps.gsc.

◆ player_elec_damage()

function player_elec_damage ( )

Definition at line 784 of file _zm_traps.gsc.

References activate(), is_player_valid(), IS_TRUE, PERK_JUGGERNOG, and ZM_TRAP_ELECTRIC_MAX.

Referenced by player_damage().

◆ player_fire_damage()

function player_fire_damage ( )

Definition at line 843 of file _zm_traps.gsc.

References activate(), IS_TRUE, PERK_JUGGERNOG, player_is_in_laststand(), and ZM_TRAP_BURN_MAX.

Referenced by trap_damage().

◆ register_trap_basic_info()

function register_trap_basic_info ( str_trap  ,
func_activate  ,
func_audio   
)

Description:
"Function Name: register_trap_basic_info( <str_trap>, <func_activate>, <func_audio> )" "Module: Zombie Traps"
"Summary: Register basic info for a custom trap"
"Mandatory Argument(s): <str_trap>: the name of the trap. This should be unique, and will identify this trap in system scripts."
"Mandatory Argument(s): <func_activate> the function that will run when this trap is activated"
"Mandatory Argument(s): <func_audio>: the audio function that will run when activated"
"Example:register_trap_basic_info( "electric", &trap_activate_electric, &trap_audio );"
"Single Player / Multi Player: multiplayer"

Definition at line 1220 of file _zm_traps.gsc.

References _register_undefined_trap().

Referenced by __init__().

◆ register_trap_damage()

function register_trap_damage ( str_trap  ,
func_player_damage  ,
func_damage   
)

Description:
"Function Name: register_trap_damage( <str_trap>, <func_player_damage>, <func_damage> )" "Module: Zombie Traps"
"Summary: Register damage info for a custom trap"
"Mandatory Argument(s): <str_trap>: the name of the trap. This should be unique, and will identify this trap in system scripts."
"Mandatory Argument(s): <func_player_damage> the function that will run if a player is damaged by this trap"
"Mandatory Argument(s): <func_damage>: the function that will run if a non-player is damaged by this trap"
"Example:register_trap_damage( "electric", &player_damage, &trap_damage );"
"Single Player / Multi Player: multiplayer"

Definition at line 1257 of file _zm_traps.gsc.

References _register_undefined_trap().

Referenced by __init__().

◆ trap_activate_fire()

function trap_activate_fire ( )

Definition at line 545 of file _zm_traps.gsc.

References get_array(), trap_audio_fx(), trap_damage(), and wait_network_frame().

Referenced by trap_init().

◆ trap_activate_flipper()

function trap_activate_flipper ( )

Definition at line 646 of file _zm_traps.gsc.

Referenced by trap_init().

◆ trap_activate_rotating()

function trap_activate_rotating ( )

Definition at line 577 of file _zm_traps.gsc.

References trap_damage(), and trig_update().

Referenced by trap_init().

◆ trap_audio_fx()

function trap_audio_fx ( trap  )

Definition at line 668 of file _zm_traps.gsc.

References waittill_any_timeout().

Referenced by trap_activate_fire().

◆ trap_damage()

function trap_damage ( )

◆ trap_dialog()

function trap_dialog ( )

Definition at line 1084 of file _zm_traps.gsc.

References get_player_index(), and timer().

Referenced by trap_init().

◆ trap_disable()

function trap_disable ( )

Definition at line 1145 of file _zm_traps.gsc.

References trap_lights_red().

◆ trap_enable()

function trap_enable ( )

Definition at line 1164 of file _zm_traps.gsc.

References trap_lights_green().

◆ trap_init()

◆ trap_lights_green()

function trap_lights_green ( )

Definition at line 463 of file _zm_traps.gsc.

References exploder(), and stop_exploder().

Referenced by trap_enable(), trap_main(), and trap_move_switches().

◆ trap_lights_red()

function trap_lights_red ( )

Definition at line 445 of file _zm_traps.gsc.

References exploder(), and stop_exploder().

Referenced by trap_disable(), trap_main(), and trap_move_switches().

◆ trap_main()

function trap_main ( )

◆ trap_model_type_init()

function trap_model_type_init ( )

Definition at line 1174 of file _zm_traps.gsc.

Referenced by trap_init().

◆ trap_move_switches()

function trap_move_switches ( )

Definition at line 510 of file _zm_traps.gsc.

References trap_lights_green(), and trap_lights_red().

Referenced by trap_use_think().

◆ trap_set_string()

function trap_set_string ( string  ,
param1  ,
param2   
)

Definition at line 485 of file _zm_traps.gsc.

Referenced by trap_main(), and trap_use_think().

◆ trap_use_think()

◆ trig_update()

function trig_update ( parent  )

Definition at line 763 of file _zm_traps.gsc.

References WAIT_SERVER_FRAME.

Referenced by trap_activate_rotating().

◆ update_trigger_visibility()

function private update_trigger_visibility ( )

Definition at line 414 of file _zm_traps.gsc.

References IS_DRINKING.

Referenced by trap_main().

◆ zombie_flame_watch()

function zombie_flame_watch ( )

Definition at line 976 of file _zm_traps.gsc.

Referenced by damage(), and zombie_trap_death().

◆ zombie_trap_death()

function zombie_trap_death ( trap  ,
param   
)