Raised This Month: $51 Target: $400
 12% 

L4D2 - restore health to bots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gamer_kanelita
Senior Member
Join Date: Jun 2019
Location: Peru
Old 02-13-2022 , 01:29   L4D2 - restore health to bots
Reply With Quote #1

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:
gamer_kanelita is offline
Austin
Senior Member
Join Date: Oct 2005
Old 03-01-2022 , 02:38   Re: L4D2 - restore health to bots
Reply With Quote #2

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

Last edited by Austin; 03-01-2022 at 02:44.
Austin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:34.


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