A game entity class SpikerHeadElite that inherits from SpikerHead. It increases spawn scale, sets a shorter lifetime, raises hit force and selects damage based on the game's difficulty when started, skipping server-only work for proxy instances.
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 );
}
}