| torch.torch.skull is the shortname of the new torch. it would be better to include this entity as well |
LINE 71 EDIT)
if ((ActiveItemIsTorch(player) && IsTorchOn(player)) || (ActiveItemIsHT(player) && IsHTOn(player)))
--------------------------------------------------------------------------------------------------------------
LINE 87 ADD)
private bool ActiveItemIsHT(BasePlayer player)
{
var item = player.GetActiveItem()?.info.shortname ?? "null";
return item == "torch.torch.skull";
}
private bool IsHTOn(BasePlayer player)
{
HeldEntity torch = player.GetHeldEntity();
if (torch == null)
return false;
return torch.HasFlag(BaseEntity.Flags.On);
}