Garry's Mod
30,616 voti
[simfphys] LUA Vehicles - Base
34
14
98
8
14
27
26
13
21
10
5
17
11
10
9
8
4
2
2
3
5
5
4
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Build, Fun
Dimensioni del file
Pubblicato in data
Aggiornato in data
139.116 MB
28 set 2016, ore 12:10
6 gen, ore 7:33
145 note di rilascio ( visualizza )

Sottoscrivi per scaricare
[simfphys] LUA Vehicles - Base

Descrizione



Original Description from 2016:

After a long time i have finally converted my vehicle handling E2 to Lua and decided to share it with everyone.
This addon will give you a very new feel of driving a vehicle in gmod. Some of the features are:
Engine powerband, automatic/manual transmission with realistic gearing, Traction settings that reach from sliding like on ice to driving like its on rails, ingame vehicle editing (also works in multiplayer!) and a simple inbuilt lighting and emergency light system. (not as good and optimised as vcmod or photon though)

You can convert any Valve Script Car (this includes LW, TDM, SGM and all the other vehicles that use the prop_vehicle_jeep class as base) , SCars or simple non driveable models to this handling system.
Im not sure when the vehicle creation Guide will be done. However you can just take a look at the existing spawnlists here[github.com] and use them as reference. (The link also has an enginesound example with gearchanges.) They will regulary be updated and have alot of comments in them so there is only basic lua knowledge needed. BUT MAKE SURE YOU RENAME THE FILES BECAUSE YOU WILL OVERWRITE THE ORIGINAL ONES IF YOU DONT



Restored Description from 2023 (updated):

simfphys is a vehicle entity script that is primarily aimed for four-wheeled-ground-vehicles. These vehicles can be edited ingame, thats cool i guess, but don't put all sliders on max and expect good handling lmao.

PLEASE READ:
Do not save or duplicate simfphys vehicles using anything else than the simfphys vehicle duplicator. No map saving, no gmod dupe, no adv dupe 1, no adv dupe 2. It is not, never was, and never will be supported. This is due to bad internal construction of the addon itself



Requirements:
  • High or unclamped Velocity limit. If you are running DarkRP you will have to increase the velocity limit[github.com]
  • Keep "gmod_physiterations" set to it's default value (4) and "air_density" set to default (2), as these vehicles are tweaked to work on a physics environment with default-settings.
  • Tickrate set to atleast 33. Simfphys can work with lower tickrates, but handling and performance will suffer. Best results are on DEFAULT 66.66..-tick.



some features you (maybe) didn't know about:



console commands
  • sv_simfphys_enabledamage
    - enable/disable vehicle damage. 0 = disabled, 1 = enabled

  • sv_simfphys_gib_lifetime
    - gib lifetime, value is in seconds. 0 = Never despawn

  • sv_simfphys_playerdamage
    - enable/disable players collision damage (in vehicle). 0 = disabled, 1 = enabled

  • sv_simfphys_damagemultiplicator
    - increase/decrease vehicle collision damage. default = 0

  • sv_simfphys_fuel
    - enable/disable fuel system. 0 = disabled, 1 = enabled

  • sv_simfphys_fuelscale
    - scales the fuel tank size for all vehicles. default = 0.1, 1 = realistic fueltank size (up to 3 hours of fullthrottle driving)

  • lua_run local tbl = physenv.GetPerformanceSettings() tbl.MaxVelocity = 200000000 physenv.SetPerformanceSettings(tbl)
    - increase max velocity (topspeed) (doesnt work in darkrp. you have to edit the gamemode[github.com] for that)

  • sv_simfphys_teampassenger
    - only allow players of the same team to enter the same vehicle? 1 = team only, 0 = everyone can enter



included/supported vehicles (I do not take credit for any of these)



Thanks to
  • SligWolf for scripting help and teaching me how to rig/animate in XSI.
  • Spacecode for scripting help.
  • Salza for playtesting, some model editing and mental support



Links
GitHub[github.com]
Discord[discord.gg]



No version or modification of this content is allowed to be uploaded to the workshop except under the account ID 76561197995010235