AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   L4D2 - restore health to bots (https://forums.alliedmods.net/showthread.php?t=336341)

gamer_kanelita 02-13-2022 01:29

L4D2 - restore health to bots
 
Well if a player has more than 100 health and leaves the server, is it restored to 100 health for the bot? on my server they buy a lot of health and when the bot leaves he keeps the health and when another player enters he keeps that health that the other player bought and it doesn't seem fair to me, I just want that if the player who has for example 800hp when the server is gone, it is restored for the 100HP bot, please help me... :llorar::llorar::llorar:

Austin 03-01-2022 02:38

Re: L4D2 - restore health to bots
 
You can use my set heath plugin to force the health amount when any players spawns into the map.
https://forums.alliedmods.net/showthread.php?t=151738

The plugin compiled.
https://www.sourcemod.net/vbcompiler.php?file_id=192029

Ther are two setting and for what you are doing you wil want
abs_l4d2_StartingHealthTimePeriod
set to some high value that would be at least as long as the longest map time like 20 minues or 1200 seconds


// Sets the health of the survivors at map start or at any spawn depending if the time below has expired
abs_l4d2_StartingHealth 100

// Set the time period in seconds after map start
// to set survivors health when you take over a bot
abs_l4d2_StartingHealthTimePeriod 1200


All times are GMT -4. The time now is 04:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.