Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
the curious case of the disappearing bodies
#2
(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)
[Image: tumblr_oc1hazkarA1vnktu6o1_500.gif]

dot ヽ(^◇^*)/


Messages In This Thread
RE: the curious case of the disappearing bodies - by dot ┐(‘~`;)┌ - 07-13-2018, 12:22 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)

About Us
    This is Dinkleberg's GMod, a gaming community based in Garry's Mod. We have a Trouble in Terrorist Town, Prop Hunt, Murder, and Deathrun Server. Come check them out sometime.