OnWeaponModChange
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnWeaponModChange( BaseProjectile instance, BasePlayer GetOwnerPlayer() )
{
Puts( "OnWeaponModChange works!" );
return null;
}Location
- BaseProjectile::DelayedModsChanged()
csharp
public void DelayedModsChanged()
{
if (Interface.CallHook("OnWeaponModChange", this, this.GetOwnerPlayer()) != null)
{
return;
}
int num = Mathf.CeilToInt(ProjectileWeaponMod.Mult(this, ProjectileWeaponMod.SelectMagCap, ProjectileWeaponMod.SelectScalar, false) * (float)this.primaryMagazine.definition.builtInSize);
if (num == this.primaryMagazine.capacity)
//---