Garry's Mod

Garry's Mod

[WIP] iNPC Opti+ (optimised and expanded)
Cain 8 月 19 日 上午 7:15
Bug
In some cases, with a bad config, NPCs become immortal and the following error occurs. It is fixed via inpc_cleanup 1, but I would like to not have to get into the guts of the addon to fix this bug

[[WIP] iNPC Opti+ (optimised and expanded)] lua/autorun/server/sv_inpc.lua:825: attempt to index a nil value 1. fn - lua/autorun/server/sv_inpc.lua:825 2. Call - lua/ulib/shared/hook.lua:109 3. BeginDeath - lua/entities/npc_vj_creature_base/init.lua:3269 4. unknown - lua/entities/npc_vj_creature_base/init.lua:3177 5. FireBullets - [C]:-1 6. PrimaryAttack - lua/weapons/tacrp_base/sh_shoot.lua:342 7. fn - lua/tacrp/shared/sh_move.lua:119 8. unknown - lua/ulib/shared/hook.lua:109