Describe the bug
The command "physgun_switch" crashes the server if the player entity is gone (e.g. player has been accidentally removed by a trigger/button)
To Reproduce
Somehow manage to remove yourself
Enter physgun_switch into the console
The server crashes
Expected behavior
The server shouldn't crash
Additional context
Since commands like "use weapon_ar2", "lastinv", or "phys_swap" don't crash the server i think this should be fixed so the commands behaviour is in-line with the rest of source.
I realize that this is super obscure, and should only happen if sv_cheats is enabled, or on really terribly made maps - please just mark as "Won't fix" if this is isn't a priority.
Describe the bug The command "physgun_switch" crashes the server if the player entity is gone (e.g. player has been accidentally removed by a trigger/button)
To Reproduce
Expected behavior The server shouldn't crash
Additional context Since commands like "use weapon_ar2", "lastinv", or "phys_swap" don't crash the server i think this should be fixed so the commands behaviour is in-line with the rest of source.
I realize that this is super obscure, and should only happen if sv_cheats is enabled, or on really terribly made maps - please just mark as "Won't fix" if this is isn't a priority.