Space Engineers

Space Engineers

HudDog - dogfight tracers, lead, autoaim
 This topic has been pinned, so it's probably important
cheerkin  [developer] 3 Nov, 2021 @ 3:57pm
Script argument reference
Script argument reference
There are two types of args - command and toggle. Both can be used in CustomData boot sequence and directly by putting them as an argument and hitting Run button on PB.
Toggle flips its' state whenever you execute it.
Commands can also be seen as two general types - set-value and action.

Toggle reference
Pattern: toggle:<name>
Example: toggle:aim

Name
Default
Meaning
pip
true
Predicted Impact Point mark instead of Target Lead Indicator
fire
true
Trigger fire automatically at optimal conditions
aim
true
Take over control by gyros when close to aim point. If you have more than one gyro, you are still able to overcome override by mouse input and unstick from target

bright
false
Green full alpha color for bright conditions

pip-road
true
PIP pavement tracks instead of three circles in lock-less mode

damage-scan
true
Scan grid for damage, disabling may save runtime a little, if your grid is big, is very very big
angular-eval
true
Estimate target speed assuming its' certain range based on your crosshairs movement

tracers
true
Tracers rendering on/off

aim-to-center
false
Ignore target offset computation, aim to grid bounding box center



Set-value reference
Set-value is a container object representing some key-value pair that can be changed in runtime by script user.

Pattern: command:set-value:<name>:<value>
Example: command:set-value:default-zero-range:1500

Name
Default
Meaning
rdc-vel
104.38
Change if you break speedlimit with exploits or through modding

default-zero-range
1000
Starting range for free-fall ballistics in lockless mode, double tap Q to change

fitering-size
10
Filtering policy for grid size in meters, lesser would be ignored by targeting system (to avoid chasing dead fell off parts)

tick-avg-vel
60
Smoothing mouse input in ticks, more means more laggy and smooth prediction track, less would make it jumpy for agile crafts

projected-grid-forward-offset
0
Experiment with this to get more resolution with projector-based marker. You can set it even to several hundreds meters but sometimes projector ends up glitched.

seat-pov-up-offset
0
Change if you think that projectons are not aligned with your POV from particular type of control seat

seat-pov-fw-offset
0
Change if you think that projectons are not aligned with your POV from particular type of control seat
skip-intro
false
Set to true to disable animated intro
double-tap-actions
true
Capturing double taps (Q, E, C, etc)

Action command reference
Pattern: command:<name>:<p1>:<p2>:...:<pN>
Example: command:create-task

Name
Values
Meaning
set-value
key, value
See above
cycle-indication-type
Switch LCD/projector indication, double tap C for the same effect
add-pov-fw
Value in meters
Add 0.01f to seat-pov-fw-offset
add-pov-up
Value in meters
Add 0.01f to seat-pov-up-offset

color-hud-default
8 ':'-delimited values. First four are RGBa for sprites, second - for text
Custom color for sprites and text in main mode. Example: command:color-hud-default:255:195:110:80:255:195:110:30
color-hud-bright
8 ':'-delimited values. First four are RGBa for sprites, second - for text
Custom color for sprites and text in bright mode
cockpit-output
Index of embedded cockpit screen for info output
Set to -1 to disable

Last edited by cheerkin; 26 Apr, 2022 @ 6:30am
< >
Showing 1-3 of 3 comments
DEeM0N 27 Dec, 2021 @ 1:46pm 
Хм.... как я понял в CustomData вот так написать не получится: command:set-value:aim:false
А жаль, было-бы не плохо задавать эти параметры по умолчанию при старте скрипта
Last edited by DEeM0N; 27 Dec, 2021 @ 1:46pm
cheerkin  [developer] 27 Dec, 2021 @ 4:16pm 
aim - это toggle, а не value (см. таблички).
Всё, что на этой странице перечислено, можно указать в CustomData. Т.е. toggle:aim будет инвертировать дефолтное значение при старте скрипта.
l_SamuraI_l 19 Jan, 2024 @ 3:32pm 
Скрипт потрясающий, жаль только, что он не работает с блоком дистанционного управления
< >
Showing 1-3 of 3 comments
Per page: 1530 50