Garry's Mod

Garry's Mod

770 ratings
[simfphys] Randy's Extra Functions
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
5.153 MB
Nov 21, 2022 @ 6:08am
Mar 2, 2023 @ 8:02am
28 Change Notes ( view )

Subscribe to download
[simfphys] Randy's Extra Functions

Description
This is my cool extra simfphys features addon. It is probably very badly written since I am not a coder and I don't know what I'm doing 90% of the time, so please excuse any performance issues. (Although I did testing and it doesn't seem to affect performance too much.)

What you get out the box on ALL simfphys vehicles:
  • Advanced Ignition: All your vehicles will now use actual ignitions instead of just starting up instantly. This also affects low health vehicles, as they'll like to stall more and they'll be harder to start up.
  • Brake disc sounds: trucks will use air brake sounds too
  • Possibility of vehicles being alarmed: Some vehicles will spawn with alarms. Lock them and turn them off to arm.
  • Reverse Gear Transmission sound: Reverse gear now plays a sound, like in GTA:SA but with HD sounds :)
  • More effects for low health vehicles: Damaged vehicles will huff and puff and backfire more often.
  • Randomized Fuel: Simfphys cars spawn with random amounts of fuel in their tanks.
  • Fuel Tool: A tool that can set the current and max fuel amount in a simfphys vehicle.

What you CAN get with simfphys vehicles that support this addon:
  • Randomized License Plates: pretty cool maybe
  • Randomized colors on spawn
  • Randomized bodygroups on spawn
  • Randomized skins on spawn
  • Physical trailer legs: Code is from NotAKid, thank you NAK, very cool
  • Bullhorns for emergency vehicles
  • Reverse beeping
  • Custom Ignition sounds - Also custom shutdown sound that simfphys shoulda really included the option for by default
  • EMS Radio

Also,
Most settings can be changed in the simfphys menu, or via ConVars.
Convars:
sv_simfphys_brakenoises
sv_simfphys_license_plates
sv_simfphys_trailer_legs
sv_simfphys_advanced_ignition
sv_simfphys_bullhorn
sv_simfphys_alarms
cl_simfphys_randomcolors
cl_simfphys_randombodygroups
cl_simfphys_vehiclepresets
cl_simfphys_bus_safety_brakes
cl_simfphys_randomfuel
cl_simfphys_randomfuel_min

All convars have help text in the console.

Supported Addons
Left 4 Dead Vehicles
BMW M3 GTR
Days Gone Pack
Volkswagen Polo
Submit your addon in the comments if you added support!

Incompatible Addons
None known yet, please report addons that are incompatible!

In the future this addon might get more features. This way it's easier for me to apply cool changes to ALL my vehicles without having to update every single addon individually.

If you want to steal code from this addon to use for yourself or because you can't change something you wanna change, please suggest it to me instead, if it's good enough of a change I will add it to this addon if I can
Popular Discussions View All (3)
22
Mar 13, 2023 @ 11:40am
Ways to improve this slightly.
Alex
4
1
May 31 @ 4:11pm
advanced ignition suggestion
Bugster
0
Nov 21, 2022 @ 8:26am
PINNED: FOR MOD CREATORS:
Randy
130 Comments
Miles May 28 @ 9:11am 
can you make it so you can change the fuel between petrol and diesel cause i want my ford f250 truck on left 4 dead car pack to sound like a petrol truck
Hiro Apr 28 @ 5:55pm 
https://steamcommunity.com/sharedfiles/filedetails/?id=2437373117&searchtext=GTA+4 Hello I have a question, could someone make it work with this mod, please?
Cherrie_The_Shifter ΘΔ Apr 28 @ 12:32am 
Please fix this mod
Max Apr 17 @ 12:50pm 
How do you set off the alarm
NextKurome76TheSoldier Apr 7 @ 3:09pm 
[[simfphys] Randy's Extra Functions] lua/simfphysextra/shared.lua:624: attempt to index local 'ply' (a nil value)
1. SetRandomFuel - lua/simfphysextra/shared.lua:624
2. v - lua/simfphysextra/hooks.lua:17
3. Run - lua/includes/modules/hook.lua:102
4. SetupVehicle - lua/entities/gmod_sent_vehicle_fphysics_base/spawn.lua:608
5. unknown - lua/entities/gmod_sent_vehicle_fphysics_base/spawn.lua:439
i love holden Dec 27, 2024 @ 7:43pm 
aegis1994 Nov 30, 2024 @ 10:48pm 
On November i uploaded this addon wich is compatible with this addon!
https://steamcommunity.com/sharedfiles/filedetails/?id=3347806290