07-13-2018, 12:22 AM
(07-13-2018, 12:14 AM)courtana Wrote: So all the bodies are disappearing after they die on the TTT server, anyone know why that is or can fix the problem? T's can't defib with this problem and you can't ID the bodies either.so from what i gather, gmod likes to kill your files for some reason when you download things.
try this fix:
go to \SteamLibrary\steamapps\common\GarrysMod\garrysmod\gamemodes\terrortown\gamemode or whatever path you have. most commonly will be C:\Program Files x86\Steam\steamapps etc
in gamemode, open corpse_shd.lua with notepad or something that can write in it
paste this whole thing right here:
---- Shared corpsey stuff
CORPSE = CORPSE or {}
-- Manual datatable indexing
CORPSE.dti = {
BOOL_FOUND = 0,
ENT_PLAYER = 0,
INT_CREDITS = 0
};
local dti = CORPSE.dti
--- networked data abstraction
function CORPSE.GetFound(rag, default)
return rag and rag:GetDTBool(dti.BOOL_FOUND) or default
end
function CORPSE.GetPlayerNick(rag, default)
if not IsValid(rag) then return default end
local ply = rag:GetDTEntity(dti.ENT_PLAYER)
if IsValid(ply) then
return ply:Nick()
else
return rag:GetNWString("nick", default)
end
end
function CORPSE.GetCredits(rag, default)
if not IsValid(rag) then return default end
return rag:GetDTInt(dti.INT_CREDITS)
end
function CORPSE.GetPlayer(rag)
if not IsValid(rag) then return NULL end
return rag:GetDTEntity(dti.ENT_PLAYER)
end
let me know if this fixes it B)
dot ヽ(^◇^*)/