Garry's Mod

Garry's Mod

GibSplat2+Expression (GibSplat2表情修复+汉化版)
HAL9000 9 月 11 日 上午 7:26
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:
最后由 HAL9000 编辑于; 9 月 18 日 上午 1:25
< >
正在显示第 1 - 2 条,共 2 条留言
HAL9000 9 月 11 日 上午 7:47 
"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
最后由 HAL9000 编辑于; 9 月 11 日 上午 8:31
HAL9000 9 月 11 日 上午 8:23 
引用自 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
最后由 HAL9000 编辑于; 9 月 12 日 上午 2:07
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50