A subclass of SpikerHead that configures a miniboss variant. It increases spawn scale and animation playback, shortens lifetime, raises hit force, and sets damage based on the game's difficulty.
using System;
using Sandbox;
public class SpikerHeadMiniboss : SpikerHead
{
public override Vector3 SpawnScale => new Vector3( 1.7f );
protected override void OnStart()
{
base.OnStart();
Lifetime = 1f;
ModelRenderer.PlaybackRate = 1.7f;
if ( IsProxy )
return;
_hitForce = 380f;
//_depthBottom = -200f;
//_depthTop = -175f;
Damage = Utils.Select( Manager.Instance.Difficulty, 10f, 12f, 13f );
}
}