Skip to content

Latest commit

 

History

History
91 lines (71 loc) · 7.1 KB

README.md

File metadata and controls

91 lines (71 loc) · 7.1 KB

alt text

FIN OS Tool (FIN OPEN SOURCE)

FIN OS Tool on Steam Workshop

You can find the stand alone tool under: Weapons => Tools => Fin OS Tool

Made from scratch, and based on the modern lift/drag equations: https://wright.nasa.gov/airplane/lifteq.html & ( https://www.grc.nasa.gov/www/k-12/airplane/sized.html, https://www.grc.nasa.gov/www/k-12/airplane/dragco.html, https://www.grc.nasa.gov/www/k-12/airplane/drageq.html, https://www.grc.nasa.gov/www/k-12/airplane/presar.html )

Quick start:

Left-Click to add two vector points for the forward direction vector. (this should normally be in the direction the creations forward reference is) After that, create the area of the fin. Done. You can also add a flap if you want with ( IN_USE + Left-Click ) on a fin and prop. Reload will remove fin and flap, or flap. Right-Click will track selected fin (real-time physics). ( IN_USE + Sroll Wheel ) will increase/decrease the scalar value of the fin you are looking at. The server admin can adjust server settings with the console variables underneath.

How to use:

  • You can find the stand alone tool under: Weapons => Tools => Fin OS Tool
  • Left-Click to apply 3 - 26 local origo originated vector points on prop, to get started. This will calculate the area using .5 the length of the cross product for all the triangles
  • ( IN_USE + Left-Click ) to add a flap. Connect by clicking on the fin/flap and on the flap/fin
  • Right-Click to add fin to tracked fin table
  • Reload to remove fin/flap from prop
  • ( IN_USE + SCROLL_WHEEL ) to increase the scalar value. Look at the fin you want to scale up/down
  • ( IN_USE + MIDDLE_MOUSE ) to open the client settings panel

How it works:

  • It uses real physics to calculate lift from the center of the prop, and real life formula for calculating lift: Force[LIFT] = .5 * rho[AIR] * Velocity[m/s]^2 * Area[m^2] * C[L - angle of attack] - also about uses the same logic for the drag

Features:

  • Supports duplication
  • Supports clean up
  • Supports SBOX max
  • Some ConVar settings
  • Advanced validity checking of area ( when finos_disablestrictmode == 0 )
  • Supports Wiremod input/output ( Physics => FIN OS Tool )

Console Variables

Server

  • finos_maxfin_os_ent ( def. = 20 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Amount of Fin OS fin's possible for each Player to spawn ( only for multiplayer ).
  • finos_rhodensistyfluidvalue ( def. = 1.29 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Mass density ( rho ) that will be applied to Fin OS fin.
  • finos_maxscalarvalue ( def. = 69 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Maximum scalar value a player can apply to a Fin OS fin.
  • finos_disablestrictmode ( def. = 0 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Disables checking for angle of prop and crossing vector lines, if you just want to be joking around ( other servers might not accept the duplicate tho ).
  • finos_disableprintchatmessages ( def. = 1 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Disables printing messages in chat ( only legacy ).

Client

  • finos_cl_enableHoverRingBall_fin ( def. = 1 ) [ FCVAR_ARCHIVE ] - Clientside. Activate or deactivate the markers for a fin.

  • finos_cl_enableHoverRingBall_flap ( def. = 1 ) [ FCVAR_ARCHIVE ] - Clientside. Activate or deactivate the markers for a flap.

  • finos_cl_enableAlignAngleHelpers ( def. = 1 ) [ FCVAR_ARCHIVE ] - Clientside. Activate or deactivate the "Correct Start Angle Helpers".

  • finos_cl_enableForwardDirectionArrow ( def. = 1 ) [ FCVAR_ARCHIVE ] - Clientside. Activate or deactivate the Forward Direction "Arrow".

  • finos_cl_gridSizeX ( def. = 9 ) [ FCVAR_ARCHIVE ] - Clientside. Adjusts the size of the grid in X position.

  • finos_cl_gridSizeY ( def. = 9 ) [ FCVAR_ARCHIVE ] - Clientside. Adjusts the size of the grid in Y position.

  • finos_cl_gridColorR ( def. = 13 ) [ FCVAR_ARCHIVE ] - Clientside. Change the Red channel for the grid color.

  • finos_cl_gridColorG ( def. = 146 ) [ FCVAR_ARCHIVE ] - Clientside. Change the Green channel for the grid color.

  • finos_cl_gridColorB ( def. = 241 ) [ FCVAR_ARCHIVE ] - Clientside. Change the Blue channel for the grid color.

WIND Settings: Server

  • finos_wind_disableAllServerLimits ( def. = 0 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Disables all wind limits set by server.

  • finos_wind_maxForcePerSquareMeterAreaAllowed ( def. = 6000 => ( -6000 - 6000 ) ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Max. Allowed Wind Force Per. Square Meter of Area.

  • finos_wind_minWindScaleAllowed ( def. = 0.1 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Min. Allowed Wild Wind Scale.

  • finos_wind_maxWindScaleAllowed ( def. = 6 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Max. Allowed Wild Wind Scale.

  • finos_wind_maxActivateThermalWindScaleAllowed ( def. = def.: 200 ) [ FCVAR_PROTECTED, FCVAR_ARCHIVE ] - Max. Allowed Thermal Lift Wind Scale.

Client

  • finos_cl_wind_enableWind ( def. = 0 )[ 0 or 1 ] [ FCVAR_ARCHIVE ] - Clientside. Activate Wind.
  • finos_cl_wind_forcePerSquareMeterArea ( def. 300 => ( -300 - 300 ) )[ -300000 - 300000 ] [ FCVAR_ARCHIVE ] - Clientside. Wind Force Per. Square Meter of Area.
  • finos_cl_wind_minWindScale ( def. = 0.4 )[ def.: 0 - 1 ( unit vector ) ] [ FCVAR_ARCHIVE ] - Clientside. Min. Wind Scale.
  • finos_cl_wind_maxWindScale ( def. = 0.8 )[ def.: 0 - 1 ( unit vector ) ] [ FCVAR_ARCHIVE ] - Clientside. Max. Wind Scale.
  • finos_cl_wind_activateWildWind ( def. = 0 )[ 0 or 1 ] [ FCVAR_ARCHIVE ] - Clientside. Activate Wild Wind.
  • finos_cl_wind_minWildWindScale ( def. = 1 )[ def.: 0.1 - 6 ] [ FCVAR_ARCHIVE ] - Clientside. Min. Wild Wind Scale.
  • finos_cl_wind_maxWildWindScale ( def. = 1.13 )[ def.: 0.1 - 6 ] [ FCVAR_ARCHIVE ] - Clientside. Max. Wild Wind Scale.
  • finos_cl_wind_activateThermalWind ( def. = 0 )[ 0 or 1 ] [ FCVAR_ARCHIVE ] - Clientside. Activate Thermal Lift Wind.
  • finos_cl_wind_maxThermalLiftWindScale ( def. = 36 )[ >0.1 - def.: 200 ] [ FCVAR_ARCHIVE ] - Clientside. Max. Thermal Lift Wind Scale.

@todo

  • Make a custom world model for the fin tool SWEP
  • Fix bones, so it will the Players custom player model
  • Small issue with props having different angles ( over 90 degrees ) - compensated for that [ DON'T THINK THIS IS AN ISSUE ANYMORE ]
  • Make the strict mode better ( ? )

Licence

This addon is created by ravo (Norway) or the uploader of this current viewed SWEP on Steam Workshop. All of the custom code created by the creator/uploader (this site), that is given for FIN OS Tool, is supplied under the: CC BY-NC-SA 4.0 Licence If not specified otherwise.

Copyright content

  • The tool model is a modded version of the original Garry's Mod toolgun

Author

ravo Norway

PayPal - ravonorway