Gmod: useful LUA scripts

Where we come together to shoot 5punk.

Moderator: Forum Moderators

Post Reply
Stoat
Site Admin
Site Admin
Posts: 3291
Joined: October 8th, 2004, 15:48
Location: Sheffield, UK
Contact:

Gmod: useful LUA scripts

Post 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.
ProfHawking
Zombie
Zombie
Posts: 2101
Joined: February 20th, 2005, 21:31

Post 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.
Stoat
Site Admin
Site Admin
Posts: 3291
Joined: October 8th, 2004, 15:48
Location: Sheffield, UK
Contact:

Post 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)
cashy
Zombie
Zombie
Posts: 2024
Joined: May 9th, 2005, 19:43
Location: shropshire

Post 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 :)
Post Reply