Garry's Mod Wiki

GM:OnPhysgunReload

  boolean GM:OnPhysgunReload( Weapon physgun, Player ply )

Description

Called when a player reloads with the physgun. Override this to disable default unfreezing behavior.

Regardless of whether or not you return true or false, it will disable reloading. Only returning nil/nothing will allow reloading. The intended behavior should be that returning false disables reloading.

Arguments

1 Weapon physgun
The physgun in question.
2 Player ply
The player wielding the physgun.

Returns

1 boolean
Whether the player can reload with the physgun or not/