Space Engineers

Space Engineers

32 个评价
2cm Rotor Turret Script
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
39.664 KB
2019 年 5 月 15 日 下午 6:18
2019 年 9 月 6 日 下午 1:32
2 项改动说明 ( 查看 )

订阅以下载
2cm Rotor Turret Script

描述
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 条留言
SOBEK 2019 年 12 月 6 日 上午 2:03 
Hi, script is now broken , after checkup script in pb , something is wrong :)
anrew10 2019 年 9 月 7 日 上午 6:53 
Similar enough to MART, yet deferent enough to be unique

I like it
2cm  [作者] 2019 年 9 月 6 日 下午 1:38 
@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 2019 年 8 月 12 日 上午 9:54 
Does this work for multiple turrets / both laser and Ion on the same grid?
Tallest 2019 年 6 月 10 日 下午 4:58 
I can find where to change the range, currently using atlas laser
2cm  [作者] 2019 年 6 月 2 日 上午 9:43 
@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 2019 年 6 月 1 日 下午 1:42 
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 2019 年 5 月 29 日 下午 3:58 
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 2019 年 5 月 26 日 上午 7:20 
The turret fires and the elevation rotor works, but the azimuth rotor never works. how do i fix this?
Gryphorim 2019 年 5 月 15 日 下午 6:59 
Ah, I see where I went wrong. Rotor positions were wrong, and I had elevation rotor first, then azimuth off of that