New Wolves not appearingSolved

I could of swore they were showing in chat after player kills but now they stopped..Anyone else not seeing them in kill feed ?

The issue is that Facepunch renamed Wolf to Wolf2 with the new AI version. To fix, please update this function in your plugin:

		private CombatEntityType GetCombatEntityType(BaseEntity entity)
		{
			if (entity == null)
				return CombatEntityType.None;

			if (_combatEntityTypes.Contents != null)
			{
				if (_combatEntityTypes.Contents.ContainsKey(entity.GetType().Name))
					return _combatEntityTypes.Contents[entity.GetType().Name];

				if (_combatEntityTypes.Contents.ContainsKey(entity.ShortPrefabName))
					return _combatEntityTypes.Contents[entity.ShortPrefabName];
			}

			//Added by Terceran on 9/1/2024
			if (entity.GetType().Name.Equals("PatrolHelicopter"))
				return CombatEntityType.Helicopter;

			//Added by Terceran on 10/7/2024
			if (entity.GetType().Name.Equals("SimpleShark"))
				return CombatEntityType.Animal;

			//Added by Terceran on 11/7/2024
			if (entity.GetType().Name.Equals("Wolf2"))
				return CombatEntityType.Animal;

			if (entity is BaseOven)
				return CombatEntityType.HeatSource;

			if (entity is SimpleBuildingBlock)
				return CombatEntityType.ExternalWall;

			if (entity is BaseAnimalNPC)
				return CombatEntityType.Animal;

			if (entity is BaseTrap)
				return CombatEntityType.Trap;

			if (entity is Barricade)
				return CombatEntityType.Barricade;

			if (entity is IOEntity)
				return CombatEntityType.Trap;

			if (entity is ScientistNPC)
				return CombatEntityType.Scientist;

			if (entity.GetType().Name.Equals("ZombieNPC"))
				return CombatEntityType.ZombieNPC;

			return CombatEntityType.Other;
		}​


Be sure to also update the Names block in your plugin config file such that the Wolf2 line reads:
      "Wolf2": "Wolf"​
Terceran Thank you , Im not very good with these plugins but i simply copied pasted ur addons into the file and now its working...Thanks so much for ur reply, Now do you know anything bout Patrol heli messages .... How to get the messages back when PAtrol kills a player with rockets or the gun fire ? Also How to get it to show when a player downs the patrol ? I did add ur patrolhelicopter file to my Data file also

Funny you should ask, because yes, I figure out the Patrol Heli issue after a fair amount of time. I also added in a capability of having it announce who tags it. Check out the other (lenthy) discussion on that topic where I posted the code fixes for that. If you run into any issues with that, don't hesitate to reach out.

Terceran Thank you for updating the plugin, you are perfect.

Thanks for this fix man

Locked automatically