Repository navigation
Commit 4126b7b
fix(events): pair PlayerFlashed victims by detonation, not FIFO order
PlayerFlashed was synthesized by attaching every m_flFlashDuration update and
every detonation to the head of a FIFO queue of in-flight flashbangs. A
detonation with zero direct victims while another flashbang was airborne
shifted the queue by one, so every subsequent flash credited the wrong
thrower for the rest of the round.
Mark the detonated entry by the destroyed projectile's identity, buffer the
pawns flashed each frame, and attribute them to the flashbang that detonated
that frame (closest by detonation position when several detonate at once).
The thrower (proj.Thrower) was already correct, matching FlashExplode.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e1e45f5 commit 4126b7b
3 files changed
Lines changed: 73 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
530 | 529 | | |
531 | 530 | | |
532 | 531 | | |
| |||
753 | 752 | | |
754 | 753 | | |
755 | 754 | | |
756 | | - | |
757 | | - | |
| 755 | + | |
758 | 756 | | |
759 | 757 | | |
760 | 758 | | |
| |||
796 | 794 | | |
797 | 795 | | |
798 | 796 | | |
799 | | - | |
800 | | - | |
801 | | - | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
802 | 804 | | |
803 | | - | |
804 | | - | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
805 | 808 | | |
806 | 809 | | |
807 | 810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
1249 | 1250 | | |
1250 | 1251 | | |
1251 | 1252 | | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1252 | 1256 | | |
1253 | 1257 | | |
1254 | 1258 | | |
1255 | 1259 | | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
1261 | 1272 | | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1262 | 1276 | | |
| 1277 | + | |
1263 | 1278 | | |
1264 | 1279 | | |
1265 | 1280 | | |
1266 | | - | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1267 | 1284 | | |
1268 | 1285 | | |
1269 | 1286 | | |
1270 | 1287 | | |
1271 | 1288 | | |
| 1289 | + | |
| 1290 | + | |
1272 | 1291 | | |
1273 | 1292 | | |
1274 | 1293 | | |
1275 | 1294 | | |
1276 | 1295 | | |
1277 | 1296 | | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1278 | 1317 | | |
1279 | | - | |
| 1318 | + | |
1280 | 1319 | | |
1281 | 1320 | | |
1282 | 1321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
0 commit comments