Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
scripted.gsc
Go to the documentation of this file.
1
#insert scripts\shared\shared.gsh;
2
3
// Note that this script is called from the level script command animscripted, only for AI. If animscripted
4
// is done on a script model, this script is not called - startscriptedanim is called directly.
5
6
#using_animtree("generic");
7
8
function
main
()
9
{
10
11
self
endon (
"death"
);
12
self
notify (
"killanimscript"
);
13
self
notify (
"clearSuppressionAttack"
);
14
15
self
.codeScripted[
"root"
] = %body;
// TEMP!
16
17
self
endon (
"end_sequence"
);
18
19
self
.a.script =
"scripted"
;
20
self
waittill(
"killanimscript"
);
21
22
}
23
24
#using_animtree("generic");
25
26
function
init
(notifyName, origin, angles, theAnim, AnimMode, root, rate, goalTime, lerpTime)
27
{
28
29
}
30
31
//--------------------------------------------------------------------------------
32
// end script
33
//--------------------------------------------------------------------------------
34
35
function
end_script
()
36
{
37
// This callback will be called when AI will change states from AIS_SCRIPTED to AIS_BEHAVE
38
// i.e when it will go from animscripted state to behavior state
39
40
if
( IsDefined(
self
.___ArchetypeOnBehaveCallback ) )
41
[[
self
.___ArchetypeOnBehaveCallback]]( self );
42
}
init
function init(notifyName, origin, angles, theAnim, AnimMode, root, rate, goalTime, lerpTime)
Definition:
scripted.gsc:26
main
function main()
Definition:
scripted.gsc:8
end_script
function end_script()
Definition:
scripted.gsc:35
scripts
shared
ai
systems
scripted.gsc
Generated by
1.8.17