Zet0rz / nZombies-Unlimited

nZombies Unlimited
MIT License
43 stars 15 forks source link

script error when meleeing any kind of entity #52

Open Teacyn opened 5 years ago

Teacyn commented 5 years ago

might be a TFA issue

[ERROR] gamemodes/nzombies-unlimited/gamemode/health.lua:28: Tried to use a NULL entity!
  1. GetPos - [C]:-1
   2. unknown - gamemodes/nzombies-unlimited/gamemode/health.lua:28
    3. DispatchTraceAttack - [C]:-1
     4. ApplyDamage - lua/weapons/tfa_melee_base/shared.lua:255
      5. Strike - lua/weapons/tfa_melee_base/shared.lua:627
       6. StrikeThink - lua/weapons/tfa_melee_base/shared.lua:515
        7. Think2 - lua/weapons/tfa_melee_base/shared.lua:429
         8. Think2 - lua/weapons/tfa_ins2_melee_base.lua:82
          9. PlayerThink - lua/weapons/tfa_gun_base/shared.lua:723
           10. fn - lua/tfa/modules/tfa_hooks.lua:47
            11. unknown - lua/ulib/shared/hook.lua:109

Using the KA-BAR from https://steamcommunity.com/sharedfiles/filedetails/?id=1376312181 Have all dependencies installed.

Teacyn commented 5 years ago

I'd like to add on to this even though this isn't directly connected.

Could we possibly get some kind of automatic support for the TFA and CW melee bases? So that any weapon using them would automatically get moved to the V slot. That way we can make proper melee upgrades once weapon stat editing is a thing, and we can also use actual knives.

After re-thinking it a bit + Discord discussion, I've decided that a better approach would probably be to just let config creators manually define if a weapon is a Primary, Melee, or Grenade. Would give more freedom and less conflicts.