I am trying to change some gamemode lua so that when you read a body, instead of seeing
"Was killed by an M16" it would say "Killed with 9mm Ammo". I have found the variable(s) that I would need to meddle with.
-- init a heap of data we'll be sending
local nick = CORPSE.GetPlayerNick(rag)
local traitor = (rag.was_role == ROLE_TRAITOR)
local role = rag.was_role
local eq = rag.equipment or EQUIP_NONE
local c4 = rag.bomb_wire or -1
local dmg = rag.dmgtype or DMG_GENERIC
local wep = rag.dmgwep or ""
local words = rag.last_words or ""
local hshot = rag.was_headshot or false
local dtime = rag.time or 0
found in /terrortown/gamemode/corpse.lua
BKU recommended I change it with a else/if statement instead of changing/creating a new variable to hold info. Anyone that could help me out with this problem I would greatly appreciate.