Author Topic: Battlefield Regeneration Style  (Read 2775 times)

0 Members and 1 Guest are viewing this topic.

Offline soldat-game

  • Camper
  • ***
  • Posts: 360
  • GG: 10210041
Battlefield Regeneration Style
« on: February 20, 2017, 04:38:32 pm »
Script By Dominik
The script will regenerate life when we are not attacked by specified time. Healing power increases with time as the battlefield. If medkitkill active this will allow players to limit the effectiveness of Barrett and the player will need to demonstrate a more economical and tactical playing.
Code: [Select]
TimeToStartHealth = 4; //Time to player must wait for start heal (*secconds)
HealthRegen = 0.015; //Valute for start heal
RegenSpeedAdd = 0.0028; //Valute for bostet heal in time
MaxHealth = 150; //If realistic 65 if normal 150
MaxSpeed = 10; //Max health valute per valute TickSpeed
TickSpeed = 1; //Ticket for adding (*60=1sec)
ScriptVersion = '0.0.1 by Dominik';//Script version
SendDebug = false; //Send healing count in console (*true*false)
KillMedkit = true; //Kill all medkit spawn and medkit on map (*true*false)
« Last Edit: February 20, 2017, 04:42:45 pm by soldat-game »
Hey, I wrote messages on these topics (https://forums.soldat.pl/index.php?topic=45088.0
https://forums.soldat.pl/index.php?topic=45068.0), about deleting this message in this topic.
https://forums.soldat.pl/index.php?topic=45088.0

"So nothing was done hahahahahaha" Rekt admins remove this all time why? It does not break the rules.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1008
Re: Battlefield Regeneration Style
« Reply #1 on: November 16, 2017, 11:01:07 am »
This script raises CPU usage to empty server from 4% to 20%...

Offline Moroes

  • Soldier
  • **
  • Posts: 162
Re: Battlefield Regeneration Style
« Reply #2 on: November 16, 2017, 11:48:30 am »
I can see you are good at killing medkits, Dominik.
Ticket for adding kek :D

Offline soldat-game

  • Camper
  • ***
  • Posts: 360
  • GG: 10210041
Re: Battlefield Regeneration Style
« Reply #3 on: November 16, 2017, 02:10:12 pm »
I can see you are good at killing medkits, Dominik.
Ticket for adding kek :D

At the time I created the script, at least on my computer deleting objects and spawn through the event after changing the map sometimes did not work. In turn my problem with cpu does not occur. (Tested for 12 players.). Detecting a change of life must also be in apponidle. Because ondamage does not work when the player is on a hurting ground. Fast tickek must be for battlefield regeneration smoothing of charging - There is a configuration file that allows you to set other parameters at the expense of this cool effect :)

« Last Edit: November 16, 2017, 04:01:19 pm by soldat-game »
Hey, I wrote messages on these topics (https://forums.soldat.pl/index.php?topic=45088.0
https://forums.soldat.pl/index.php?topic=45068.0), about deleting this message in this topic.
https://forums.soldat.pl/index.php?topic=45088.0

"So nothing was done hahahahahaha" Rekt admins remove this all time why? It does not break the rules.