Plasma Barrier

From Serious Sam Wiki
Jump to: navigation, search

SEd4.0 only

Model of CPlasmaBarrierEntity entity using the default params.Info 16x16.png Note: There is no editor model when a new CPlasmaBarrierEntity is created.
A Plasma Barrier being used as the entrance to a puzzle.

General information

Class: CPlasmaBarrierEntity

The plasma barrier is a non-solid, two-dimensional field that is sometimes used for triggering Chapter info entities. While the player may pass through the barrier, many carriable items cannot. This is often used in the Talos Principle to prevent players from taking test items out of puzzle areas.

Properties

The parameters of the Plasma barrier


Stretch (Vector3f)

The width and height of the Plasma barrier.
Info 16x16.png Note: The z value cannot be changed because Plasma barriers have no depth.


Front chapter to start (CChapterInfoProperties*)

The Chapter info entity that is triggered when the player moves across the barrier from the back to the front.
Info 16x16.png Note: The cone in the middle of the Plasma barrier points to its front side.


Back chapter to start (CChapterInfoProperties*)

The Chapter info entity that is triggered when the player moves across the barrier from the front to the back.
Info 16x16.png Note: The cone in the middle of the Plasma barrier points to its front side.


Ignored by navigation (BOOL)

To do: Add description


Illumination (Color3f)

The color and intensity of the light affect applied to the Plasma wall.


Spawn flags (LFLAGS)

Defines in which difficulty levels and game types the Plasma barrier is spawned.


Name (CString)

Defines the name of the Plasma barrier.


Defines a entity pointer to the parent of the Plasma barrier.


Platforms (LFLAGS)

Defines on which platforms the Plasma barrier is spawned.


Entity ID (ULONG)

Displays the entity ID of the Plasma barrier.


Info 16x16.png Note: Entity ID cannot be edited.

Script Functions

Methods

CPlasmaBarrierEntity Methods
Name Parameters Return Data Type Description
Name Data Type
GetEndChapter - Handle To do: Add description
GetStartChapter - Handle To do: Add description
CBaseEntity Methods
Name Parameters Return Data Type Description
Name Data Type
ApplyDamageTool
SEd3.5 or higher
DamageSource CString void To do: Add description
DamageType CString
WeaponIndex WeaponIndex
CharacterClass IDENT
Damage SLONG
EnableReceiveDamageScriptEvent
SEd3.5 or higher
- void Enables ReceiveDamage script events (see below).
Warning 16x16.png Warning: This function disables native damage handling.
EnableTouchAutoMoveTarget
SEd4.0 only
Enabled BOOL void Enables the entity to become an auto move target.
GetAngularVelocity - Vector3f Returns angular velocity of the entity in Vector3f format.
GetAttachmentAbsolutePlacement Attachment IDENT QuatVect Returns placement of attachment in relation to World Spawn in QuatVect format.
GetAttachmentRelativePlacement Attachment IDENT QuatVect Returns placement of attachment in relation to entity in QuatVect format.
GetClassName
SEd3.5 or higher
- CString Returns classname in CString format.
GetLinearVelocity - Vector3f Returns linear velocity of entity in Vector3f format.
GetName - CString Returns the name of the entity in CString format.
GetParent Name IDENT Handle Returns a CBaseEntity handle of the parent of the entity.
GetPlacement - QuatVect Returns position and orientation of the entity in QuatVect format.
GetWorld
SEd3.5 or higher
- CWorld* To do: Add description
GetWorldInfo
SEd3.5 or higher
- CWorldInfoEntity* To do: Add description
InflictDamage Amount SLONG void Inflicts damage to entity.
InflictDamageOfType Amount SLONG void Inflicts damage of a specified damage type to entity.
DamageType CString
InflictDamageToTarget
SEd3.5 or higher
Target Handle void To do: Add description
Amount SLONG
Weapon IDENT
DamageType CString
InflictWeaponDamage
SEd3.5 only
Amount SLONG void To do: Add description
Weapon IDENT
DamageType CString
IsDestroyed - BOOL Returns 1 if entity is destroyed.
IsReceiveDamageScriptEventEnabled
SEd3.5 or higher
- BOOL Returns 1 if ReceiveDamageScriptEvent is enabled (see above).
SetAngularVelocity AngVelocity Vector3f void Sets angular velocity of entity to the specified Vector3f value.
SetLinearVelocity Velocity Vector3f void Sets the velocity of the entity to the specifed Vector3f values.
SetPlacement Placement QuatVect void Sets position and orientation of the entity to the specified QuatVect values.

Events

Template:E BarrierPassed

Destroyed
Triggers when the Plasma wall is destroyed.
EntityDeleted → SEd3.5 or higher
Triggers when the Plasma wall is deleted.
ReceiveDamage → SEd3.5 or higher
Triggers when the Plasma wall receives damage.
Info 16x16.png Note: This event requires enabling via EnableReceiveDamageScriptEvent method.

Other Information

Not all carriable items are blocked from moving across Plasma barriers. For example, paint buckets can be brought across Plasma barriers. There should be a an option to enable or disable this feature in each carriable item's params.

Relevant Pages and Links

Chapter Info