Garry's Mod

Garry's Mod

GibSplat2+Expression (updated version of GibSplat2!!!)
Tried to use a NULL entity!
Hi! I tried to fix some bugs. If you are troubled by these bugs, you can give it a try.:nepnep:
Last edited by HAL9000; 18 Sep @ 1:25am
< >
Showing 1-2 of 2 comments
HAL9000 11 Sep @ 7:47am 
"Tried to use a NULL entity!"

It often occurs when you turn an anime girl into Pancake Family or blow her sky-high.

e.g.
[gib] addons/gib/lua/gibsplat2/sv_hooks.lua:29: Tried to use a NULL entity! 1. unknown - [C]:-1 2. SetDamageInfoVars - addons/gib/lua/gibsplat2/sv_hooks.lua:29 3. v - addons/gib/lua/gibsplat2/sv_hooks.lua:39 4. unknown - lua/includes/modules/hook.lua:102 5. TakeDamageInfo - [C]:-1 6. v - lua/autorun/server/npc_falldamage.lua:79 7. unknown - lua/includes/modules/hook.lua:102
Last edited by HAL9000; 11 Sep @ 8:31am
HAL9000 11 Sep @ 8:23am 
Originally posted by HAL9000:
"Tried to use a NULL entity!"

It often occurs when you turn an anime girl into Pancake Family or blow her sky-high.
e.g.
[gib] addons/gib/lua/gibsplat2/sv_hooks.lua:29: Tried to use a NULL entity! 1. unknown - [C]:-1 2. SetDamageInfoVars - addons/gib/lua/gibsplat2/sv_hooks.lua:29 3. v - addons/gib/lua/gibsplat2/sv_hooks.lua:39 4. unknown - lua/includes/modules/hook.lua:102 5. TakeDamageInfo - [C]:-1 6. v - lua/autorun/server/npc_falldamage.lua:79 7. unknown - lua/includes/modules/hook.lua:102
open the file: addon/lua/gibsplat2/sv_hooks.lua, find the SetDamageInfoVars function (line 27)
local function SetDamageInfoVars(dmginfo, vars) for var, value in pairs(vars) do dmginfo["Set"..var](dmginfo, value) end end
replace the original function with this modified version:
local function SetDamageInfoVars(dmginfo, vars) for var, value in pairs(vars) do if isentity(value) and not IsValid(value) then continue end dmginfo["Set"..var](dmginfo, value) end end
Last edited by HAL9000; 12 Sep @ 2:07am
< >
Showing 1-2 of 2 comments
Per page: 1530 50