Skip to content

OnWeaponReload

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnWeaponReload( BaseProjectile instance, BasePlayer player )
{
    Puts( "OnWeaponReload works!" );
    return null;
}

Location

  • BaseProjectile::StartReload(BaseEntity.RPCMessage msg)
csharp
//---
	{
		SendNetworkUpdate();
		reloadStarted = false;
		reloadFinished = false;
	}
	else if (Interface.CallHook("OnWeaponReload", this, player) == null)
	{
		reloadFinished = false;
		reloadStarted = true;
		fractionalInsertCounter = 0;
		if (CanRefundAmmo)
//---

Released under the MIT License.