Page 1 of 1

Gmod: useful LUA scripts

Posted: October 2nd, 2006, 13:45
by Stoat
#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.

Posted: October 2nd, 2006, 14:45
by ProfHawking
very handy. its not perfect though. things still seem to keep the orginal momentum, even though they weigh less. Its curious but better than nothing.

Posted: October 2nd, 2006, 16:01
by Stoat
Not sure if there's anything we can do about that.

However- it does have good some points:
Tin Can Cannonball! (wmv, 500kb)

Posted: October 2nd, 2006, 17:19
by cashy
Stoat wrote:Not sure if there's anything we can do about that.

However- it does have good some points:
Tin Can Cannonball! (wmv, 500kb)
w000t! you should make some boats equiped with those :)