Difference between revisions of "HPL2/AMFP/NewAreas"

From Frictional Wiki
< HPL2‎ | AMFP
Jump to navigation Jump to search
m (Darkfire moved page Hpl2:Machine for pigs:new area types to HPL2/AMFP/NewAreas: Reorganising old pages)
(Fixed after porting)
Line 5: Line 5:
 
== Color grading area ==
 
== Color grading area ==
  
This is an area which corrects colors when entered. It will show up as yellow in the Level Editor.
+
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:
 
The area has 2 variables:
  
* LookUpTable - determines the color grading texture. Ready ones are located in ''\textures\gradingmaps''.
+
* LookUpTable - determines the color grading texture. Ready ones are located in <code>/textures/gradingmaps</code>.
 
* FadeTime - how fast the color changes (or goes back to normal) when the area is entered or left.
 
* FadeTime - how fast the color changes (or goes back to normal) when the area is entered or left.
  
For creating custom grading textures, see: <br />[https://wiki.frictionalgames.com/hpl2/machine_for_pigs/colorgrading https://wiki.frictionalgames.com/hpl2/machine_for_pigs/colorgrading]
+
For information about creating custom grading textures, take a look at [[HPL2/AMFP/ColorGr|this guide]].
  
 
== Infection area ==
 
== Infection area ==
Line 25: Line 25:
 
* DisableOnLevelBoundHit - Disables the area if the upper bound is hit.
 
* DisableOnLevelBoundHit - Disables the area if the upper bound is hit.
  
For more information about the infection mechanic, see the Infection article.
+
For more information about the infection mechanic, see [[HPL2/AMFP/Infection| the Infection article]].

Revision as of 17:45, 20 July 2020

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 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.