Skip to content

CanFireLiquidWeapon

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanFireLiquidWeapon( BasePlayer player, LiquidWeapon instance )
{
    Puts( "CanFireLiquidWeapon works!" );
}

Location

  • LiquidWeapon::CanFire(BasePlayer player)
csharp
private bool CanFire(BasePlayer player)
{
	object returnvar = Interface.CallHook("CanFireLiquidWeapon", player, this);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	if (this.RequiresPumping && this.pressure < this.PressureLossPerTick)
//---

Released under the MIT License.