Space Engineers

Space Engineers

34 次評價
Gravity Engine Controller (Gravity Drive Script)
2
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
10 則留言
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
Longeres 2023 年 2 月 7 日 上午 8:52 
Скрипт богов! 100 лет пытался настроить или решить эту проблему механически, ибо в программировании 0, но ты буквально сделал все за меня. Спасибо :LDODheart:
BigSmoke. 2022 年 3 月 11 日 下午 5:19 
The best script and the best scripter :steamhappy:
ZipeviL 2022 年 3 月 11 日 上午 9:12 
Amazing stuff. Thank you.
ServTechnic 2022 年 3 月 9 日 上午 11:58 
This is the best Gravity script in the workshop.
Siptrixed  [作者] 2020 年 7 月 2 日 下午 4:22 
blackwatch Yes you just need change variable to change language from Russian to English
Blacky Watchy 2020 年 7 月 2 日 上午 11:39 
wait. the script have self translate? it is epic!!!