Space Engineers

Space Engineers

41 个评价
Gravity Engine Controller (Gravity Drive Script)
3
2
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
683.517 KB
2020 年 6 月 30 日 下午 8:13
2023 年 5 月 9 日 下午 4:35
32 项改动说明 ( 查看 )

订阅以下载
Gravity Engine Controller (Gravity Drive Script)

描述
Destination
Controll a structure called "Gravity Engine" in any environment

2 operating mode
MainEngine
Main engine - controls gravity, taking into account all possible variables and the environment.
Features
  • Flight on planets (orbits of planets) with gravity less than 0.5G
  • Ignore artificial gravity, other ships/structures
  • Improved braking curve (harder braking)
  • Speed ​​hold (cruise control)
  • Hold the speed of the object the camera is looking at
ThrusterAssist
Help thrusters - Controls gravity only by getting data of the current force of thrusters. Increased performance, reduced functionality
Features
  • Increasing the force of thrusters

Features independent of operating mode
  • Reduces torque by override the gyroscope
  • Automatically selects the cockpit you are sitting in if the main cockpit is not defined
  • Enables gravity for walking around the ship while waiting
  • Can be used as a gravity gun

Override gyroscopes
Disabled
Gyroscopes will not reduce the torque generated by the deviation of the centers of mass
Enabled (Resistance Mode)
Gyroscopes will partially reduce torque
In the absence of user input (if you do not touch the Q/E buttons and do not move the mouse), completely blocks the torque
Enabled (Vector Mode)
Gyroscopes will completely block torque
Possibly unusual behavior!

Install
Requared
  1. Gravity generators
  2. Artificial mass
  3. Cockpit or remote control
  4. Gyroscopes
Optional
  1. Text panel for displaying information
  2. Camera for raycast
Step by step instructions
  1. Build a ship with the requared blocks
  2. Load the script into the program block
  3. Ready!

Settings and arguments
Settings (Custom Data of program block)
  1. The name of the ship's control unit (Automatic, preferably not touched)
  2. The name of the text panel for displaying the status (To indicate the screen inside the Cockpit, etc., enter Name*ID, where Name is the name of the block, ID is the address of the screen in the block (starts from 0), if not specified, the status will be displayed on the program block)
  3. Group name (optional)
  4. Operating mode (MainEngine/ThrusterAssist)
  5. Deceleration multiplier, i.e. how hard to slow down (from 0.001 to 2147483647)
  6. Should the script use gyroscopes (Enter True if yes, or False if not)
  7. Gyro multiplier, i.e. Gyro sensitivity (from 0.001 to 2147483647)
  8. Whether to control gyroscopes via vector (Enter True to enable vector mode, or False to enable resistance mode, use setting #6 to disable)
  9. Gyroscope control multiplier, i.e. gyroscope sensitivity in vector mode (from 0.001 to 2147483647)
  10. Name of the camera used to get the speed of the object i.e. raycast
  11. Standard cruise control speed (The speed that a stopped ship will pick up when the cruise control is turned on)
  12. Strength of gravity in standby mode(To walk)
  13. Advanced gyroscope control (Enter True to enable or False to enable)
Arguments
Argument
Description
OnOff
Enable/Disable script
ToggleDampener
Enable/Disable speed dampener
NextMode
Switch engine operation modes Main engine/Help thrusters
ChangeMode MainEngine
Enable "Main engine" operation mode
ChangeMode ThrusterAssist
Enable "Help thrusters" operation mode
ToggleGyroOverride
Enable/Disable use gyroscopes
ToggleGyroMode
Switches the gyroscope control mode Resistance/Vector
ToggleAdvancedGyro
Enable/Disable advanced gyro control
ToggleCruise
Enable/Disable cruise control
RaycastCruise
Enable cruise control, and set the speed of the object the camera is looking at
CruiseAdd [X]
Change cruise control speed to "X" m/s
OnOffToGravityGun
Enable/Disable the script, when disabled, sets the maximum gravity directed forward
OnOffToIddleGravity
Enable/Disable the script, when disabled sets gravity as in standby mode
SetLang [X]
Set "X" language, accepted EN,UA,RU
热门讨论 查看全部(1)
2
2023 年 2 月 7 日 上午 11:31
Проблемы / Issues
Siptrixed
16 条留言
Dvachevsky 8 月 28 日 上午 4:19 
Спасибо за пояснения
Siptrixed  [作者] 8 月 28 日 上午 3:27 
sdfghaerh, в группе должны находится блоки указанные выше в разделе установка
Гравитация для ходьбы отключается простой установкой 0 в 12 настройке (Сила гравитации в режиме ожидания(Для перемещения по кораблю пешком))
Dvachevsky 8 月 27 日 下午 2:28 
И "включение гравитации для ходьбы в режиме ожидания" очень хотелось бы вынести в Custom Data с возможностью отключения данного режима
Dvachevsky 8 月 27 日 下午 2:18 
Название группы(по желанию)
А что в этой группе должно находиться для работы не написано
Tirolskiy_Kolbas 7 月 1 日 下午 2:33 
Лучший, пользуюсь с превеликим кайфом!
Estel 5 月 2 日 上午 5:08 
Best Gravity Engine ever, just "paste and fly"!
Bullet 2023 年 12 月 2 日 上午 2:12 
looks like works correctly when gyro power isn't overpowered
Bullet 2023 年 12 月 1 日 下午 4:32 
Is It possible to change control A/D buttons as strafe instead of turn left/right?
Siptrixed  [作者] 2023 年 5 月 9 日 下午 4:42 
@KKComice Fixed
KKComice 2023 年 4 月 14 日 下午 3:43 
Hi great script love the anti torque but i'm having issues with the script when servers restart or using the nexus server jump the script needs to be recompiled or else the ship will fly off wildly other gravity drive scripts don't have this problem i'm no coder but a fix that would help ships not fly off is keeping the mass blocks off until you need to move like what your script does with the gravity generator a fix would be amazing thank you for this script