HPL2/AMFP/NewAreas

From Frictional Wiki
< HPL2‎ | AMFP
Revision as of 17:00, 20 July 2020 by Darkfire (talk | contribs) (Darkfire moved page Hpl2:Machine for pigs:new area types to HPL2/AMFP/NewAreas: Reorganising old pages)
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 corrects colors 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 creating custom grading textures, see:
https://wiki.frictionalgames.com/hpl2/machine_for_pigs/colorgrading

Infection area

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

This area has 4 variables:

  • IncrementSpeed - How fast the meter fills up. Seems to be in units per second.
  • InfectionLevelLowerBound - Functionality unknown.
  • 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.
  • DisableOnLevelBoundHit - Disables the area if the upper bound is hit.

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