HPL2/AMFP/NewAreas

From Frictional Wiki
< HPL2‎ | AMFP
Revision as of 18:48, 4 June 2023 by AwesomeDirt307 (talk | contribs) (Changed 4 variables to say 5 variables)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

New Area Types

MFP features two new area types which weren't present in TDD.

Color grading area

This is an area which applies color correction when entered. It will show up as yellow in the Level Editor.

The area has 2 variables:

  • LookUpTable - determines the color grading texture. Ready ones are located in /textures/gradingmaps.
  • FadeTime - how fast the color changes (or goes back to normal) when the area is entered or left.

For information about creating custom grading textures, take a look at this guide.

Infection area

This is a remnant of the unused infection system. It fills up the infection meter or lowers it when the player is inside the area. The area will show up as lime green in the Level Editor.

This area has 5 variables:

  • IncrementSpeed - How fast the meter fills up or lowers. Seems to be in units per second. The area will heal the player if negative value is used.
  • InfectionLevelLowerBound - If the area is used for healing, the lower bound specifies the minimum infection level the area can heal to.
  • InfectionLevelUpperBound - Binds the maximum infection level; the player won't be able to get a higher infection level while standing in the area. Values 1-4. 4 and above lets the player die from infection. Infection drain is disabled when the bound has been hit and the player is still in the area.
  • TotalIncrementBound - If a value other then 0 is used, it will limit the amount the area can increment the infection. If the areas increment total reaches this bound than the area is disabled.
  • DisableOnLevelBoundHit - Disables the area if the upper or lower bound is hit.

For more information about the infection mechanic, see the Infection article.