Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
archetype_thrasher_interface.gsc
Go to the documentation of this file.
1
#using scripts\shared\ai\archetype_thrasher;
2
#using scripts\shared\ai\systems\ai_interface;
3
4
#namespace ThrasherInterface;
5
6
function
RegisterThrasherInterfaceAttributes
()
7
{
8
/*
9
* Name: stunned
10
* Summary: Controls whether the thrasher AI is stunned.
11
* Initial Value: false
12
* Attribute true: Thrasher is stunned.
13
* Attribute false: Normal thrasher behaviors.
14
* Example: entity ai::set_behavior_attribute( "thrasher", true );"
15
*/
16
ai::RegisterMatchedInterface
(
17
"thrasher"
,
18
"stunned"
,
19
false
,
20
array
(
true
,
false
) );
21
22
ai::RegisterMatchedInterface
(
23
"thrasher"
,
24
"move_mode"
,
25
"normal"
,
26
array
(
"normal"
,
"friendly"
),
27
&
ThrasherServerUtils::thrasherMoveModeAttributeCallback
);
28
29
/*
30
* Name: use_attackable
31
* Summary: Controls whether the thrasher destroys attackable objects.
32
* Initial Value: false
33
* Attribute true: Will enable the attackable behavior.
34
* Attribute false: Disables attackable behavior.
35
* Example: entity ai::set_behavior_attribute( "use_attackable", true );"
36
*/
37
ai::RegisterMatchedInterface
(
38
"thrasher"
,
39
"use_attackable"
,
40
false
,
41
array
(
true
,
false
) );
42
}
RegisterMatchedInterface
function RegisterMatchedInterface(archetype, attribute, defaultValue, possibleValues, callbackFunction)
Definition:
ai_interface.gsc:143
thrasherMoveModeAttributeCallback
function thrasherMoveModeAttributeCallback(entity, attribute, oldValue, value)
Definition:
archetype_thrasher.gsc:1383
RegisterThrasherInterfaceAttributes
function RegisterThrasherInterfaceAttributes()
Definition:
archetype_thrasher_interface.gsc:6
array
function filter array
Definition:
array_shared.csc:16
scripts
shared
ai
archetype_thrasher_interface.gsc
Generated by
1.8.17