Team Spartan Cookies & Milk Forums
Release qDrive - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Release qDrive (/thread-3671.html)



qDrive - 57e11a - 02-08-2021

qDrive, the future of fighter/shuttlecraft drives

it fast

qDrive is a project I've been working on for a while, and frankly abandoned for a while, but I finally picked it back up and finished it.
qDrive has a menu built into it (middle click to open), it's used to do most actions that you'd want to do
Menu Options:
  • Close
  • Dock/Undock (Attempts to parent qDrive to the closest docking clamp within x units, only works if you have toolgun perms on that clamp)
  • Freeze/Unfreeze
  • Jump to Free Camera position (When in Free Camera mode, use this to teleport the ship to the position that your free camera is at)
  • View Mode: <thing> (Changes the view mode)
  • Damping enabled: <boolean>
  • Roll enabled: <boolean>
  • Mouse X is roll: <boolean> (Only works when roll is enabled)
  • Increase Speed: <number>
  • Decrease Speed: <number>

Pros:
  • Supports roll (if you pitch up then yaw right, your yaw will be local to the drive, not the world)
  • Supports changing mouse x to be roll (only works in roll mode of course)
  • Multiple View Modes (First person look, first person locked, third person orbit (close menu and scroll to zoom), third person locked (same as third person orbit for changing zoom), free camera)
  • Damping toggle (Kinda like flight assist off in Elite, but kinda not?)
  • Speed controls
  • Config is saved between dupes/loads/etc
  • Can dock to docking clamps, provided that you have toolgun permission to them
  • Can teleport to the the position of the Free Camera
  • Dynamic engine sound

Cons:
  • Latency, it's got a little extra latency (up to about 1/3 of a second), but it's not too bad
  • Can't dock to docking clamps that you don't have toolgun permissions for
  • I suck at hud and net stuff so client stuff is around 500us

To use qDrive:
  • Go to the Starfall Hud tool
  • Open the editor
  • Go to the shared tab
  • Find my name
  • Go into the "anisu" folder
  • Right click "qdrive.txt"
  • Click load to tool
  • Exit the editor
  • While holding your walk key (normally it's ALT), place it on the seat you want to control it with
  • Make sure qDrive is facing the right way, use the tricorder for this, make sure the red line is facing forward, the green line is facing right, and the blue line is facing up, if they aren't, rotate it to fix them
  • Place a Wire DHDD (Wire tab)
  • Wire the inputs up to their corresponding things (DHDD -> your dhdd)
  • Restart qDrive (context menu, right click the chip, restart chip)
  • Use Auto Parent to parent your ship to qDrive
  • Unfreeze qDrive via the menu or the
  • Profit
REMEMBER: Unparent the ship BEFORE duping, otherwise you won't be able to unparent it later


RE: qDrive - 57e11a - 29-11-2021

Update of qDrive (most of these have been out for a while, but shh)
-Removed parenting to docking clamps in favor of the new landing gear.
-Added an entity cap of 250 and a warning at 100 so people don't go flying around their 600 prop capital ship and crash the server.
-Added an "align to world angles" option to automatically turn off the drive and rotate the ship to be aligned with the nearest 90⁰.
-Made qDrive not consume hundreds of server ops trying to calculate and apply forces when the drive isn't actually on.


RE: qDrive - 57e11a - 27-02-2022

Update of qDrive
-Improved control latency by using shitmod's own networked controls
-Improved network usage by not transmitting target angles when they're different enough from the actual drive angles
-Added a "Landing Mode", wire the Landing Range and Landing Height inputs and activate it near ground and it will descend until it gets to the Landing Height and deactivates the drive.