Results 1 to 9 of 9

Thread: How can i make traders killable?

  1. #1
    Survivor Bestia's Avatar
    Join Date
    Apr 2015
    Location
    Scandinavia
    Posts
    97
    Rep Power
    0

    How can i make traders killable?

    I have been modding the traders on my server. The traders on my server is wandering around instead of beeing stuck in the trader area. They also kill bandits, zombies and animals. To make this game more realistic i need to make traders "killable".
    I have gone through all my xml's to find a way to modify this, but i cant find it. Max health is set, but they simply wont die.

    Does anyone know how to make traders killable?

    Thanks in advance.



  2. #2
    Inventor Alphado-Jaki's Avatar
    Join Date
    Feb 2016
    Location
    Japan
    Posts
    846
    Rep Power
    1
    You can't, sadly....

  3. #3
    Inventor dwallorde's Avatar
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    922
    Rep Power
    1
    You can't while keeping the game EAC friendly. Modifying one of the dll files is where you can change that afaik. But doing so breaks EAC

  4. #4
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    20,971
    Rep Power
    1
    Is the trader spawn block what causes the protection or is it a separate block?

  5. #5
    Hunter kattenijin's Avatar
    Join Date
    Jan 2015
    Posts
    109
    Rep Power
    1
    The zeds can kill traders, just leave the doors open. They don't respawn though, so that location will be closed unless you spawn in a replacement.

  6. #6
    Survivor Bestia's Avatar
    Join Date
    Apr 2015
    Location
    Scandinavia
    Posts
    97
    Rep Power
    0
    Quote Originally Posted by dwallorde View Post
    You can't while keeping the game EAC friendly. Modifying one of the dll files is where you can change that afaik. But doing so breaks EAC
    Thanks. EAC is not activated on ny server. Do you know which .DLL must be edited?

    - - - Updated - - -

    - - - Updated - - -

  7. #7
    Refugee
    Join Date
    Jun 2019
    Posts
    2
    Rep Power
    0
    ... Well..?

  8. #8
    Hunter backdownhipi's Avatar
    Join Date
    Aug 2017
    Posts
    106
    Rep Power
    1
    assembly-csharp.dll

    its possible this is involved with why traders cant be killed
    Code:
    	// Token: 0x06002F72 RID: 12146 RVA: 0x001611F5 File Offset: 0x0015F5F5
    	public override int DamageEntity(DamageSource _damageSource, int _strength, bool _criticalHit, float _impulseScale)
    	{
    		if (this.NPCInfo != null && this.NPCInfo.TraderID > 0)
    		{
    			return 0;
    		}
    		return base.DamageEntity(_damageSource, _strength, _criticalHit, _impulseScale);
    	}
    
    	// Token: 0x06002F73 RID: 12147 RVA: 0x00161220 File Offset: 0x0015F620
    	public override void ProcessDamageResponseLocal(DamageResponse _dmResponse)
    	{
    		if (this.NPCInfo != null && this.NPCInfo.TraderID > 0)
    		{
    			return;
    		}
    		base.SetAttackTarget((EntityAlive)GameManager.Instance.World.GetEntity(_dmResponse.Source.getEntityId()), 600);
    		base.ProcessDamageResponseLocal(_dmResponse);
    	}
    
    	// Token: 0x06002F74 RID: 12148 RVA: 0x0016127C File Offset: 0x0015F67C
    	public override void AwardKill(EntityAlive killer)
    	{
    		if (this.NPCInfo != null && this.NPCInfo.TraderID > 0)
    		{
    			return;
    		}
    		base.AwardKill(killer);
    	}

  9. #9
    Colony Founder KhaineGB's Avatar
    Join Date
    Apr 2017
    Location
    Liverpool, UK
    Posts
    1,699
    Rep Power
    1
    Use sphereii's wandering traders SDX/DMT mod.

    It removes the god mode from traders.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •