Skip to content

Commit

Permalink
Bodysearch: Always store all information no matter the trace info (#1182
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ZenBre4ker authored Dec 12, 2023
1 parent 76acb46 commit 06a707a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- Fixed edgecase where undefined killer angle or pos were accessed
- Fixed fallback ammo icon missing
- Fixed a null entity error in the miniscoreboard
- Fixed missing bodysearch information if victim was killed without leaving a trace caused by a weapon hit

## [v0.12.0b](https://github.com/TTT-2/TTT2/tree/v0.12.0b) (2023-12-11)

Expand Down
4 changes: 2 additions & 2 deletions gamemodes/terrortown/gamemode/server/sv_corpse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ local function GetSceneData(victim, attacker, dmginfo)

if victim.hit_trace then
scene.hit_trace = table.CopyKeys(victim.hit_trace, crimescene_keys)
else
return scene
end

scene.waterLevel = victim:WaterLevel();
Expand All @@ -331,6 +329,8 @@ local function GetSceneData(victim, attacker, dmginfo)
if IsValid(attacker) and attacker:IsPlayer() then
scene.killer = GetSceneDataFromPlayer(attacker)

if not scene.hit_trace then return scene end

local att = attacker:LookupAttachment("anim_attachment_RH")
local angpos = attacker:GetAttachment(att)

Expand Down

0 comments on commit 06a707a

Please sign in to comment.