Space Engineers

Space Engineers

91 ratings
Automated Gravity Cannon
   
Award
Favorite
Favorited
Unfavorite
Type: Blueprint
File Size
Posted
Updated
771.703 KB
30 May, 2016 @ 6:52am
7 Jun, 2016 @ 3:46am
3 Change Notes ( view )

Subscribe to download
Automated Gravity Cannon

Description
Automated GraviCannon

This gravity cannon is one of practicle implementations of Innoble's space scanner script.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=579825254

Cannon is capable to locate and destroy moving ships in it's scanner range which is set to 15km by default (this value is ajustable). Of course, I mean only linear motion with constant velocity.

How to use it:
Put come iron ingots or steel plates in cargo container of cannon.
Press "1" to run script in atodetect/autodestroy mode. Cannon will hunt for ships in 15km range.
Press "2" to stop script. Sometimes you need to press "2" multiple times.

You can run radar in "sectoral scan" mode. It will detect ships only in limited sector in front of cannon in this mode.
It's useful for targetting specified ship.

Press "4" to select 1st sector point, then move crosshair to set sector width and press "4" again.
After sector width is set, crosshair your target ship and press "5" to run radar in "sectoral scan mode".
Cannon will calculate intercept course and launch projectiles, using its gravity generators.

Ok, now a few words about variables in the beginning off cannon script.



Here is a description of cannon settings

double PROJECTILE_VELOCITY=131; // Projectile velocity
double kP = 3; // ========================
double kI = 0.0001; // PID controller settings
double kD = 80; // ========================
double Precision = 3; // Desired precision (3 means 3m error in 10km range, i don't recommend to set this var to lower values)
int BurstTime = 1500; // It's a "burst length"
int FireMode = 2; // 0 - burst, 1 - slug, 2 - buckshot (gauss)
float GaussSpread=0.1f; // Gauss shot spread multiplier
float JunkFilter = 15; // Minimum target radius. If object is of smaller size, it won't get shot.


Please, note: FireMode var sets different fire mods, the most advanced of which is the 2nd mode. It creates something like a buckshot with spread bound to with target size and distance to interception point.

Ok, that is the brief description. Try to use this BP and let me know, if you have any questions.
23 Comments
jfullernz 10 Apr, 2020 @ 8:05pm 
No longer working, script error due to getfreedestination having been removed from SE
Solomon 16 Aug, 2017 @ 12:44pm 
А как теперь пользоваться данной убермашиной?
ИƐѺИSΛMƱŔΛ1 2 Apr, 2017 @ 2:39am 
Жаль что сейчас она не работает (
ZloyDoctor 15 Jan, 2017 @ 1:02am 
И еще, простите за оффтоп, у вас получилось "запрячь пиратов" с Getnearestplayer ?
:steamhappy:
Pennywise  [author] 15 Jan, 2017 @ 12:42am 
можно сделать, но без автоматического засечения целей
ZloyDoctor 15 Jan, 2017 @ 12:33am 
А вы схожий скрипт, только на raycast не делали? У вас есть скрипт на триангуляцию и есть скрипт на raycast....
Pennywise  [author] 14 Jan, 2017 @ 11:50pm 
А просто в ванили радар уже не будет работать, так как GetFreeDestination() убрали
Pennywise  [author] 14 Jan, 2017 @ 11:49pm 
Я точно не знаю, что там за мод, может он просто модифицирует ванильный блок уд управления. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=803652481
ZloyDoctor 14 Jan, 2017 @ 11:48pm 
А с ванильными частями никак?
Pennywise  [author] 14 Jan, 2017 @ 11:47pm 
ZloyDoctor Убирать не буду, конечно. Только теперь, чтобы оно работало, надо заменить блок remote control в конструкции на мод от rexxar'а