Fixed Super Gravity Gun SWEP
Please read the description.
NOTICE: The August 2020 update for Garry’s Mod has added the Super Gravity Gun back, which uses the physcannon_mega_enabled cvar.
There’s a few more features available in this mod’s weapon than in vanilla, but it is up to you if you want to use this mod.
This mod does not modify the vanilla Super Gravity Gun already in the game. Instead, it has optional functionality to disable and replace it with the recreated SWEP as it is.
This is a fixed and updated version of this addon which in turn, is a fix of an old addon from the garrysmods.org website.
Now with no more food-hurling glow errors!
This is the Super Gravity Gun, otherwise known as Dark-Energy Field Manipulator, from the final levels of Half-Life 2.
Primary: Punt objects in front or held by you.
Secondary: Pick up objects. Can be held down.
(Any bugs/problems must be reported in the Report Problems-n-Bugs discussion below. Again, this SWEP is not a perfect recreation.)
If the SCGG acts all weird or weapons keep dissolving, you need to set the weapon’s state to 1 by either:
1. Setting ‘Weapon Status’ to 1 in the Utilities > Half-Life 2 > Info / Settings menu.
2. Setting scgg_enabled to 1 in the console.
From pillow’s version:
Switches between HL2 or Gmod styles, respectively.
Lighting up world when doing something. (Punting, holding, etc.)
Muzzle flash upon punt.
Electrocution effects on ragdolls.
Toggle no glowing sprites and similar from the SWEP.
Added:
Toggle weapon availability, along with some optional settings (if 2).
Toggle whether the map can modify the above cvar.
Cone detection for secondary attack.
Toggle whether players can have access to the normal version of the Gravity Gun in scgg_enabled 2 mode.
Toggle armor drainage after scgg_enabled is set to 0, seen in HL2:EP1’s Direct Intervention chapter.
0 = Remove all armor. 1 = Lower to 100. 2 = Keep armor.
Interact and kill friendly npcs directly. Another addon is required to stop indirect friendly fire.
Vaporize dropped weapons that are not part of the map. Automatically enabled/disabled depending on scgg_enabled, but can still be changed.
0 = Disabled. 1 = Always on think. (Not recommended) 2 = On player/NPC death.
Toggle the gatling primary fire seen in HL2:EP1, used by spam-clicking.
Set which mode the claws will be on.
0 = Closed. 1 = Open. 2 = Dynamic. (Similar to the normal gravity gun.)
Allow interaction of other entities with the SWEP.
Toggle sound from electrocuting ragdolls. Will have no effect if the electrocution is off.
Toggles deploying sound.
Toggle deploying style. Legacy attribute from scgg_style.
0 = HL2 speed. 1 = sv_defaultdeployspeed convar.
Toggle whether the weapon should affect other players.
Related to the vanilla SCGG:
Toggle whether the mods extra functionality is enabled or not. Stuff like giving the mod SCGG if scgg_enabled is 2, etc.
Toggle whether the vanilla Super Gravity Gun should be used.
CLIENT:
{EXPERIMENTAL}
Get a viewmodel path from the prop spawnlist’s ‘Copy to Clipboard’ and paste into the command to change viewmodel.
Make the SCGG’s effects use the physgun color. Other people can see your choice of colors.
Set the effect style to emulate from a game. Third-person is not affected.
0 = Half-Life 2. 1 = Half-Life 2 Survivor.
You can find a github version of this here,[github.com] in case subscription doesn’t work.
However I tend to prioritize the workshop version more than github, so expect to download an outdated version in the link.
– This gun has a myriad of prediction issues in multiplayer. Effects and sounds may not work correctly.
To easily change the SCGG viewmodel to the vanilla physgun…
Copy-paste this into the developer console:
cl_scgg_viewmodel models/weapons/c_superphyscannon.mdl
If you want to go back to the addon’s normal model:
cl_scgg_viewmodel models/weapons/shadowysn/c_superphyscannon.mdl
To get the model paths…
Right-click on a prop in the Spawnlists tab, not on Weapons. Then, click on ‘Copy to clipboard’. The prop should preferably be a viewmodel, otherwise strange things can happen.
If you want other different viewmodels that aren’t reskins of the physgun…
There’s an Addons folder in Browse, located just below the Builder section, or Your Spawnlists folder if you’ve got the spawnlists closed.
Open the Addons folder and then choose a directory that has the same name as the addon you want.
Copy the viewmodel’s path to clipboard by using the method described in To get the model paths…