Jump to content

evict

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by evict

  1. Awesome news, thanks for taking a second look into it. Cheers
  2. @Jbirdmy problem is not with targeting, my problem is with damage. NpcSpawn is preventing damage if skinId = 11162132011012. It returns true in OnEntityTakeDamage in the first line (Where returning anything different than null cancels the damage) Meaning I can make them target each other but they can't damage each other. I can resort to a messy workaround by changing the HitInfo attacker or by duplicating the hit on my plugin, but this is not ideal. My suggestion is a new flag CanDamageNpcSpawns and not anything related to targeting at all
  3. Hi, I`m developing a plugin where players can run a command to spawn a NpcSpawn's NPC that will serve as allies, will follow them and defend. Here is a sneak peak of the plugin: Even though NpcSpawn allow CustomScientists to target and damage regular Npcs I noticed NpcSpawn prevents any damage between two NpcSpawns in this line where it compares the SkinID of the victim and forces a return true in this hook. private object OnEntityTakeDamage(BaseCombatEntity victim, HitInfo info) { if (victim == null || info == null) return null; BaseEntity attacker = info.Initiator; if (IsCustomScientist(victim)) { if (attacker == null || attacker.skinID == 11162132011012) return true; ... if (IsCustomScientist(attacker)) { if (victim.skinID == 11162132011012) return true; ... The problem is I want recruits from different factions to be able to target and damage each other so players can have bot wars. Can you add an additional optional flag in NpcConfig, let's say NpcConfig.CanDamageNpcSpawns? (default false so it does not break any current plugins using NpcSpawn) And then, make this skinId checks only for CustomScientists with the flag set to false so I can spawn my bots with this flag = true and have the ability to damage other NpcSpawns since in my plugin they act as player allies that should be able to fight other player recruits. Thanks!
1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.5k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.