Skip to content

CanSamSiteShoot

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object CanSamSiteShoot( SamSite instance )
{
    Puts( "CanSamSiteShoot works!" );
    return null;
}

Location

  • SamSite::WeaponTick()
csharp
//---
		{
			firedCount = 0;
			return;
		}
		EnsureAmmoLoaded();
		if (Interface.CallHook("CanSamSiteShoot", this) == null && HasAmmo())
		{
			bool num = ammoItem != null && ammoItem.amount == lowAmmoThreshold;
			if (!staticRespawn && ammoItem != null)
			{
				ammoItem.UseItem();
//---

Released under the MIT License.