Please can you update the code with this new hallowen torch?Solved
torch.torch.skull is the shortname of the new torch.
it would be better to include this entity as well
i edit RealisticTorch.cs not knowing how to program in c but work 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);
        }​

This has been added.

Locked automatically