Pressure Plate

From Serious Sam Wiki
Revision as of 15:34, 29 May 2016 by MousseMoose (Talk | contribs) (new page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Model of CPressurePlateEntity using the default params.Info 16x16.png Note: There is no editor model when a new CPressurePlateEntity is created.

General information

Class: CPressurePlateEntity

A Pressure plate is a type of switch that is activated when weight is applied to it and deactivated when the weight is taken off. A Pressure plate can be connected to other entities to influence them.

Properties

The parameters of the Pressure plate


Model addon creation scheme (CModelAddonCreationScheme*)

To do: Add description


Lighting exceptions (CLightExceptor)

Defines which light sources illuminate the Pressure plate


Ignore distant lights (BOOL)

Defines whether or not the Pressure plate is illuminated by Distant lights


Static distant light scaler (FLOAT)

To do: Add description


Spawn flags (LFLAGS)

Defines in which difficulty levels and game types the Pressure plate is spawned.


Name (CString)

Defines the name of the Pressure plate.


Defines a entity pointer to the parent of the Pressure plate.


Platforms (LFLAGS)

Defines on which platforms the Pressure plate is spawned.


Entity ID (ULONG)

Displays the entity ID of the Pressure plate.


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

Script Functions

Methods

CPressurePlateEntity Methods
Name Parameters Return Data Type Description
Name Data Type
IsPressed - BOOL Returns true if the plate is being pressed. Otherwise returns false.
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

Destroyed
Triggers when the Pressure plate is destroyed.
EntityDeleted → SEd3.5 or higher
Triggers when the Pressure plate is deleted.
Pressed
Triggers when the Pressure plate is pressed.
ReceiveDamage → SEd3.5 or higher
Triggers when the Pressure plate receives damage.
Info 16x16.png Note: This event requires enabling via EnableReceiveDamageScriptEvent method.
Released
Triggers when the Pressure plate is released.

Other Information

Relevant Pages and Links

Plasma Wall Fan