Nicksf13 / zombieplague

Garry's mod Gamemode
MIT License
9 stars 9 forks source link

Camouflage class is broken #5

Closed ErickMaksimets closed 4 years ago

ErickMaksimets commented 4 years ago

When you select a camouflage class and enter zp_ability in the console, the game gives an error. It works only when there is one player on the server, or when the zombie has not yet appeared. This also works when you, as a zombie, killed the last human and type zp_ability in console before a new round begins.

Console message: (for humans) [ERROR] gamemodes/zombieplague/gamemode/classes/humans/camouflage.lua:12: attempt to index a nil value

  1. Ability - gamemodes/zombieplague/gamemode/classes/humans/camouflage.lua:12
    1. func - gamemodes/zombieplague/gamemode/sv_eventmanager.lua:371
    2. unknown - lua/includes/extensions/net.lua:32

(for zombies) [ERROR] gamemodes/zombieplague/gamemode/classes/zombies/camouflage.lua:13: attempt to index a nil value

  1. Ability - gamemodes/zombieplague/gamemode/classes/zombies/camouflage.lua:13
    1. func - gamemodes/zombieplague/gamemode/sv_eventmanager.lua:371
    2. unknown - lua/includes/extensions/net.lua:32
Nicksf13 commented 4 years ago

Fixed at branch ZP-5