Gmod: useful LUA scripts
Posted: October 2nd, 2006, 13:45
#1 in a series of several million
The Mass Changer
A gun to change the mass of objects? Yes please!
Installation
Copy the script and paste it in to Notepad. Save the script as weapon_masschanger.lua in C:\YourSteamInstallDirectory\steamapps\SourceMods\gmod9\lua\weapons\Misc\*
*the directories in weapons are the categories you see in the spawn menu. You can call Misc whatever you like.
Use
Spawn from the SWEP menu in spawnable objects.
A green number next to your crosshair shows the distance of whatever you're looking at.
If you look at an object it will display its weight below in green.
Below this is a number in red. Use Secondary Fire to change this number.
Use Primary Fire to apply the red-number's change to the object.
The Mass Changer
A gun to change the mass of objects? Yes please!
Installation
Copy the script and paste it in to Notepad. Save the script as weapon_masschanger.lua in C:\YourSteamInstallDirectory\steamapps\SourceMods\gmod9\lua\weapons\Misc\*
*the directories in weapons are the categories you see in the spawn menu. You can call Misc whatever you like.
Use
Spawn from the SWEP menu in spawnable objects.
A green number next to your crosshair shows the distance of whatever you're looking at.
If you look at an object it will display its weight below in green.
Below this is a number in red. Use Secondary Fire to change this number.
Use Primary Fire to apply the red-number's change to the object.