Closed SocksTheWolf closed 3 months ago
Autorespawn would be forcing each player to revive via the closet. Or putting all players in a closet instantly.
https://forums.alliedmods.net/showthread.php?t=321696 For commands via the dhooks
GetEntProp(client, Prop_Data, "m_iHealth")
get their health as int
SetEntityHealth(client, amount)
Need to check client is in game, is a survivor and is not incapacitated. If over 200 health, can use L4D_SetPlayerTempHealthFloat
Check if incapped L4D_IsPlayerIncapacitated(client)
Revive from Incap: L4D_ReviveSurvivor(client)
L4D_RespawnPlayer
/L4D_CreateRescuableSurvivors
Need to check if dead first.
Respawning can happen after 1min passes, so respawning a player may not be worth it? Could just be implemented anyways.