Health regen in DECORATE may not be considered optimal, but it is possible. I guess it depends if you're making a brand new set of weapons to go along with a player class or not. If not, the ACS script will more than do what you need.
On the other hand, if an item that could execute commands in parallel with the player class as long as it was held in the player's inventory, that would be a better solution. I remember someone doing some sort of experimental build concerning this...
Health regeneration question?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Re: Health regeneration question?
Something a little bit better :
BTW : Santé means Health, SanteActuelle means actual health, SanteDonnee means given health and instantanée means instant in french. I like to use my variables in french so they won't stumble with reserved words.

Code: Select all
script 975 ENTER
{
int SanteMax = 200;
int SanteActuelle;
int SanteDonnee;
while (CheckInventory("Health") > 0)
{
// Regeneration instantanée
SanteActuelle = CheckInventory("Health");
if (SanteActuelle < 200 )
{
SanteDonnee = SanteMax - SanteActuelle + 1;
GiveInventory("Health", SanteDonnee);
/* Print(s:"Sante Actuelle : ", d:SanteActuelle); */
delay(10);
/* Print(s:"Sante Donnee : ", d:SanteDonnee); */
}
delay(1);
}
delay(10);
restart;
}

Re: Health regeneration question?
There are people who speak French in Tennessee?
Though I'd suggest "vie" instead of "santé" so that it doesn't miss its accent.


Though I'd suggest "vie" instead of "santé" so that it doesn't miss its accent.