-
Notifications
You must be signed in to change notification settings - Fork 4
PlayerRegen.as
First Created: September 1st, 2016
Last Updated: April 8th, 2017
Current Status: Stable. New features to be added.
Works with the 5517 (v5.12) Build of Sven Co-Op.
Copy 'PlayerRegen.as' to 'svencoop\scripts\plugins'. And add this to 'default_plugins.txt':
"plugin"
{
"name" "PlayerRegen"
"script" "PlayerRegen"
"concommandns" "pregen"
}
Add this to 'server.cfg'
// Player Regen Global Configuration
as_command pregen.hpregen 1
as_command pregen.hpamnt 1
as_command pregen.hpdelay 3.0
as_command pregen.hpmax 100
as_command pregen.apregen 1
as_command pregen.apamnt 1
as_command pregen.apdelay 3.0
as_command pregen.apmax 100
There are 8 Variables you can manipulate, you have to go to console and type as_command pregen.cvarhere value
.
Add the below defaults to your "server.cfg" file if you haven't already.
You can use a .cfg file to give a map unique settings for the plugin.
Just navigate to the folder of the map, and find/create a file named mapname.cfg
and input any of these:
as_command pregen.hpregen 1
as_command pregen.hpamnt 1
as_command pregen.hpdelay 3.0
as_command pregen.hpmax 100
as_command pregen.apregen 1
as_command pregen.apamnt 1
as_command pregen.apdelay 3.0
as_command pregen.apmax 100
Adjust values above as needed. If a .cfg file is not found for the map, then it will assume the values you put in server.cfg
CVar Help:
hpregen - (1 for true, 0 for false) Enable or disable HP Regen
hpamnt - (Integer equal to 1 or above) How much HP to regen per delay
hpdelay - (In seconds, can use an integer or a decimal value) Delay before giving HP again
hpmax - (Integer equal to 1 or above) Max amount of health player should have
apregen - (true/false) Enable or disable AP Regen
apamnt - (Integer equal to 1 or above) How much AP to regen per delay
apdelay - (In seconds, can use an integer or a decimal value) Delay before giving AP again
apmax - (Integer equal to 1 or above) Max amount of armor player should have
- Add a "VIP" list