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

Go to the source code of this file.

Macros

#define ANIM_NOTIFY   "_anim_notify_"
 
#define CF_CRACKS_ALL   4
 
#define CF_CRACKS_BLUE   2
 
#define CF_CRACKS_GREEN   3
 
#define CF_CRACKS_RED   1
 
#define SHADER_VEC_BLUE   "scriptVector3"
 
#define SHADER_VEC_GREEN   "scriptVector2"
 
#define SHADER_VEC_RED   "scriptVector1"
 

Functions

function __init__ ()
 
function _get_align_ent (e_align)
 
function _get_align_pos (v_origin_or_ent, v_angles_or_tag)
 
function _play (animation, v_origin_or_ent, v_angles_or_tag, n_rate=1, n_blend_in=.2, n_blend_out=.2, n_lerp, b_link=false)
 
function add_global_notetrack_handler (str_note, func,...)
 
function add_notetrack_func (funcname, func)
 
function call_notetrack_handler (str_note)
 
function cf_cracks_off (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function cf_cracks_on (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function cracks_off (str_type)
 
function cracks_on (str_type)
 
function first_frame (animation, v_origin_or_ent, v_angles_or_tag)
 
function handle_notetracks ()
 
function play (animation, v_origin_or_ent, v_angles_or_tag, n_rate=1, n_blend_in=.2, n_blend_out=.2, n_lerp, b_link=false)
 
function play_siege (str_anim, str_shot="default", n_rate=1, b_loop=false)
 
function setup_notetracks ()
 
function private waittill_end ()
 

Macro Definition Documentation

◆ ANIM_NOTIFY

#define ANIM_NOTIFY   "_anim_notify_"

Definition at line 14 of file animation_shared.csc.

◆ CF_CRACKS_ALL

#define CF_CRACKS_ALL   4

Definition at line 287 of file animation_shared.csc.

◆ CF_CRACKS_BLUE

#define CF_CRACKS_BLUE   2

Definition at line 285 of file animation_shared.csc.

◆ CF_CRACKS_GREEN

#define CF_CRACKS_GREEN   3

Definition at line 286 of file animation_shared.csc.

◆ CF_CRACKS_RED

#define CF_CRACKS_RED   1

Definition at line 284 of file animation_shared.csc.

◆ SHADER_VEC_BLUE

#define SHADER_VEC_BLUE   "scriptVector3"

Definition at line 291 of file animation_shared.csc.

◆ SHADER_VEC_GREEN

#define SHADER_VEC_GREEN   "scriptVector2"

Definition at line 290 of file animation_shared.csc.

◆ SHADER_VEC_RED

#define SHADER_VEC_RED   "scriptVector1"

Definition at line 289 of file animation_shared.csc.

Function Documentation

◆ __init__()

◆ _get_align_ent()

function _get_align_ent ( e_align  )

Definition at line 121 of file animation_shared.csc.

References DEFAULT.

Referenced by _get_align_pos().

◆ _get_align_pos()

function _get_align_pos ( v_origin_or_ent  ,
v_angles_or_tag   
)

Definition at line 133 of file animation_shared.csc.

References _get_align_ent(), DEFAULT, and DEFAULT2.

◆ _play()

function _play ( animation  ,
v_origin_or_ent  ,
v_angles_or_tag  ,
n_rate  = 1,
n_blend_in  = .2,
n_blend_out  = .2,
n_lerp  ,
b_link  = false 
)

Definition at line 51 of file animation_shared.csc.

References ANIM_NOTIFY, clear(), DEFAULT, handle_notetracks(), set(), set_val(), and waittill_end().

Referenced by play().

◆ add_global_notetrack_handler()

function add_global_notetrack_handler ( str_note  ,
func  ,
  ... 
)

Definition at line 199 of file animation_shared.csc.

References array, ARRAY_ADD, and DEFAULT.

Referenced by setup_notetracks().

◆ add_notetrack_func()

function add_notetrack_func ( funcname  ,
func   
)

Definition at line 190 of file animation_shared.csc.

References DEFAULT.

Referenced by __init__(), and setup_notetracks().

◆ call_notetrack_handler()

function call_notetrack_handler ( str_note  )

Definition at line 207 of file animation_shared.csc.

Referenced by handle_notetracks().

◆ cf_cracks_off()

function cf_cracks_off ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

◆ cf_cracks_on()

function cf_cracks_on ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

◆ cracks_off()

function cracks_off ( str_type  )

◆ cracks_on()

function cracks_on ( str_type  )

◆ first_frame()

function first_frame ( animation  ,
v_origin_or_ent  ,
v_angles_or_tag   
)

Description:
"Function Name: first_frame( <ents>, <scene>, [str_tag], [animname_override] )"
"Summary: Puts the animating models or AI or vehicles into the first frame of the animated scene. The animation is played relative to the entity that calls the scene" "Module: Animation" "CallOn: The root entity that is the point of relativity for the scene, be it node, ai, vehicle, etc."
"Mandatory Argument(s): <ents> Array of entities that will animate."
"Mandatory Argument(s): <scene> The animation scene name."
"Optional Argument(s): [str_tag] The str_tag to animate relative to (must exist in the entity this function is called on)."
"Optional Argument(s): [animname_override] Animname to use instead of ent.animname"
"Example:node first_frame( guys, "rappel_sequence" );"
"Single Player / Multi Player: singleplayer"

Definition at line 39 of file animation_shared.csc.

References play().

◆ handle_notetracks()

function handle_notetracks ( )

Definition at line 264 of file animation_shared.csc.

References ANIM_NOTIFY, and call_notetrack_handler().

Referenced by _play().

◆ play()

◆ play_siege()

function play_siege ( str_anim  ,
str_shot  = "default",
n_rate  = 1,
b_loop  = false 
)

Definition at line 168 of file animation_shared.csc.

References DEFAULT.

Referenced by cSceneObject::_play_anim().

◆ setup_notetracks()

function setup_notetracks ( )

◆ waittill_end()

function private waittill_end ( )

Definition at line 114 of file animation_shared.csc.

References ANIM_NOTIFY.

Referenced by _play().