fix/practice-teamswitch-nade-tilt #1

Merged
mikkel merged 3 commits from fix/practice-teamswitch-nade-tilt into main 2026-07-11 22:16:58 +02:00
Owner
No description provided.
Switching a live player's team via ChangeTeam() ran the engine's weapon-strip
path; other plugins' weapon hooks (WeaponPaints) re-entered on a half-destroyed
weapon and SIGSEGV'd inside ChangeTeam — reproducible on every practice switch.

Rework SideSwitchCommand: off the command stack via NextFrame -> CommitSuicide
if alive (weapons drop, not destroyed) -> next-frame SwitchTeam (signature-based,
skips the strip path) -> Respawn (T/CT only; never respawn a spectator).

Also stop the switch suicide counting: flag the userid before the kill and
decrement the death + restore score in a Post EventPlayerDeath handler (the
engine increments the death during the event, so an earlier restore was clobbered).
Teleporting back to a lineup thrown while looking steeply up/down applied the
saved pitch to the body and tilted the whole model sideways. Keep the full-angle
teleport (only a teleport snaps the local player's view to the lineup aim) and
flatten the SOURCE rotation m_angRotation, not the derived AbsRotation which the
anim system recomputes from the source each tick; re-apply over a few frames.
- ModuleVersion 0.8.49 -> 0.8.50
- CounterStrikeSharp.API 1.0.369 -> 1.0.371
- RemovePublishDir target: drop the stale bin/Release/net10.0/publish/ folder
  left by a manual `dotnet publish` (deploy is from the build output), ordered
  after the SQLite native override.
mikkel merged commit 3771a4e897 into main 2026-07-11 22:16:58 +02:00
mikkel deleted branch fix/practice-teamswitch-nade-tilt 2026-07-11 22:17:02 +02:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikkel/matchzy-old!1
No description provided.