generated from fenix31415/TemplatePluginSSE
-
Notifications
You must be signed in to change notification settings - Fork 5
Homing
fenix31415 edited this page Oct 19, 2023
·
4 revisions
In the HomingData
section, you can configure the parameters for the Homing feature. This feature allows the projectile to become homing. You can adjust the trajectory, the intensity of rotation and the method of capturing the target.
This is a map where keys are strings (starting with key_
) and values are instances of settings for this feature. The key identifies the settings instance. In the functions section, you can specify the instance of settings you need using this key.
An instance of settings is an object with the following fields.
-
type
: trajectory selection. There are several types of trajectories:-
ConstSpeed
: The projectile has a constant linear velocity, but a limited angular velocity of rotation.
In therotationTime
field, specify the time it takes for the projectile to turn 180 degrees.
The smaller the value, the more accurate the projectile. Reasonable values: 2.5-5. -
ConstAccel
: The projectile has a limited acceleration. In theacceleration
field, specify its value.
The higher the value, the more accurate the projectile. Reasonable values: 5-50.
-
-
target
: the method of capturing the target. The following values are available.-
Nearest
(default): The projectile selects the nearest NPC. -
Cursor
: The projectile selects the closest to the cursor NPC in the specified radius.
Specify the radius in thecursorAngle
field in degrees. Reasonable values: 5-15, maximum value: 90.
-
-
checkLOS
: is it necessary for the attacker to see the victim (default: false). -
aggressive
: filter on the aggressiveness of the target. It can be one of the following values.-
Aggressive
: choose only from currently aggressive targets. -
Hostile
(default): choose only from hostile targets. -
Any
: choose any target.
-
"HomingData": {
"key_H_1": {
"type": "ConstSpeed",
"rotationTime": 1.5,
"aggressive": "Any"
},
"key_H_2": {
"type": "ConstAccel",
"acceleration": 100,
"target": "Cursor",
"cursorAngle": 10,
"aggressive": "Aggressive",
"checkLOS": true
}
}