A specialized enemy class that inherits from SpikerHead. It increases the spawn scale, sets a short lifetime, raises hit force, and selects Damage based on the game difficulty. It skips server-only changes when running as a network proxy.
using System;
using Sandbox;
public class SpikerHeadElite : SpikerHead
{
public override Vector3 SpawnScale => new Vector3( 1.5f );
protected override void OnStart()
{
base.OnStart();
Lifetime = 1.4f;
if ( IsProxy )
return;
_hitForce = 380f;
//_depthBottom = -200f;
//_depthTop = -175f;
Damage = Utils.Select( Manager.Instance.Difficulty, 9f, 11f, 13f );
}
}