SocksTheWolf / L4D2Bridge

Allows outside sources to influence and modify a L4D2 server based on user-defined rules using data from events via external sources
https://wolf.stream
MIT License
0 stars 0 forks source link

Additional Commands #17

Closed SocksTheWolf closed 3 months ago

SocksTheWolf commented 3 months ago
SocksTheWolf commented 3 months ago

Autorespawn would be forcing each player to revive via the closet. Or putting all players in a closet instantly.

SocksTheWolf commented 3 months ago

https://forums.alliedmods.net/showthread.php?t=321696 For commands via the dhooks

Healing players

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

Incapacitated

Check if incapped L4D_IsPlayerIncapacitated(client)

Revive from Incap: L4D_ReviveSurvivor(client)

Respawn player

L4D_RespawnPlayer/L4D_CreateRescuableSurvivors

Need to check if dead first.

SocksTheWolf commented 3 months ago

Respawning can happen after 1min passes, so respawning a player may not be worth it? Could just be implemented anyways.