Space Engineers

Space Engineers

32 valoraciones
2cm Rotor Turret Script
   
Premio
Favoritos
Favorito
Quitar
Tamaño
Publicado el
Actualizado el
39.664 KB
15 MAY 2019 a las 6:18 p. m.
6 SEP 2019 a las 1:32 p. m.
2 notas sobre cambios ( ver )

Suscríbete para descargar
2cm Rotor Turret Script

Descripción
I will edit description in future.
This code not completed.



I refer a lot of code from Gun Fire Control System

Maybe version Mk1?...
I forgot what version I was refer...

So. You can use another scripts. like GFCS.


Functions
  • Support multiple turrets.
  • Support Timer Block trigger.
  • Support manual control.

============================

Manual control
You can control custom turret with Remote Control Block.
  • Aiming with "Mouse(or joystick)".
  • Firing with "Space(or Jump)".
  • "Q(Roll left)": Slow aiming.
  • "E(Roll right)": Fast aiming.

============================

Install instruction.
You need to group one or more single block turrets into "Designators".


Turret
  • Rotor with name contains "Azimuth"
  • Rotor with name contains "Elevation"
  • Remote Control with name contains "Turret" in gun house
  • (optional) Weapons in gun house
  • (optional) Timer with name contains "Trigger" in gun house

You don't need to grouping turret blocks.
Place direction very important.
All rotors must placed zero angle point to forward of turret.
Elevation rotor placed left side of remote control (gun house)

Parameters (Remote Control Custom Data):
MuzzleSpeed=600 // Weapon muzzle speed, if set zero means instant hit weapon like laser. MaxRange=1200.0 // Maximum aiming range. MinRange=0.0 // Minimum aiming range. AimingTolerance=5.0 // Angle tolerance to fire in degree. AzimuthRotationSpeed=4.0 // Azimuth rotor speed limit. ElevationRotationSpeed=2.0 // Elevation rotor speed limit. AzimuthAngleOffset=0.0 // Azimuth angle offset in degree. ElevationAngleOffset=0.0 // Elevation angle offset in degree. AzimuthEquilibrium=0.0 // Azimuth reset angle in degree. ElevationEquilibrium=-45.0 // Elevation reset angle in degree. EquilibriumRotationSpeed=0.5 // Reset rotor speed rate. EquilibriumTime=20 // Reset after time. ReferenceOffsetX=3.5 // Aiming position x offset in meter. ReferenceOffsetY=0.0 // Aiming position y offset in meter. PitchWave=0.0 // Swiping angle when firing.



Designators
Make group with name "Designators".
can contains any turrets even mods.

10 comentarios
SOBEK 6 DIC 2019 a las 2:03 a. m. 
Hi, script is now broken , after checkup script in pb , something is wrong :)
anrew10 7 SEP 2019 a las 6:53 a. m. 
Similar enough to MART, yet deferent enough to be unique

I like it
2cm  [autor] 6 SEP 2019 a las 1:38 p. m. 
@Tallest_Midget
You can find that in custom data of Remote Block

@MathiasRAF
Yes. This script supports multiple turrets.
However, if you are using an ion turret, I recommend adding an ion management system.
MathiasOSX 12 AGO 2019 a las 9:54 a. m. 
Does this work for multiple turrets / both laser and Ion on the same grid?
Tallest 10 JUN 2019 a las 4:58 p. m. 
I can find where to change the range, currently using atlas laser
2cm  [autor] 2 JUN 2019 a las 9:43 a. m. 
@overwerk
RefereceOffsetY parameter in custom data of remote control block may help you.

@Spectre25
Must align the 0 degree point of the rotor stators to the forward direction of the turret to work correctly.
overwerk 1 JUN 2019 a las 1:42 p. m. 
i have noticed that the elevation rotor always aim above where its suposed to aim. i have tried many ways of preventing the issue but it always pops up no matter what i do
Charlie_Foxtrot25 29 MAY 2019 a las 3:58 p. m. 
Any chance we could get this script updated?
Both Azimuth and Elevation are not functioning... I even tried copying the demo world script and still no luck...
Bruno051 26 MAY 2019 a las 7:20 a. m. 
The turret fires and the elevation rotor works, but the azimuth rotor never works. how do i fix this?
Gryphorim 15 MAY 2019 a las 6:59 p. m. 
Ah, I see where I went wrong. Rotor positions were wrong, and I had elevation rotor first, then azimuth off of that