input: add a hacky quick-respawn (needs proper multiplayer separation...)

This commit is contained in:
Marco Cawthorne 2023-01-07 17:00:34 -08:00
parent 3db04eb85b
commit 7637686ace
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -23,6 +23,11 @@ Game_Input(player pl)
if (rules.m_iIntermission) {
rules.IntermissionEnd();
return;
} else {
if (input_buttons & INPUT_BUTTON0)
if (pl.IsAlive() == false)
if (pl.TimeSinceDeath() > 0.5f) /* allow for some time to pass */
pl.ScheduleThink(PutClientInServer, 0.0f);
}
if (input_buttons & INPUT_BUTTON5)