<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=HPL2%2FHPL2_Helper_Scripts%2FMisc</id>
	<title>HPL2/HPL2 Helper Scripts/Misc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=HPL2%2FHPL2_Helper_Scripts%2FMisc"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=HPL2/HPL2_Helper_Scripts/Misc&amp;action=history"/>
	<updated>2026-04-28T16:54:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=HPL2/HPL2_Helper_Scripts/Misc&amp;diff=6597&amp;oldid=prev</id>
		<title>Mrbehemo: Final draft of first version done.</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=HPL2/HPL2_Helper_Scripts/Misc&amp;diff=6597&amp;oldid=prev"/>
		<updated>2023-11-27T01:27:40Z</updated>

		<summary type="html">&lt;p&gt;Final draft of first version done.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TocRight}}&lt;br /&gt;
This page documents various extra bits and pieces of ''[[HPL2/HPL2 Helper Scripts]]'', a modder-made package of .hps files by Aetheric Games, containing script classes and functions that may be useful to HPL2 modders and custom story creators. See the [[HPL2/HPL2 Helper Scripts|main page]] for more information, including [[HPL2/HPL2 Helper Scripts#Set-up|set-up instructions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Enums=&lt;br /&gt;
''HPL2 Helper Scripts'' defines a number of enumerators. Shared enumerators can be found in &amp;quot;HelperScripts_Enums.hps&amp;quot;, but there are also a few special purpose enums in some of the ''features'' scripts.&lt;br /&gt;
&lt;br /&gt;
For users not familiar with enumerators, or enums - an enum is basically a list of text labels that are used as options. Another way to think of it is an integer where some of the numbers also have names. (In fact, that's exactly what it is.)&lt;br /&gt;
&lt;br /&gt;
==Shared enums==&lt;br /&gt;
&lt;br /&gt;
The following enumerators are shared between multiple scripts and purposes, and are defined in &amp;quot;HelperScripts_Enums.hps&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
enum enumVecType&lt;br /&gt;
{&lt;br /&gt;
	vecFree,&lt;br /&gt;
	vecOrtho,&lt;br /&gt;
	vecNormal&lt;br /&gt;
}&lt;br /&gt;
// Lists options for generating vectors.&lt;br /&gt;
&lt;br /&gt;
enum enumLimitType&lt;br /&gt;
{&lt;br /&gt;
	limitFree,&lt;br /&gt;
	limitClamped,&lt;br /&gt;
	limitWrapped&lt;br /&gt;
}&lt;br /&gt;
// Lists options for limiting a number.&lt;br /&gt;
&lt;br /&gt;
enum enumLengthType&lt;br /&gt;
{&lt;br /&gt;
	lengthFinal,&lt;br /&gt;
	lengthSquared&lt;br /&gt;
}&lt;br /&gt;
// Lists options for calculating euclidean length.&lt;br /&gt;
&lt;br /&gt;
enum enumAngleUnits&lt;br /&gt;
{&lt;br /&gt;
	angleRadians,&lt;br /&gt;
	angleDegrees&lt;br /&gt;
}&lt;br /&gt;
// Lists options for angle units.&lt;br /&gt;
&lt;br /&gt;
enum enumOrthoDir&lt;br /&gt;
{&lt;br /&gt;
	dirNone,&lt;br /&gt;
	dirForward,&lt;br /&gt;
	dirBackward,&lt;br /&gt;
	dirLeft,&lt;br /&gt;
	dirRight,&lt;br /&gt;
	dirUp,&lt;br /&gt;
	dirDown&lt;br /&gt;
}&lt;br /&gt;
// Lists orthogonal directions in 3d space.&lt;br /&gt;
&lt;br /&gt;
enum enumStringDirection&lt;br /&gt;
{&lt;br /&gt;
	dirFromStart,&lt;br /&gt;
	dirFromEnd&lt;br /&gt;
}&lt;br /&gt;
// Lists optional directions for searching a string.&lt;br /&gt;
&lt;br /&gt;
enum enumStringCase&lt;br /&gt;
{&lt;br /&gt;
	caseSensitive,&lt;br /&gt;
	caseInsensitive&lt;br /&gt;
}&lt;br /&gt;
// Lists optional techniques to match a string by letter case.&lt;br /&gt;
&lt;br /&gt;
enum enumStringTrim&lt;br /&gt;
{&lt;br /&gt;
	trimNone,&lt;br /&gt;
	trimStart,&lt;br /&gt;
	trimEnd,&lt;br /&gt;
	trimAll&lt;br /&gt;
}&lt;br /&gt;
// Lists options for trimming whitespace from a string.&lt;br /&gt;
&lt;br /&gt;
enum enumVarScope&lt;br /&gt;
{&lt;br /&gt;
	varLocal,&lt;br /&gt;
	varGlobal&lt;br /&gt;
}&lt;br /&gt;
// Lists the scopes of a save game variable.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Slimer enums==&lt;br /&gt;
&lt;br /&gt;
The following enumerators are used by cSlimer, and are defined in &amp;quot;HelperScripts_Slimer.hps&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
enum enumSlimerActionType&lt;br /&gt;
{&lt;br /&gt;
	actionFade,&lt;br /&gt;
	actionActivate,&lt;br /&gt;
	actionLight,&lt;br /&gt;
	actionLamp,&lt;br /&gt;
	actionSwingDoor,&lt;br /&gt;
	actionMoveObject,&lt;br /&gt;
	actionWheel,&lt;br /&gt;
	actionLever,&lt;br /&gt;
	actionNone&lt;br /&gt;
}&lt;br /&gt;
// Lists the action types that a Slimer instance can perform.&lt;br /&gt;
&lt;br /&gt;
enum enumSlimerPlayMethod&lt;br /&gt;
{&lt;br /&gt;
	playRandom,&lt;br /&gt;
	playForward,&lt;br /&gt;
	playReverse,&lt;br /&gt;
	playImmediate&lt;br /&gt;
}&lt;br /&gt;
// Lists the options for ordering Slimer sequences.&lt;br /&gt;
&lt;br /&gt;
enum enumSlimerQueueMethod&lt;br /&gt;
{&lt;br /&gt;
	queueAppend,&lt;br /&gt;
	queueInsert,&lt;br /&gt;
	queueReplace&lt;br /&gt;
}&lt;br /&gt;
// Lists the options for enqueueing Slimer sequences.&lt;br /&gt;
&lt;br /&gt;
enum enumSlimerCancelMethod&lt;br /&gt;
{&lt;br /&gt;
	cancelFlush,&lt;br /&gt;
	cancelDelete&lt;br /&gt;
}&lt;br /&gt;
// Lists the options for cancelling a pending Slimer queue.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Fader enums==&lt;br /&gt;
&lt;br /&gt;
The following enumerator is used by cFader, and is defined in &amp;quot;HelperScripts_Fader.hps&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
enum enumFaderState &lt;br /&gt;
{&lt;br /&gt;
	faderStandby,&lt;br /&gt;
	faderFadingIn,&lt;br /&gt;
	faderPlaying,&lt;br /&gt;
	faderFadingOut,&lt;br /&gt;
	faderNone&lt;br /&gt;
}&lt;br /&gt;
// Lists the play-states of a Fader sound.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Mrbehemo</name></author>
		
	</entry>
</feed>