Zet0rz / nzombies

A GM13 Nazi Zombies style (WIP) gamemode
GNU General Public License v3.0
73 stars 79 forks source link

TFA buying weapons doesn't work #664

Open DubstepManCZ opened 6 years ago

DubstepManCZ commented 6 years ago

Ayy. Every single time I try to put a TFA weapon on a wall to buy, it just doesn't work and shows errors.

[TFA Base] lua/weapons/tfa_gun_base/sh_utils.lua:231: attempt to call method 'GetOwner' (a nil value)

  1. OwnerIsValid - lua/weapons/tfa_gun_base/sh_utils.lua:231
    1. GetStat - lua/weapons/tfa_gun_base/sh_attachments.lua:150
    2. GetPrimaryAmmoType - lua/weapons/tfa_gun_base/shared.lua:1472
      1. unknown - addons/nzombies-master-workshop/gamemodes/nzombies/entities/entities/wall_buys/shared.lua:216

The mod I'm using is: https://steamcommunity.com/sharedfiles/filedetails/?id=923947785 pls fix Zet0rz.

DubstepManCZ commented 6 years ago

Also, I tried every single weapon, with different prices from free to a milion, nothing worked.

Napalmburner commented 6 years ago

my boy are you wielding a TFA Base weapon before you try to buy the TFA weapon off the wall?

if you aren't it won't work. Why? I have no idea

Punkinator7 commented 6 years ago

According to the error, It tried to find the primary ammo type, but I guess it couldn't find it.

DubstepManCZ commented 6 years ago

I got a fix so now the weapons work, but I can't buy ammo.