‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
archetype_warlord_interface.gsc
Go to the documentation of this file.
1 #using scripts\shared\ai\warlord;
2 #using scripts\shared\ai\systems\ai_interface;
3 
4 #namespace WarlordInterface;
5 
7 {
8  /*
9  * Name: can_be_meleed
10  * Summary: Controls whether other AI will choose to melee the warlord.
11  * Initial Value: true
12  * Attribute true: Normal behavior, warlord will be meleed when close to their enemy.
13  * Attribute false: Forces other AI to shoot the warlord instead of melee it at close distances.
14  * Example: entity ai::set_behavior_attribute( "can_be_meleed", true );"
15  */
17  "warlord",
18  "can_be_meleed",
19  false,
20  ‪array( true, false ) );
21 }
22 
23 /*
24  * Name: AddPreferedPoint
25  * Summary: Adds a prefered go to location that the warlord will be inclined to go to every now and then.
26  * The warlord will choose the location only if it is inside the goal bounadries.
27  * Multiple points can be added.
28  * Mandatory Arg - self : warlord entity
29  * Mandatory Arg - position : prefered position.
30  * Optional Arg - min_duration/max_duration Range in milliseconds where the warlord should hold that position if he chooses it
31  * Optional Arg - position name
32  * Example: entity AddPreferedPoint(interesting_node.origin, 10000, 15000);
33  */
34 function ‪AddPreferedPoint(position, min_duration, max_duration, ‪name)
35 {
36  ‪WarlordServerUtils::AddPreferedPoint(self, position, min_duration, max_duration, ‪name);
37 }
38 
39 /*
40  * Name: DeletePreferedPoint
41  * Summary: Deletes a specific preferred point.
42  * Mandatory Arg - self : warlord entity.
43  * Mandatory Arg - name : Name of the prefered point passed by AddPreferedPoint function.
44  * Return Arg : True is found a point and deleted it. False if it didn't find any points.
45  * Example: entity DeletePreferedPoint( "TruckPreferedPoint1" );
46  */
48 {
50 }
51 
52 /*
53  * Name: ClearAllPreferedPoints
54  * Summary: Clears all Warlord prefered nodes.
55  * Mandatory Arg - self : warlord entity
56  * Example: entity ClearAllPreferedPoints();
57  */
59 {
61 }
62 
63 /*
64  * Name: ClearPreferedPointsOutsideGoal
65  * Summary: Clears all Warlord prefered nodes which are outside the current Goal
66  * Mandatory Arg - self : warlord entity
67  * Example: entity ClearAllPreferedPoints();
68  */
70 {
72 }
73 
74 /*
75  * Name: SetWarlordAggressiveMode
76  * Summary: Instruct the Warlord to be more careful about choosing position that can target the LastSeenEnemy and to make him prefer close encounters. Recommended for indoor areas.
77  * Recommended to not be set if the fighting are is outdoor.
78  * Mandatory Arg - self : warlord entity
79  * Example: entity SetWarlordAggressiveMode(true);
80  */
81 function ‪SetWarlordAggressiveMode( b_aggressive_mode )
82 {
84 }
‪AddPreferedPoint
‪function AddPreferedPoint(position, min_duration, max_duration, name)
Definition: archetype_warlord_interface.gsc:34
‪SetWarlordAggressiveMode
‪function SetWarlordAggressiveMode(b_aggressive_mode)
Definition: archetype_warlord_interface.gsc:81
‪RegisterWarlordInterfaceAttributes
‪function RegisterWarlordInterfaceAttributes()
Definition: archetype_warlord_interface.gsc:6
‪RegisterMatchedInterface
‪function RegisterMatchedInterface(archetype, attribute, defaultValue, possibleValues, callbackFunction)
Definition: ai_interface.gsc:143
‪ClearAllPreferedPoints
‪function ClearAllPreferedPoints()
Definition: archetype_warlord_interface.gsc:58
‪DeletePreferedPoint
‪function DeletePreferedPoint(name)
Definition: archetype_warlord_interface.gsc:47
‪ClearPreferedPointsOutsideGoal
‪function ClearPreferedPointsOutsideGoal()
Definition: archetype_warlord_interface.gsc:69
‪array
‪function filter array
Definition: array_shared.csc:16
‪name
‪class GroundFx name