Instant death screen
Another code optimizations
New features:
— now you can switch between several extra options: turn off muffled sound or blackout screen on death
— please die (with the mode switched)
* Transition from serverside to clientside
* Option to instantly die only on headshot
The black screen isn’t appearing on a local/public server, but in SP it works fine.
Solutions: change "truedeath_mode" cvar to 1 or turn sv_cheats on.
Reason: when truedeath_mode 2 is set, the script (addon) uses a console command that requires sv_cheats 1 to be turned on.
Gray screen issue. Reason: Extended Render addon.
A few individuals may experience a gray color instead of a full black screen. This problem does not result in any script errors. It is important to note that the Instant death screen is not malfunctioning.
Q: Is this a serverside or clientside addon?
A: It’s serverside addon.
Q: Could you please make smooth fading/blackout delay?
A: No, this is instant. If you are unsatisfied with this addon, you can search for an alternative death screen addon.
Q: realism gmod!!!!111!!1????111!!!
A: Exactly.
Q: Gun suicide addon?
A: TacRP weapon pack.
Q: Can you make an addon with appearing heaven/hell png on death, based on count of killed "bag guys" and friendly NPC’s?
A: Maybe. I need to practice glua more to do this.
sv_truedeath: https://pastebin.com/5gEsLMv6
cl_truedeath: https://pastebin.com/6edQkJf0