Garry's Mod

Garry's Mod

Fixed Super Gravity Gun SWEP
Shadowysn  [developer] 26 Jul, 2022 @ 6:44pm
Technical Stuff (console commands, etc)
Console Commands
From pillow's version:
ConVar
Values
Default
Description
scgg_style
0 to 1
0
Switches between HL2 or Gmod styles, respectively.
scgg_light
0 to 1
0
Lighting up world when doing something. (Punting, holding, etc.)
scgg_muzzle_flash
0 to 1
1
Muzzle flash upon punt.
scgg_zap
0 to 1
1
Electrocution effects on ragdolls.
scgg_no_effects
0 to 1
0
Toggle no glowing sprites and similar from the SWEP.

Added:
ConVar
Values
Default
Description
scgg_enabled
0 to 2
1
Toggle weapon availability, along with some optional settings (if 2).
0 = any super-charged gravity gun will revert to normal.
1 = Enable, don't do anything else.
2 = Enable, alter various settings.
scgg_allow_enablecvar_modify
0 to 1
0
Toggle whether the map can modify the above cvar.
scgg_cone
0 to 1
1
Cone detection for secondary attack.
scgg_normal_switch
0 to 1
1
Toggle whether players can have access to the normal version of the Gravity Gun in scgg_enabled 2 mode.
scgg_keep_armor
0 to 2
0
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.
scgg_friendly_fire
0 to 1
1
Interact and kill friendly npcs directly. Another addon is required to stop indirect friendly fire.
scgg_weapon_vaporize
0 to 2
0
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.
scgg_primary_extra
0 to 1
0
Toggle the gatling primary fire seen in HL2:EP1, used by spam-clicking.
scgg_claw_mode
0 to 2
1
Set which mode the claws will be on.
0 = Closed.
1 = Open.
2 = Dynamic. (Similar to the normal gravity gun.)
scgg_allow_others
0 to 1
1
Allow interaction of other modded entities with the SWEP.
scgg_zap_sound
0 to 1
1
Toggle sound from electrocuting ragdolls. Will have no effect if the electrocution is off.
scgg_equip_sound
0 to 1
0
Toggles deploying sound.
scgg_deploy_style
0 to 1
1
Toggle deploying style. Legacy attribute from scgg_style.
0 = HL2 speed.
1 = sv_defaultdeployspeed convar.
scgg_affect_players
0 to 1
1
Toggle whether the weapon should affect other players.

Related to the vanilla SCGG:
ConVar
Values
Default
Description
scgg_extra_function
0 to 1
1
Toggle whether the mods extra functionality is enabled or not. Stuff like giving the mod SCGG if scgg_enabled is 2, etc.
scgg_vanilla_disable
0 to 1
1
Toggle whether the vanilla Super Gravity Gun should be used.

Client-sided:
ConVar
Values
Default
Description
cl_scgg_viewmodel
View-Model Path
<too long for list>
Get a viewmodel path from the prop spawnlist's 'Copy to Clipboard' and paste into the command to change viewmodel.
cl_scgg_physgun_color
0 to 2
0
Make the SCGG's effects use the physgun color. Other people can see your choice of colors.
1 = Player color.
2 = Physgun color.
cl_scgg_effects_mode
0 to 1
0
Set the effect style to emulate from a game. Third-person is not affected.
0 = Half-Life 2.
1 = Half-Life 2 Survivor.


To 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 for other viewmodels...
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...
Last edited by Shadowysn; 26 Jul, 2022 @ 7:23pm