Skip to content

Commit

Permalink
Removed old bugfix for wrong molotov fire coordinates
Browse files Browse the repository at this point in the history
Apparently this got fixed in a game update and the flame coordinates are not doubled anymore
  • Loading branch information
Moyomo committed Jun 28, 2024
1 parent b84ba00 commit 8ccc179
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gsi.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,9 @@ function handleRequest(req, res) {
for (var i = 0; i < flamesNum; i++) {
let pos = Object.values(nade.flames)[i].split(", ")
flamesPos.push({
// BUG: CS2 has the coords doubled for some reason
x: parseFloat(pos[0]) / 2,
y: parseFloat(pos[1]) / 2,
z: parseFloat(pos[2]) / 2
x: parseFloat(pos[0]),
y: parseFloat(pos[1]),
z: parseFloat(pos[2])
})
}

Expand Down

0 comments on commit 8ccc179

Please sign in to comment.