Shogo Objects

Shogo Objects *

Introduction *

Overview *

Classes *

AIKey *

BaseClass *

BaseAI *

Messages *

Brush *

Camera *

Messages *

ClientLightFX *

Messages *

DemoSkyWorldModel *

DestructableDoor *

DialogTrigger *

Messages *

DirLight *

Door *

Messages *

FastApproxArea *

Flicker1WaveLightFX *

Flicker2WaveLightFX *

Flicker3WaveLightFX *

Flicker4WaveLightFX *

GameStartPoint *

GlobalDirLight *

Key *

KeyFramer *

Messages *

Light *

Model *

ObjectiveTrigger *

Messages *

ObjectLight *

OutsideDef *

Usage *

ParticleSystem *

Messages *

PickupItem *

PolyGrid *

Prop *

Messages *

RampDownWaveLightFX *

RampUpWaveLightFX *

RaySelector *

RotatingWorldModel *

Messages *

SawWaveLightFX *

ScaleSprite *

Messages *

SearchWaveLightFX *

SineWaveLightFX *

SkyPointer *

Sound *

Spawner *

Messages *

Sprite *

SquareWaveLightFX *

StartPoint *

StrobeWaveLightFX *

TransmissionTrigger *

Messages *

Trigger *

Messages *

TriggerSound *

Messages *

VolumeBrush *

Messages *

WorldProperties *

Property summary *

AccessDeniedMsg *

AccessDeniedSound *

AccessGrantedMsg *

AccessGrantedSound *

ActivateCondition *

ActivationSound *

ActiveTime *

AdditionalFlags *

AddObjectives *

AITriggerable *

AITriggerName *

AllowPlayerMove *

Alpha *

AlwaysLightmap *

Ambient *

AmbientList *

Armor *

ArmorPoints *

AttachToObject *

AvailableSounds *

AvailableStates *

BaseKeyName *

BoxPhysics *

BprintMessage *

Bravado *

BrightScale *

BumpedTriggerMessage *

BumpedTriggerNumber *

BumpedTriggerTarget *

BumperScreen *

BumperTextID *

BurstWait *

BusySound *

CanDamage *

CanHeal *

CanRepair *

CastShadowsFlag *

CDTrack *

Chrome *

ClipLight *

CloseBusySound *

CloseStartSound *

CloseStopSound *

CloseWaitTime *

ClosingSpeed *

Color *

Color1 *

Color2 *

CompleteObjectives *

Condition *

CruisingList *

Current *

Damage *

DamagedFilename *

DamagerMessage *

DamageTriggerMessage *

DamageTriggerNumber *

DamageTriggerTarget *

DamageType *

DeathTriggerMessage *

DeathTriggerTarget *

DebrisType *

DefaultSpawn *

DestinationWorld *

DestroyedFilename *

DestroyedModels *

DestroyedSkins *

DestroySound *

DestroyedSounds *

DetailLevel *

Dims *

DirectionalLight *

DontLightBackfacingFlag *

Effect *

EffectParam *

EmissionRadius *

EnableFog *

EndOfScenario *

EnvironmentMap *

Evasive *

Experience *

ExplosionStuff *

FarZ *

Filename *

FileStream *

FlatShade *

FlushWithWorld *

FogColor *

FogFarz *

FogNearZ *

FogLightFlag *

FOV *

FrictionCoefficient *

FullyBright *

GameType *

GouraudShade *

Gravity *

HarddrivingList *

HearingRange *

Hidden *

HitPoints *

HullMaker *

ImageFilename *

InnerColor *

InnerRadius *

InstrumentFiles *

IntensityFreq *

IntensityMax *

IntensityMin *

IntensityPhase *

IntensityWaveform *

Invisible *

IsListener *

KillerMessage *

Large *

LifeTime *

LightMap *

LightObjects *

LightRadius *

LightScale *

LightSwitch *

Locked *

Looping *

LoopSound *

LostTriggerMessage *

LostTriggerNumber *

LostTriggerTarget *

Marksmanship *

Mass *

Masses *

MaximumVelocity *

MaxNumDebris *

Message1 (Message2, Message3) *

MessageName *

MessageName1 (MessageName2, etc.) *

MessageTarget *

MinimumVelocity *

MinNumDebris *

ModelAdd *

MoveDelay *

MoveDir *

MoveDist *

MoveToFloor *

MusicDirectory *

Name *

NeverDestroy *

Nonexistent *

NoSnap *

NumPolies *

NumSurfacePolies *

ObjectName *

ObjectOfDesire *

On *

OneTime *

OnlyLightWorldFlag *

OpenBusySound *

OpenStartSound *

OpenStopSound *

OpenWaitTime *

OuterColor *

OuterRadius *

ParticleFlags *

ParticleGravity *

ParticleLifetime *

ParticlesPerSecond *

ParticleRadius *

PlasmaInfo *

PlasmaType *

PlayerMode *

PlayerTriggerable *

Portal *

PortalName *

Pos *

Priority *

RadiusFreq *

RadiusMax *

RadiusMin *

RadiusPhase *

RadiusWaveform *

RampDownSound *

RampUpSound *

RemoveObjectives *

Ring1Rate, Ring2Rate, Ring3Rate, Ring4Rate *

Rotatable *

Rotation *

Scale *

ScaleX *

ScaleY *

SendDelay *

Shadow *

ShowDeadBody *

ShowSurface *

Skin *

SkyFog *

SkyFogFarZ *

SkyFogNearZ *

SkyPan *

SkyPanning *

SkyPortal *

Small *

SoftSky *

Solid *

SolidLightFlag *

SoundName *

SoundPos *

SoundRadius *

Sounds *

Spawn *

SpawnItem *

SpawnSound *

Speed *

SpinDownSound *

SpinUpSound *

SpotTriggerMessage *

SpotTriggerNumber *

SpotTriggerTarget *

SpriteSurfaceName *

StartActive *

StartOn *

StartPointName *

StartSound *

State *

StateFlags *

StopSound *

String1ID (String2ID, String3ID) *

StringID *

Subdivide *

SurfaceAlpha *

SurfaceColor1 *

SurfaceColor2 *

SurfaceHeight *

Target1 (Target2, Target3) *

TargetName1 (TargetName2, etc.) *

TextureName *

Time *

TimeStamp *

TintColor *

Translucency *

Translucent *

TriggerDelay *

TriggerDims *

TriggerMessage *

TriggerTarget *

Type *

UnlockKey *

VelocityOffset *

Visible *

Viscosity *

VisibleRange *

VoiceType *

Volume *

Waveform *

WeaponId *

Wind *

XAxisRevTime (YAxisRevTime, ZAxisRevTime) *

XAxisSpinUpTime (YAxisSpinUpTime, ZAxisSpinUpTime) *

XAxisSpinDownTime (YAxisSpinDownTime, ZAxisSpinDownTime) *

XRotateForward (YRotateForward, ZRotateForward) *

XScaleDuration *

XScaleMax *

XScaleMin *

XPan *

YScaleDuration *

YScaleMax *

YScaleMin *

YPan *

Strategies *

Building geometry *

Build on the grid *

Build flush *

Use the locator *

Build brushes in all three perspective windows *

Start simple and save detail until last *

Group brushes as you go *

Take advantage of the tools *

Aesthetic tips *

Lighting a level *

Start with general lighting *

Avoid big lights *

Notes about color *

Group general lights *

Contrast is key *

General *

Get in the habit of hitting U all the time *

Save often *

Use the pointer *

Use the node view *

Be consistent *

Use Advanced Select *

Gameplay *

Music *

Quick cinematic tutorial *

AI Scripting *

Troubleshooting *

My level is completely black when I run it in the engine! *

I think my level has a leak but I’m not sure. *

I can’t step up onto a lift. What’s up with that? *

I can’t get through a rotating door! *

How do I make cloud shadows move across the ground. *

Introduction

This document describes the objects available in DEdit for use by level designers. Properties for each object along with the range of valid property values are described in detail.

Shogo objects inherit the properties of their base object and the properties of any aggregate object they contain. For simplicity, each object will be described independently, without reference to their base or aggregate properties (unless these properties are used differently in the object). Although these properties are not mentioned in the object description, it should be understood that they are still available in the object being described unless stated otherwise.

Overview

BaseClass

Here are items available in the object list that you will not use:

 

Classes

AIKey

Used in AI scripting to define a path for an AI to follow. The only property you will use is Name, which should consist of a base name (e.g. fred) plus a number. The first AI key in a series should use 0 and increment from there (e.g. fred0, fred1, fred2). If you have more than nine AI keys in a series, use a double digit number (e.g. fred00, fred01, fred02, etc.).

For best results, place AIKeys 64 units above the floor.

Tip: If you group the AIKeys in a given series, you can right-click on the parent node (in the node view tab) and select Set Path, which will draw a yellow line from one AIKey to the next, making your paths more obvious.

BaseClass

The BaseClass object is the base for every Shogo object. Level designers should never need to create a BaseClass object directly. However, the properties contained in the BaseClass object are almost always used in other Shogo objects.

BaseAI

The parent class of all AI objects. Level designers should never need to create a BaseAI object directly. However, the properties contained in the BaseAI object are frequently used to control specific AI functionality.

Messages

All AI objects react to the following messages:

Message

Action

Script

See Scripting section under AI

Destroy

Kills the AI normally

Remove

Removes the AI without leaving behind a body

Brush

Brushes are the basic building blocks of a level. Consult the DEdit documentation and the Strategies section of this document for greater detail.

Brushes are also used to create all WorldModels, such as doors, volume brushes, etc.

Camera

Cameras are used for in-game cinematics and Tomb Raider-style hint camera effects.

Messages

This object reacts to the following messages:

Message

Action

On

Activate

Off

Deactivate

ClientLightFX

The ClientLightFX object is a dynamic light class which creates a light special effect on the client.

Messages

The ClientLightFX object reacts to the following messages:

Message

Action

Toggle

Toggles the ClientLightFX from the On to Off or from Off to On, depending on it’s current state.

On

Sets the ClientLightFX object to the On (visible) state.

Off

Sets the ClientLightFX object to the Off (not visible) state.

DemoSkyWorldModel

A DemoSkyWorldModel is the same as a WorldModel, but it has all the properties of a SkyPointer. See the SkyPointer class for a description.

DestructableDoor

A door or lift object that can also be destroyed. Use this class for most destructible world geometry (simply don’t give it movement information).

Note: As mentioned previously, all WorldModels require a discrete name.

DialogTrigger

A special type of trigger that sends a message based on a choice made by the player. When the DialogTrigger is activated, it will present up to three text strings (using predesignated IDs). The player may cycle through these strings and select one using the Enter key. When a string is selected, its corresponding trigger message is sent.

Messages

This object reacts to the following messages:

Message

Action

Trigger

Activate

DirLight

Creates a cone of light along the forward vector (use the blue pointer as a guide).

Note: Most of the time, you will probably rely on DirLights with a Pitch of 90 (i.e. pointing straight down).

Door

A type of WorldModel used to create simple doors and lifts. There are various subclasses, including rotating doors, destructible doors, and so on. See those specific categories for details on properties unique to each.

Note: As mentioned previously, all WorldModels require a discrete name.

Messages

This object reacts to the following messages:

Message

Action

Trigger

Activate

TriggerClose

Closes a door in its open (or opening) state

FastApproxArea

A FastApproxArea marks an area of the level (bounded by hull makers or portals) to use the Fast Approximation method in the preprocessor. This can be useful to make preprocessing go faster in outdoor areas where visibility can’t be optimized very well anyways.

Flicker1WaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

Flicker2WaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

Flicker3WaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

Flicker4WaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

GameStartPoint

Specifies the point at which a player enters a level. The object’s rotation will determine the player’s starting orientation.

Note: Place this object at least 48 units (i.e., at least the value of the model’s y dims) above the floor or the player may fall out of the world.

GlobalDirLight

A light value that is applied to all brushes with FlatShade and DirectionLight flags set (see the appropriate flag descriptions in the Property listing for more information). Place the GlobalDirLight far away from the center of the world on every axis for best results.

Areas lit using GlobalDirLights will generally need object lights or else objects will show up black. See ObjectLight for more information.

Key

Path markers used by the KeyFramer. A keyframed object will follow a series of keys.

Important: key Names should consist of a base name (e.g. fred) plus a number. The first key in a series should use 0 and increment from there (e.g. fred0, fred1, fred2).

Tip: If you group the Keys in a given series, you can right-click on the parent node (in the node view tab) and select Set Path, which will draw a yellow line from one Key to the next, making your paths more obvious.

KeyFramer

Allows you to set up objects to move along complicated paths or in complicated ways. Most of the dropships and in-game cinematics in Shogo rely on keyframers for object movement and camera movement.

Here are some objects you can keyframe: WorldModels such as doors, etc.; clientlightfx objects; triggersound objects; camera objects; and props.

It is also possible to use multiple keyframers on a single object for incredibly complicated events. This is comparatively advanced stuff, so I probably won’t cover it in this draft.

Messages

This object reacts to the following messages:

Message

Action

On

Activate

Off

Deactivate

Light

The primary method of lighting a level. A Light creates a sphere of illumination that radiates from the object’s center, fading gradually to the edge of its radius.

Model

Models are engine objects. While you can place a model, it is generally advisable to use Props instead.

ObjectiveTrigger

Used to update the player’s mission log.

Messages

This object reacts to the following messages:

Message

Action

Trigger

Activate

ObjectLight

Lights objects only. Object lights are generally necessary in areas lit by GlobalDirLights, as GlobalDirLights don’t illuminate objects. See GlobalDirLight for more information.

OutsideDef

Defines the outside of a level for the processor. Starting at the GameStartPoint, the processor will attempt to find its way to the OutsideDef object. If it can’t, the level is sealed.

Usage

Place the object in an area you are confident is not within the interior of the level and select Process World in the World pulldown menu.

Add "–leakfile [filename.lek]" in the Extra Parameters field under Advanced in the processor options. To save time, uncheck all processor options except for Import Geometry and process the level.

In the processor summary, just above "Creating WorldModels", you’ll see:

Creating leak file [filename].lek

If your world is sealed correctly or you haven’t placed an OutsideDef object, you’ll see this message immediately afterward:

** Couldn't find an outside leaf.

** (Or the world is sealed correctly).

ParticleSystem

Used to create a pre-defined type of particle effect in a level.

Messages

This object reacts to the following messages:

Message

Action

On

Activate

Off

Deactivate

Remove

Remove the object (good to use if you know you will never turn it back on)

PickupItem

The base class for all items the player may pick up in the game. In general, only the subclasses will be used.

PolyGrid

Creates a polygrid according to the parameters you specify. Polygrids may be used for flags or other effects.

Prop

The preferred method for placing models in an environment. Props are generally used for decoration (destructible or otherwise) in game levels.

Messages

This object reacts to the following messages:

Message

Action

Destroy

Destroys object normally

Fire

Fires weapon effect along forward vector (see ExplosionStuff below)

RampDownWaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

RampUpWaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

RaySelector

RaySelecters are used in rare cases to help debug levels. Sometimes if you have a bad brush in the level, the preprocessor will make a large polygon and it’s hard to figure out which brush is causing it. If you place a RaySelecter pointing in the direction of the bad polygon and run the preprocessor with –RaySelect in the Advanced Parameters box, it will select the first brush the RaySelecter points at.

RotatingWorldModel

RotatingWorldModels are generally used for gears, fans, turbines, and other objects that spin around a central axis. For rotating doors, use the RotatingDoor subclass of doors. For more elaborate rotating objects, use the keyframer.

Messages

This object reacts to the following messages:

Message

Action

On

Activate

Off

Deactivate

SawWaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

ScaleSprite

The preferred method for placing sprites in the world.

Messages

This object reacts to the following messages:

Message

Action

Damage

Switches to "damaged" frame

Destroy

Switches to "destroyed" frame

 

SearchWaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

SineWaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

SkyPointer

A SkyPointer object is an object that points at another object and tells the engine to only draw that object through sky portals (brushes with the SkyPortal flag set to true). You should always build objects that will be in the sky a little ways outside of the level so they don’t interfere with anything inside the level. The simplest example of a sky would be a hollow cube WorldModel with textures on the 6 inside faces for a sky box. (This could be done by creating a DemoSkyWorldModel or a WorldModel/SkyPointer combination).

The only types of objects that can be in the sky are Sprites and WorldModels.

The SkyObjectName tells which objects you want to place in the sky.

All the objects in the sky (DemoSkyWorldModels or objects pointed to by SkyPointers) are drawn in the order specified by their Index property. If two objects in the sky have the same Index, only one of them will be rendered. So if you had a sky box, and wanted something to be drawn in front it, you would give the sky box world model an Index of 0 and the object in front an Index of 1.

The SkyDims and InnerPercent properties define a box in the sky that maps to a box enclosing the world. As the viewer moves through the level, their view into the sky box moves around the box you define with SkyDims and InnerPercent so you get a little bit of parallaxing in the sky. Only one SkyPointer/DemoSkyWorldModel should have its SkyDims set. If multiple ones have their SkyDims set, the engine will pick one of them as the official values.

Sound

An engine object that creates a sound in a level. Use TriggerSound instead.

Spawner

Used for spawning enemies and pickup items. The Spawner’s position and rotation will determine where the spawned object appears in the level.

Messages

This object reacts to the following messages:

Message

Action

Default

Spawns default item specified in Spawner object

[spawn command string]

Spawns an item of the specified classname (e.g. FirstAid_25; CMC_Trooper; etc.)

Spawn Command String format

"<ClassName> <PropertyName> <PropertyValue>; <PropertyName <Property Value>; …"

The spawn command string is made up of tokens. Each token is separated from other tokens by a space. The first token is the class name. This is followed by 0 or more property definitions. The properties must be appropriate for the object type being spawned. Each property definition is separated by a semi-colon. Each property definition is given by a property name and the property value. All the tokens after the property name and before the next semi-colon are considered the property value. Each property value can be up to 100 characters long.

Sprite

An engine object used for placing a sprite in a level. Use ScaleSprite instead.

SquareWaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

StartPoint

The start point base class. Use GameStartPoint instead.

StrobeWaveLightFX

A convenience class exactly the same as the ClientLightFX object, but with both IntensityWaveform and RadiusWaveform set to the appropriate default values.

TransmissionTrigger

Prints an image and text string at the top left corner of the screen. A TransmissionTrigger will also play a sound file if it finds a filename corresponding to the string ID. The sound file must be placed in the \voice subdirectory if you are building a Shogo level.

Messages

This object reacts to the following messages:

Message

Action

Trigger

Activate

 

Trigger

The Trigger object is used to "trigger" (sends messages to) objects to do specific actions. A Trigger object is activated by one of two methods:

A player (or AI) object touches the Trigger’s bounding box, or

The Trigger receives a "TRIGGER" message from another object.

The Trigger object uses the Name and Pos properties defined in BaseClass.

Messages

This object reacts to the following messages:

Message

Action

Trigger

Activate the Trigger (this is the same as if the player touched the Trigger’s bounding box). If the Trigger is locked, nothing will happen.

Lock

Lock the Trigger. The Trigger can only be activated after it has received an UNLOCK message, or if the Player/AI has the UnlockKey (NOTE: this message was not designed to be used with the UnlockKey system of locking Triggers).

Unlock

Unlock the Trigger. The Trigger can now be activated.

TriggerSound

Used for ambient sound effects as well as one-time sound events.

Messages

This object reacts to the following messages:

Message

Action

Start

Plays start sound followed by the looping sound

Stop

Play stop sound, followed by silence

VolumeBrush

The parent object of all volume (or container) brush objects. The volume brush is used to turn a Brush into a specific volume type (e.g., water, wind, kato, etc.).

Messages

This object reacts to the following messages:

Message

Action

On

Activate

Off

Deactivate

 

WorldProperties

The WorldProperties object is used to set global variables for the current world. Every level should have one WorldProperties object. Only string properties are recognized.

Property summary

AccessDeniedMsg

Trigger

The ID of a resource string that is displayed when the Trigger is locked and something tries to activate it.

1025 Access Denied

AccessDeniedSound

Trigger

The filename of the sound that will be played when the Trigger is locked and something tries to activate it.

AccessGrantedMsg

Trigger

The ID of a resource string that is displayed when an unlocked Trigger is activated.

1024 Access Granted

AccessGrantedSound

Trigger

The filename of the sound that will be played when an unlocked Trigger is activated.

ActivateCondition

Various

If this value is set in an object, the object will only be loaded if the value matches an existing story variable. For example, say that you have an alarm in level one. The idea is that if the player trips the alarm, there will be additional guards waiting in level two.

In level one, you would set up the alarm so that if it is activated, it sends a message to Story, which is used for setting global variables.

The MessageName must consist of a variable and a value, both of which can be anything you want. When a level is loaded, the game will compare any object with an ActivateCondition set to a list of global variables. If the value in memory matches the value specified in the ActivateCondition field, the object will be loaded. Otherwise, it will be ignored.

So in this case, let’s say that the alarm sets "alarm TRUE" in level one. In level two, the extra guards are given the ActivateCondition of "alarm TRUE". If "alarm" isn’t set or is set to something other than "TRUE", the guards will not appear in the level.

NOTE: An activation condition can ONLY be set in a previous level.

ActivationSound

Trigger

The filename of a sound played when a trigger is activated. Include the pathname (e.g. "sounds\doors\door1.wav").

ActiveTime

Camera

Specifies how long (in seconds) a camera object remains active. When this time elapses (or when the camera receives an Off message), the game reverts to the player’s view. A value of –1 indicates that the camera stays on until turned off by a trigger message.

AdditionalFlags

ScaleSprite

Used to set additional flags on a ScaleSprite.

Flags:

8

Align sprite perpendicular to forward vector (good for aligning with world)

32

Shrinks the sprite as the viewer gets nearer

64

Biases the Z towards the view so a sprite doesn't clip as much

128

Disable Z read/write on sprite (good for lens flares)

NOTE: These flags can be added together (howerver, not all combinations make sense.)

AddObjectives

ObjectiveTrigger

Adds objectives to the player’s mission log. Enter the string IDs of objectives you wish to add. Separate string IDs with spaces.

Incomplete objectives appear in white.

AITriggerable

Various

Determines whether or not an AI can activate an object by touching it.

AITriggerName

Various

Allows you to specify an individual AI or select group of AIs that can activate an object. Enter the name of the AI or AIs.

AllowPlayerMove

Camera

If True, the player can move around freely while the camera is active.

Alpha

Polygrid

Affects the translucency of a polygrid. The spectrum runs from 0 (transparent) to 1 (opaque).

AlwaysLightmap

Brush

Not supported. Must be false.

Ambient

Sound, TriggerSound

Setting Ambient to TRUE means that the sound will play as if it were coming from everywhere around you, but will get quieter as you move farther away from it. Setting Ambient to FALSE means that the sound will play from a specific point.

AmbientList

WorldProperties

Specifies the files to use as an IMA playlist. Up to 30 files can be specified.

Armor

Specifies the number of armor points the object has.

ArmorPoints

BaseAI derived classes

Same as Armor.

Note: Any non-negative value will be used as the exact armor point value. Setting ArmorPoints to –1 will use the default for the AI subclass.

AttachToObject

Trigger

Attaches a Trigger to an object, such as a Prop or a WorldModel. If the object moves, so does the trigger.

AvailableSounds

Specifies which sounds a specific AI will be able to play. Because an AI can only play one sound at a time, new sounds interrupt sounds that are currently playing. Therefore, it is advisable to disable most sounds for an AI that will be speaking to the player in order to avoid possible interruptions.

AvailableStates

States set to True are available to the AI. Any state set to False is ignored when the AI calculates its state.

BaseKeyName

KeyFramer

The base name of the key series. The keyframer will look for a key with that base name followed by 0, then look for the base name followed by 1. It will continue until it finds no more keys in the series.

BoxPhysics

Door, RotatingWorldModel

If True, the object will use box physics rather than accurate physics for object collision. Box physics are more optimal, so leave this flag True unless the object is angled or can rotate.

BprintMessage

Key

Don’t use.

Bravado

BaseAI derived classes

Bravado is used in the ai state change calculation. The higher the bravado the more likely the AI will be aggressive, the lower the bravado the more likely the AI will retreat.

Bravado can range from 0 to 4.

BrightScale

Indicates the relative brightness scale of the light. Values greater than 1.0 will create oversaturated-looking effects, while values less than 1.0 will merely dim the light.

BumpedTriggerMessage

Message sent when player touches the AI.

BumpedTriggerNumber

How many times the message is sent.

BumpedTriggerTarget

Target for trigger message sent when player touches AI.

BumperScreen

Vestigial property. Don’t worry about it.

BumperTextID

Points to the bumper screen ID for the next level.

BurstWait

The delay between particle bursts in a particle system.

BusySound

Looping sound played while WorldModel is at full velocity.

CanDamage

Specifies whether or not an AI will take damage. If set to False, no damage messages will be sent.

CanHeal

Specifies whether or not the object can be healed (can pick up/use first aid).

CanRepair

Specifies whether or not the object can be repaired (can pick up/use armor)

CastShadowsFlag

If CastShadowsFlag is True the LithTech FLAG_CASTSHADOWS will be set. The light will cast shadows.

CDTrack

Not supported.

Chrome

If the model’s texture map has an alpha mask, this property will apply the world’s environment map (see EnvironmentMap) for a chrome effect.

ClipLight

Clips light to the world geometry so that only those surfaces facing the Light’s center are illuminated. If False, the Light’s illumination ignores world geometry.

CloseBusySound

Sound played while door object is moving to its closed position.

CloseStartSound

Sound played when door object is activated to return to its start position.

CloseStopSound

Sound played when door reaches its closed position.

CloseWaitTime

How long the door remains in its closed position before it can be re-opened.

ClosingSpeed

Overrides the door’s move speed when it is closing. Leave this value 0 if you want it to open and close at the same rate.

Color

Color specifies the base color to use for the ClientLightFX.

Color1

ParticleSystem, Polygrid

Defines one end of a color range.

Note: All particles will range between Color1 and Color2. Grayscale particle textures will respond to color variations more predictably than colored particle textures.

Note: One end of a color range that will cycle across the polygrid. The surface of the polygrid will shift non-linearly between Color1 and Color2.

Color2

ParticleSystem, Polygrid

Defines the other end of a color range

Note: All particles will range between Color1 and Color2. Grayscale particle textures will respond to color variations more predictably than colored particle textures.

Note: The other end of a color range that will cycle across the polygrid. The surface of the polygrid will shift non-linearly between Color1 and Color2.

CompleteObjectives

Enter the string IDs of objectives you wish to mark as completed in the player’s mission log. Completed objectives are grayed out. Separate string IDs with spaces.

Condition

BaseAI derived classes

Used in calculating the AI’s state. Don’t set this value (it is calculated internally, so setting it will not do anything).

CruisingList

Specifies the files to use as a playlist. Up to 30 files can be specified.

Current

A force that pushes against the player. Use positive or negative values along each axis (x, y, and z) to indicate the direction and strength of the current. In general, you’ll need values in the thousands in order to lift a player off the ground.

Damage

The amount of damage applied by a VolumeBrush every second.

DamagedFilename

ScaleSprite

The name of the sprite file used when the object receives a Damage message (see ScaleSprite)

DamagerMessage

The message that is sent to the object responsible for damaging this object.

DamageTriggerMessage

Message sent when AI is damaged.

DamageTriggerNumber

How many times a damage trigger may be sent. A value of –1 indicates that message is always sent.

DamageTriggerTarget

Target for trigger message sent when AI is damaged.

DamageType

VolumeBrush

Indicates the type of damage caused by a VolumeBrush.

Damage types:

DeathTriggerMessage

Message sent when AI is killed.

DeathTriggerTarget

Target for trigger message sent when AI is killed.

DebrisType

Used to specify the material the object is made of for impact sounds, footsteps, and debris effects.

Debris types:

DefaultSpawn

Spawner

The default spawn string that will be used if "default" is specified as the spawn value.

DestinationWorld

The world that is loaded next when you hit an exit trigger. Enter the filename without path or file extension information (e.g. "nextworld" as opposed to "worlds\nextworld.dat").

DestroyedFilename

ScaleSprite

The sprite file that is used if the ScaleSprite receives the Destroy message.

DestroyedModels

Prop

Allows you to swap models when the prop is destroyed. For example, you could switch from a car to a wrecked car. If no model is specified, the prop will vanish when destroyed.

DestroyedSkins

Prop

Allows you to swap skins when the prop is destroyed.

DestroySound

This is a vestigial property that should be left alone.

DestroyedSounds

This is a vestigial property. Best to avoid it.

DetailLevel

Used to speed up vis times. Any brush with a detail level of 0 will be included in calculating the visibility list. Setting this value to 1 tells the processor to treat the brush as detail, which excludes it from the vis list calculation, speeding up the process. Primarily useful with light fixtures, railings, and other small detail work.

Note: Be careful with detail brushes. You may experience problems with leaks and other geometry issues if a detail brush abuts the edge of the world. Experiment with detail settings and pay attention to the results. If your poly counts go up drastically in an area, you should consider setting potential culprits back to zero.

Dims

Various

Dims specifies the bounding box (dimensions) of the object. The box is relative to the position of the object. When two object’s dims are overlapping the objects are considered touching.

Note: Dims are calculated from the object’s center, so (32, 32, 32) would create a bounding box of 64x64x64.

Note: Specifies the x, y, and z dimensions of the polygrid object.

DirectionalLight

Applies the light values from a GlobalDirectionalLight to the brush. Only works with flat shaded brushes.

DontLightBackfacingFlag

If DontLightBackfacingFlag is True the LithTech FLAG_DONTLIGHTBACKFACING will be set for the light. The light will not light backfacing polies. Useful to keep lights from shining through walls, for instance.

Effect

A surface effect applied to a brush. See EffectParam for usage.

Effects:

Pan

Rotate

Warble

EffectParam

Parameters for a brush effect (see Effect).

Parameters:

Effect: Pan

EffectParam: <left/right pan speed> <up/down pan speed>

Effect: Rotate

EffectParam: <center> <speed> (reasonable speed is 0.1)

Effect: Warble

EffectParam: <center> <x speed> <y speed> (reasonable speed is 0.3)

Example:

Warble center 1 0.3

Warble bbf 3 2

EmissionRadius

Indicates the radius in which particles are generated.

EnableFog

Pretty much what you’d expect. Enables fog.

EndOfScenario

Vestigial property. Ignore.

EnvironmentMap

The name of the environment map to be used in the world. Environment maps are used for chrome effects on models.

Evasive

BaseAI derived classes

Determines how likely an AI is to strafe back and forth once engaged with an enemy. Valid range is 0 to 5, with 5 indicating no strafing at all.

Experience

BaseAI derived classes

Used when calculating the AI’s state. Valid range is 0 to 4, with 4 causing the AI to be more likely not to panic.

ExplosionStuff

Sets the explosion effects (if any) used when the prop is destroyed or receives a Fire message.

CreateExplosion

If True, an explosion will be created.

WeaponID

Specifies which weapon effect is created.

Vector weapons may have some issues, since their impact effects are generated at the impact point of a vector. If you use a vector weapon ID, a vector will be fired straight down when the prop is destroyed. The impact effect will be created wherever the vector hits. Therefore, if you’ve got an airborne prop, it’s best to use the default (Bullgut) weapon ID.

ExplosionSize

Adjust the damage radius of the explosion.

FireAlongForward

Fires the weapon effect along the prop’s forward vector instead of generating it at the prop’s center. See WeaponID for additional information.

DamageFactor

Scales the amount of damage caused by the explosion.

FarZ

Vestigial property.

Filename

The filename of the object. Must be the full path with the .abc file extension (e.g. "models\props\myprop.abc", "sprites\mysprite.spr", etc.).

FileStream

Sets a sound to stream rather every time it is played rather than be retained in memory. This is best used for large sounds

FlatShade

The brush uses flat shading, which, as the name implies, lights each surface one flat shade based on an average of the light across the entire face.

It is also possible to manually set a light value per surface with flat shaded brushes. You can do so either in brush mode or geometry mode by selecting the brush/face and right clicking. Choose Edit Surface Color… and set the color appropriately. Note that you will most likely have to use very dark colors (10 10 15, for example) in order to get decent-looking results.

Flat shaded brushes can also be lit with a GlobalDirectionalLight, which requires FlatShade, DirectionalLight (see below), and a GlobalDirectionalLight object (see below).

Note: Make sure to turn off GouraudShade, LightMap, and Subdivide.

FlushWithWorld

ScaleSprite

If this value is true, the object will be aligned flush with the world (wall, floor, etc.) directly behind (i.e., opposite the object’s forward vector) the object.

FogColor

Sets the fog color.

FogFarz

Sets the fog’s far clip plane

FogNearZ

Sets the fog’s near clip plane

FogLightFlag

If FogLightFlag is True the LithTech FLAG_FOGLIGHT will be set for the light. This will generate fog instead of light.

FOV

The field of view of a DirLight. The greater the number, the wider the light’s cone will be.

FrictionCoefficient

It’s probably a good idea to leave this at its default value.

FullyBright

The brush is fully bright. Lighting does not affect it.

Note: You probably won’t use this flag very often, but if you do, make sure to turn off LightMap and Subdivide.

GameType

GameStartPoint

Determines which type of game the start point is used for.

  1. Singleplay
  2. Deathmatch

GouraudShade

The brush uses Gouraud shading, which is essentially vertex lighting. You may experience some "swimming" effects with Gouraud shaded surfaces if the light value on a given surface is greatly different from that on another.

Gouraud shading is definitely the way to go on terrain maps and other natural-looking areas, as it creates a smoother, more organic look and blends the seams between polygons. For best results, try to make the lighting even.

Note: The GouraudShade flag can and should co-exist with the LightMap and Subdivide flags if you plan to allow users to turn off lightmapping, since it generally looks better (i.e. smoother and more consistent) unless you’ve specifically lit an area for flat shading. The problem with flat shading is that because it uses the average lighting on a surface, you can end up with ugly blocky patterns on walls and floors where adjacent polygons are lit differently. Gouraud shading will smooth out the transition between the two faces for a more natural look.

Gravity

Various

Specifies whether or not the object has gravity.

Note: (RotatingWorldModel) Turn off Gravity for best results.

HarddrivingList

Specifies the files to use as a playlist. Up to 30 files can be specified.

HearingRange

Indicates AI’s hearing radius in world units.

Hidden

VolumeBrush

Is the object visible (or active)

HitPoints

Specifies how many hit points the object has.

Note: Any non-negative value will be used as the exact hit point value. Setting HitPoints to –1 will use the default for the AI subclass.

HullMaker

This is a tricky one.

First off, a hullmaker is a "brush" that creates a manual hull, which is used by the visibility list to determine what you can see from any given point in a level. Carefully placed hullmakers can reduce polycounts, overdraw, and texture memory usage.

A hullmaker has to be a zero thickness brush, which you must create in geometry mode the same way you’d create a regular brush. The difference is that when you connect the dots, you won’t be prompted to give the brush dimension. You will only be able to select the brush from the visible side.

Do yourself a favor and name all your hullmakers consistently. "Hullmaker" will work fine. Then group them, name the node "hullmakers", and hide it.

Note: Hullmakers should be non-solid, invisible, and have no lighting. Also, be sure to set the HullMaker flag to true.

ImageFilename

TransmissionTrigger

The name of the PCX image displayed when a transmission trigger occurs. This filename does not include the path to the file, it is assumed to be located in Interface\TranPix\ (e.g., hank.pcx)

InnerColor

The core color of the light.

Note: InnerColor is applied to surfaces facing a GlobalDirLight object.

InnerRadius

TriggerSound

The inner radius of the sound. In other words, the farthest distance away from the origin of the sound where the sound is still played at full volume.

InstrumentFiles

Specifies the 2 files for the DLS information. Separate file names with spaces. The first file is the DLS file that contains the instrument data. The second file is a style file. The style file must contain bands that use all the instruments of the DLS file.

IntensityFreq

IntensityFreq specifies the frequency that the IntensityWaveform follows. The higher the value, the faster the light will cycle. Fractional values accepted.

IntensityMax

IntensityMax specifies the maximum value for the ClientLightFX’s intensity.

IntensityMin

IntensityMin specifies the minimum value for the ClientLightFX’s intensity. The intensity will cycle between IntensityMin and IntensityMax based on the IntensityFreq and IntensityPhase settings.

IntensityPhase

IntensityPhase specifie the phase offset that the IntensityWaveform follows. Values are in degrees between 0 and 360. A value of 180 will cycle exactly out of phase with a ClientLightFX with the same frequency and an offset of 0. ClientLightFX objects with the same IntensityFreq and IntensityPhase will play in sync.

IntensityWaveform

IntensityWaveform specifies the waveform to use to vary the intensity.. Valid waveform values are:

0 No waveform, light will not cycle.

1 Square waveform: Light will cycle instantly between Min to Max values.

2 Saw waveform: Light will cycle from Min to Max along linear values.

3 Ramp Up: Light will ramp up from Min to Max values and then reset directly to Min.

4 Ramp Down: Light will ramp down from Max to Min values and then reset to Max.

5 Sine: Light value follows a Sine wave path between Min and Max,

6 Flicker 1: Light follows a flicker pattern that only has Min and Max values.

7 Flicker 2: Light follows a more "organic" flicker pattern (accoring to the Blood source)

8 Flicker 3: mostly on flicker -- good for flaky fluourescents.

9 Flicker 4: mostly off flicker -- good for really flaky fluourescents

10 Strobe: Light pulses from Max to Min.

11 Search: Light follows a Sine pattern with some wait time in the Min state.

Invisible

Won’t be drawn, but will still block the player and AIs.

Note: If an invisible brush intersects with another brush, there will be a visible hole in the level at the junction point. In general, it’s probably safer to use a WorldModel, since WorldModels don’t subdivide geometry.

IsListener

If True, the camera position, rather than the player position, acts as the microphone.

KillerMessage

The message sent to the object that killed this object.

Large

If True, creates a scaled-up version of the AI for use in on foot levels.

LifeTime

If LifeTime is non-zero it specifies the amount of time that the ClientLightFX will exist after it is created or triggered on.

LightMap

The brush uses lightmapping, which, while slower to render than Gouraud shading or flat shading, looks more natural. This should be your default in most indoor structures.

LightObjects

Specifies whether or not the light illuminates objects.

LightRadius

Specifies the radius of illumination. In the editor, the radius of a selected Light is graphically represented by a ring around the light object.

LightScale

Sets the global light scale for a level. This property was originally implemented in order to make in-game flashbacks look different from regular gameplay (for example, a bluish tint).

LightSwitch

LightSwitch sets whether or not the ClientLightFX object is in the on state when it is created.

Locked

If Locked is 1 the Trigger cannot be activated.

Looping

If True, the keyframer will continue to loop until turned off.

Note: if you want a keyframed object to loop, it may be necessary to place the last key in the series in the same exact position as the initial key, as the initial key’s TimeStamp is 0, which will cause the object to snap back to this position.

LoopSound

TriggerSound

A looping sound played after a TriggerSound’s StartSound. If no StartSound is specified, the LoopSound will commence immediately. The LoopSound plays until the TriggerSound receives a Stop message, at which point the StopSound is played.

LostTriggerMessage

Message sent when AI loses sight of the player.

LostTriggerNumber

How many times the message is sent.

LostTriggerTarget

Target for trigger message sent when AI loses sight of the player.

Marksmanship

Specifies the accuracy of an AI’s aim. The valid range is 0 to 6, 0 being the most accurate and 6 being the least. These are the default values for the Hard difficulty setting and are adjusted for other difficulties.

Mass

The mass of the object. In general, leave this value alone. Some objects (like

Masses

Same as Mass.

MaximumVelocity

The maximum velocity for a given particle in the system.

MaxNumDebris

The maximum number of debris objects that will be generated when the prop is destroyed. The actual number will be between the min and max debris numbers.

Message1 (Message2, Message3)

The message sent if string 1 is selected.

MessageName

The message sent when a keyframed object reaches the key.

MessageName1 (MessageName2, etc.)

MessageName1 is the message that will be sent to all objects named "TargetName1" when the Trigger is activated.

MessageTarget

Target for trigger message sent when a keyframed object reaches the key. Note that you can do some cool stuff with destructible keyframed objects, since they won’t send a trigger message if they get blown up before they reach the next key.

MinimumVelocity

The minimum velocity for a given particle in the system.

MinNumDebris

The minimum number of debris objects that will be generated when the prop is destroyed. The actual number will be between the min and max debris numbers.

ModelAdd

Not supported.

MoveDelay

How long the door waits before moving once it is triggered. This property is especially useful for lifts, as it makes it much easier for a player get onto a platform before it starts moving. For most doors, you’ll probably want to leave this 0, but 0.5 is a good value for lifts.

MoveDir

The vector in which the door moves when activated.

  1. No movement along this vector

-1 Moves along the negative vector (e.g. negative y is down)

1 Moves along the positive vector (e.g. positive y is up)

Note that you can use these vectors to make doors that move at angles (for example, 1, -1, 0 will move the door simultaneously along positive x and negative y.

MoveDist

How far the door moves in world units. It’s usually advisable to leave about 4 units of the door visible in its open position since moving it flush with a door frame will create z-buffering issues (since the engine will draw both the surface of the door and the surface of the door frame). For example, if a door frame is 128 units tall, have the door move 124 units up.

MoveToFloor

If True, object is moved to floor on initial update. Should be set to False for objects that are supposed to start in the air.

MusicDirectory

Specifies the path to the data files used for IMA.

Name

Name is used to give the object a unique name. This property should be set if the level designer wants to refer to this object (i.e. send it a message). Multiple objects may share the same name, which is often useful for triggering multiple objects at the same time.

Note: WorldModels (i.e. brushes converted to objects such as doors, volume brushes, etc.) must have unique names.

Note: Keys must be named with a base name and a number, which indicates their position in the series. The initial key, which indicates the keyframed object’s starting point, must be 0 in the series.

Note: Names are CASE SENSITIVE. John is not the same as john (this is very important when sending trigger messages to objects)

NeverDestroy

Specifies whether or not an AI can be destroyed. If set to True, AI will be immortal, but damage messages will still be sent. This property effectively replaces CanDamage.

Nonexistent

If this flag is set, the brush will be removed during preprocessing.

NoSnap

Used on terrain maps to prevent geometry errors. If you have a terrain, set this flag to True.

NumPolies

PolyGrid

The number of polygons used to make the surface mesh of a polygrid. The higher the number, the smoother and more intricate the surface plasma will be.

NumSurfacePolies

VolumeBrush

The number of polygons used to make the surface mesh of a polygrid. The higher the number, the smoother and more intricate the surface plasma will be.

ObjectName

The name of the object you are keyframing.

ObjectOfDesire

Not implemented. Was originally going to be used for the Guarding state, but we never got around to adding that.

On

Specifies whether or not the object starts active.

OneTime

If True, the camera can only be activated once. Otherwise, it can be activated repeatedly.

OnlyLightWorldFlag

If OnlyLightWorldFlag is True the LithTech FLAG_ONLYLIGHTWORLD will be set for the light. This will keep the light from lighting objects.

OpenBusySound

Sound played while door object is moving to its open position.

OpenStartSound

Sound played when door object is activated. Use the path name (for example: "sounds\doors\open1.wav").

OpenStopSound

Sound played when door object reaches its open position.

OpenWaitTime

How long the door remains in its open position before closing. This property is ignored if the door’s state is 8 (remains open) or 4 (must be triggered to close).

OuterColor

The color of the light’s penumbra, or fringe. Selecting a color other than black can cause interesting (although not particularly realistic) effects. In general, it’s advisable to leave this color black unless you’re striving for a deliberate effect.

Note: OuterColor is used as the shadow color for a GlobalDirLight object and is applied to surfaces facing away from the GlobalDirLight.

All other surfaces are lit somewhere in between the InnerColor and OuterColor. Experimentation is advisable.

OuterRadius

TriggerSound

The farthest distance away from the origin of the sound that it can still be heard.

 

ParticleFlags

ParticleSystem

Note: These flags can be added together.

Note: None of these are used in Shogo.

ParticleGravity

Specifies the amount of gravity applied to the particles in the system. Use 0 if you don’t want any gravity to be applied.

ParticleLifetime

How long each particle exists before being removed.

ParticlesPerSecond

How many particles are produced per second.

ParticleRadius

ParticleSystem

The radius of each particle in the system. This value is relative to the size of the texture used for the particle.

PlasmaInfo

PolyGrid

See PlasmaType.

PlasmaType

PolyGrid

Indicates the type of plasma to use to generate motion on the polygrid. Valid values are 0 for normal plasma and 1 for 4 ring plasma (see Ring1Rate for more information about 4 ring plasma)

PlayerMode

GameStartPoint

Sets the mode the player starts in.

Modes:

0 On foot

1 Predator

2 Enforcer

3 Ordog

4 Akuma

5 Kid

  1. Current MCA
  2. Multiplayer MCA

Note: Mode 6 (Current MCA) is used for most MCA levels, as the level designer cannot predict which MCA the player selected. If you are assigning the player a specific MCA, use its corresponding value.

Note: Mode 7 should be used for Multiplayer levels if you want to allow players to select specific MCAs. However, if you want to force ALL players to use the same MCA you can use Mode 1, 2, 3, or 4.

PlayerTriggerable

Determines whether or not the player can activate the trigger by touching it.

Portal

Used in conjunction with doors to create dynamic hullmakers. When the door is closed, nothing beyond it will be drawn.

Note: Give the portal a name (a door object must point to the portal by name) and set it up just like a hullmaker.

PortalName

Specifies the name of the door’s portal (see Brush above for more information on portals).

Pos

Pos describes the location of the object in the world. Level designers usually won’t need to adjust this value manually (it is automatically adjusted by moving the object in DEdit).

Priority

Sounds have priorities within their SoundType. The valid numbers are 0, 1, and 2. Lower numbers have lower priority.

RadiusFreq

RadiusFreq specifies the fequency that the RadiusWaveform follows. The higher the value, the faster the light will cycle. Fractional values accepted.

RadiusMax

RadiusMax specifies the maximum value for the ClientLightFX’s Radius.

RadiusMin

RadiusMin specifies the minimum value for the ClientLightFX’s radius. The radius will cycle between RadiusMin and RadiusMax based on the RadiusFreq and RadiusPhase settings.

RadiusPhase

RadiusPhase specifie the phase offset that the RadiusWaveform follows. Values are in degrees between 0 and 360. A value of 180 will cycle exactly out of phase with a ClientLightFX with the same frequency and an offset of 0. ClientLightFX objects with the same RadiusFreq and RadiusPhase will play in sync.

RadiusWaveform

RadiusWaveform specifies the waveform to use to vary the Radius.. Valid waveform values are are the same as for the IntensityWaveform. The radius can have a completely different waveform than the intensity for some weird effects.

RampDownSound

RampDownSound specifies the sound file to play when the ClientLightFX starts to cycle from Max to Min.

RampUpSound

RampUpSound specifies the sound file to play when the ClientLightFX starts to cycle from Min to Max.

RemoveObjectives

Enter the string IDs of objectives you wish to remove from the player’s mission log. Separate string IDs with spaces.

Ring1Rate, Ring2Rate, Ring3Rate, Ring4Rate

Polygrid

Used when PlasmaType is set to 1 in the polygrid. These values determine the rate at which the first, second, thrid, and forth plamsa rings change.

Rotatable

ScaleSprite

Tell the sprite to use the LithTech FLAG_ROTATEABLESPRITE flag (this is the same as adding 8 to the ScaleSprite’s AdditionFlags property). See AdditionalFlags.

Rotation

Rotation describes the rotation (Yaw, Pitch, and Roll) of the object. In the editor, objects are displayed as gray boxes with colored lines emanating from the center to indicate the object’s orientation. The blue line is z (forward and backward), red is y (up and down), and green is x (left and right).

Scale

Prop

Allows you to adjust the scale of the object. The default is 1 1 1.

ScaleX

ScaleSprite

Adjusts the X dimension of the sprite. The default is 0.5.

ScaleY

ScaleSprite

Adjusts the Y dimension of the sprite. The default is 0.5.

SendDelay

SendDelay indicates the amount of time that the Trigger waits after it is activated to send its messages.

Shadow

Specifies whether or not the prop casts a shadow. Not that model shadows are handled the same way as character shadows.

ShowDeadBody

If set to False, the AI will vanish immediately when killed. Primarily used for boss fights. Basically, if you’re fighting a boss who will appear again later in the game, you can remove the AI immediately upon its defeat and spawn a new version which you can script in a cinematic.

ShowSurface

VolumeBrush

Specifies whether or not a PolyGrid surface is drawn on the VolumeBrush.

Skin

The filename of the model’s texture map. Must be the full path with the .dtx file extension (e.g. "skins\props\myprop.dtx"). For the sake of convenience, you should name models and skins identically.

SkyFog

Specifies whether or not the level contains sky fog.

SkyFogFarZ

The SkyFog’s far z value (see FogFarZ)

SkyFogNearZ

The SkyFog’s near z value (see FogNearZ)

SkyPan

Any brush with this flag set can be affected by skypanning (i.e. cloud shadows). In order for it to work, the brush can’t have lightmapping. Either Gouraud shading or flat shading will work fine.

Note: In order for this flag to work, at least one brush in the level must have the LightMap flag set to True.

SkyPanning

Sets whether or not skypanning will be used in the level.

SkyPortal

Indicates that the brush is a sky portal (i.e. instead of seeing a texture mapped brush, you’ll see the world’s sky).

Note: SkyPortal brushes should only have Solid and SkyPortal set to True. All other flags should be False.

Small

Creates a scaled-down version of the AI for use in MCA levels.

SoftSky

Points to a sky box used in software mode.

Solid

Specifies whether or not an object is solid. Non-solid objects will not block base characters or projectiles.

Notes: You should generally avoid using this flag on Brushes. If you want a non-solid object within a level, it’s generally advisable to bind it to a WorldModel of some sort (door, volume brush, etc.) and make the WorldModel object non-solid instead. Trust me.

SolidLightFlag

If CastShadowsFlag is True the LithTech FLAG_SOLIDLIGHT will be set. Use the 'fastlight' method for this light.

SoundName

Key

Specifies the name of a sound to play when a specific keyframer key is processed. See KeyFramer.

SoundPos

Allows you to override the position at which door sounds are played in the case of a very large door. Enter the x, y, and z coordinates of the desired sound position. (Note: a good way to locate a position is to place a temporary object there—it can be any object you like—and write down its Pos values. Then delete the temp object.)

SoundRadius

The total radius of a sound generated by the object. The radius of a selected object will be displayed as a ring in the editor. SoundRadius is the distance away from the trigger object that the sound can be heard (approx.)

Note: (key) I don’t think this property works.

Note: (prop) This is a vestigial property. Best to avoid it.

Sounds

Used for overriding default sounds in a particular category. Value should be the sound that is to be played.

Spawn

Used for spawning specific pickup items. Simply specify the name of the pickup item you want to spawn exactly as it appears in the object list in DEdit (e.g. FirstAid_25).

SpawnItem

Used for spawning specific pickup items. Simply specify the name of the pickup item you want to spawn exactly as it appears in the object list in DEdit (e.g. FirstAid_25).

SpawnSound

Spawner

The sound that is played when the object is spawned.

Speed

Indicates how fast the door moves in world units per second.

SpinDownSound

Sound plyaed while WorldModel is spinning down to a stop.

SpinUpSound

Sound played while WorldModel is spinning up to full velocity.

SpotTriggerMessage

Message sent when AI spots the player.

SpotTriggerNumber

How many times the spot trigger message is sent.

SpotTriggerTarget

Target for trigger message sent when AI spots the player.

SpriteSurfaceName

Specifies the sprite file to be used as a texture on the polygrid surface. Note: you can achieve very cool results with animating sprites and alpha-masked textures.

StartActive

The object will be active from the moment the level loads.

StartOn

Specifies whether or not the particle system starts active.

StartPointName

Sets the name of the start point the player will begin the next level at. Used primarily in cases in which a player may enter a level from two different points.

StartSound

TriggerSound

The sound played when a TriggerSound receives a Start message. Once the StartSound plays, the LoopSound will begin unless none is specified.

State

Determines the AI’s starting state (see AI section for detail on how the state system works).

  1. IDLE
  2. DEFENSIVE
  3. AGGRESSIVE
  4. RETREATING
  5. GUARDING (not implemented)
  6. PANICKED
  7. PSYCHO (not implemented)

StateFlags

Determines how the door behaves.

Self Triggerable 1

Start in open position 2

Trigger to close 4

Remains open 8

These flags can be added together (i.e., Self triggerable and starts in open position = 3)

StopSound

TriggerSound

The sound a TriggerSound plays when it receives a Stop message.

String1ID (String2ID, String3ID)

The ID points to a text string that is displayed on the screen by a DialogTrigger. Players may cycle among available text strings (up to three) and select the one they prefer by hitting the Enter key.

StringID

Points to a text string that is displayed on the screen.

Subdivide

Subdivides a surface for lightmapping. Leave True for lightmapping. Set to False for any other type of lighting.

SurfaceAlpha

Affects the transparency of the surface, from 0 (transparent) to 1 (opaque).

SurfaceColor1

One end of a color range that will cycle across the polygrid. The surface of the polygrid will shift non-linearly between Color1 and Color2.

SurfaceColor2

The other end of a color range that will cycle across the polygrid. The surface of the polygrid will shift non-linearly between Color1 and Color2.

SurfaceHeight

Sets the turbulence of a polygrid surface: ranges from 0 (flat) on up.

Target1 (Target2, Target3)

The target for the trigger message corresponding to string 1.

TargetName1 (TargetName2, etc.)

TargetName1 is the name of the object(s) that will receive the MessageName1 message (NOTE: all objects with this name will receive this message).

TextureName

The texture used by the particle. Can be anything you want.

Time

Not used.

TimeStamp

How long it takes the keyframed object to reach the key from its current position. Note that the initial key must have a TimeStamp of 0.

TintColor

Changes the color of the prop.

Translucency

If the model’s texture map has an alpha mask, this property will allow you to adjust the translucency of the prop. The range runs from 0 (transparent) to 1 (opaque).

Translucent

The brush will be translucent IF AND ONLY IF it is bound to a WorldModel of some sort (door, volume brush, etc.) and if the texture applied to it has some sort of alpha masking.

To verify that a texture has an alpha mask, select it in the texture view, right click on the filename, and select Texture Properties. Look for the Alpha Masks flag.

Note: In case it isn’t obvious, this flag should only be used with WorldModel subclasses.

TriggerDelay

TriggerDelay indicates the amount of time after the Trigger has been activated before the Trigger can be activated again.

TriggerDims

By default, a door will be triggered when a player or AI touches it. This property allows you to create a larger trigger radius for the door. See Trigger for more information on how to set Trigger dims.

TriggerMessage

The message that is sent to the object specified by TriggerTarget. Some common messages are: Trigger, Start, Stop, On, Off, etc.

TriggerTarget

The name of the object that should receive the TriggerMessage.

Note: Object names are CASE SENSITIVE.

Type

Camera

Specifies the type of camera to use.

Supported types are:

  1. Full screen
  2. Cinematic (i.e., Letterbox)

UnlockKey

UnlockKey is the name of the key used to unlock this Trigger. If the Trigger is locked and the Player (or AI) has a key that matches UnlockKey, the Trigger will be unlocked. NOTE: If the Trigger receives an "UNLOCK" message, it will be unlocked regardless of the value of UnlockKey.

VelocityOffset

ParticleSystem

This is the velocity offset (i.e., a random value between –velocityOffset and +velocityOffset) in both the x and z directions (relative to the ParticleSystem) that the each particle may travel.

Visible

Specifies whether or not the object is visible.

Note: Invisible props can be useful either for creating simple barriers for the player or explosions (see ExplosionStuff).

Viscosity

VolumeBrush

Affects the resistance of a volume.

VisibleRange

Indicates how far an AI can see in world units.

VoiceType

Each sound belongs to a specific voice type. Shogo has 3 voice types: miscellaneous (type 0), player (type 1), enemies (type 2).

Volume

The amplitude of a sound.

Waveform

Specifies a movement waveform for the door.

0 Linear (door moves at a constant rate)

1 Sine (starts slow, speeds up, then slows down)

2 Slow off (ends slow)

3 Slow on (starts slow)

WeaponId

Indicates which weapon an AI has.

Wind

WorldProperties

This is a global (per level) wind velocity that is added to some special effects. This velocity affects mainly rocket smoke trails and explosion smoke drift.

XAxisRevTime (YAxisRevTime, ZAxisRevTime)

The amount of time it takes for the object to complete one full revolution around the specified axis.

XAxisSpinUpTime (YAxisSpinUpTime, ZAxisSpinUpTime)

How long it takes the object to accelerate to full velocity.

XAxisSpinDownTime (YAxisSpinDownTime, ZAxisSpinDownTime)

How long it takes the object to decelerate to a complete stop

XRotateForward (YRotateForward, ZRotateForward)

Specifies whether object rotates forward or backward around its axis.

XScaleDuration

Polygrid, VolumeBrush

This value indicates how long it takes (in seconds) the polygrid surface to scale from XScaleMin to XScaleMax.

XScaleMax

Polygrid, VolumeBrush

The maximum polygrid scale value in the X dimension. This value is used to scale the surface texture of the polygrid.

XScaleMin

Polygrid, VolumeBrush

The minimum polygrid scale value in the X dimension. This value is used to scale the surface texture of the polygrid.

XPan

Polygrid, VolumeBrush

The time it takes the polygrid surface to complete a full pan in the X dimension.

YScaleDuration

Polygrid, VolumeBrush

This value indicates how long it takes (in seconds) the polygrid surface to scale from YScaleMin to YScaleMax.

YScaleMax

Polygrid, VolumeBrush

The maximum polygrid scale value in the Y dimension. This value is used to scale the surface texture of the polygrid.

YScaleMin

Polygrid, VolumeBrush

The minimum polygrid scale value in the Y dimension. This value is used to scale the surface texture of the polygrid.

YPan

Polygrid, VolumeBrush

The time it takes the polygrid surface to complete a full pan in the Y dimension.

 

Strategies

Building geometry

Build on the grid

Sticking to a 64x64 or 128x128 grid for most of your general layout (particularly on the y axis—i.e. floors and ceilings) will save you tons of headaches with texture alignment. Since most of your wall textures will be 128x128, let the grid do your alignment for you wherever possible.

Build flush

Make sure that your brushes fit tightly together. Brushes should abut against one another. Avoid seams created by the edges of two brushes, as these junctions may result in leaks. Instead, drag one or the other brush the extra units to create an abutment. For example, take two bricks and hold them so that they are joined only by their corners. Obviously, this configuration is pretty unstable. Now slide one brick down so that its base is flush against the surface of the other. This is the configuration you should use.

By the same token, try not to overlap brushes. In other words, avoid having one brush intersect with another. If a brush is sticking into another brush, the processor will have to do more work to figure out which geometry to remove.

It is especially important to avoid allowing two overlapping brushes to share a surface visible from inside the world. The simplest example is a brush that is copied and pasted onto itself. If the two brushes have the same texture, you can expect lighting errors at the very least. If the brushes have different textures, you may see both lighting errors and z-buffering issues (shimmering resulting from the different surfaces being rendered in different frames).

Use the locator

By moving the locator (the green lines that crisscross each window in DEdit) with the X key, you can move the world origin, which is the junction where x, y, and z meet. This tactic allows you to place new brushes precisely where you want them.

The principle is fairly simple.

Typically, you will create brushes in one of the three perspective windows: x/z (top/bottom), x/y (front/back), or y/z (left/right). If you build a brush in the x/z window, it will appear in the world where the y axis meets x and z (0 0 0 by default). Likewise, if you build a brush in the x/y window, it will appear where the z axis meets x/y.

If you move the locator up by 128 units in either the y/z or x/y windows, you can change the y position at which brushes created in the x/z window will appear.

Tutorial: Create a new world in DEdit. Create a new 256x256 brush in the upper right window (x/z). Give it a thickness of 32 units. You now have a floor.

In the x/y window, raise the locator so that it is 128 units above 0 0 0. Return to the x/z window and reduce the grid to 32x32. Along the top edge of your floor, create a new brush that is 256x32. Give it a thickness of 160. You now have a 128 unit tall wall that is flush against the floor of your room. Repeat the process along the other edges of the floor (make the brush 32x320x160 to ensure that it is flush against the north and south walls).

Return to the x/y window and raise the locator another 32 units. In the x/z window, create a new brush that encompasses the outer edges of the walls (it should be 320x320 units). Give it a thickness of 32. You now have a roof that sits snugly on top of your walls.

To build this room without the locator, you would have to create your brushes along the default axes and then drag them into place. In a large level, it quickly becomes a time-consuming process.

Note that the locator also defines the center of rotation used whenever you rotate brushes.

Build brushes in all three perspective windows

Don’t just build brushes from the top down view. If you want a sloped ceiling, use either the x/y window or the z/y window and create the exact slope you want in one simple step. Use the locator so that it aligns with the edge of the room.

Start simple and save detail until last

You can save yourself lots of headaches by constructing your world in simple pieces. Start with floors and stairways, making sure you have plenty of room for walls and other architecture. You may even want to consider building the entire floorplan of the level before you build a single wall. That way you can run around in it and get a feel for the layout without having to commit a lot of time and energy to details you may end up chopping out anyway.

Note that you’ll need to enter "forceclear 1" at the console in an unenclosed level in order to get rid of the hall-of-mirrors (HOM) effect.

Build up your rooms as boxes, making sure the areas are big enough (it’s easy to make an area smaller, but expanding a tight corridor can be a pain in the ass in a complicated level). Once you’ve got a nice boxy layout, seal it up by tracking down any leaks and do a Full Optimization on it..

Check your poly counts at this point, as any performance issues you notice at this early stage will only get worse as you start to add detail.

Once you’re comfortable with the layout, you can go into your individual rooms and start adding the sloped ceilings, light fixtures, pipes, and whatever else you’re planning. You’ll probably find that you’ve got tons of ideas after having run around in the boxy shell for a while.

Group brushes as you go

You may find it helpful to group individual areas so that you can hide them easily (right click on a node in the Node View and select Hide). I tend to group an area’s floors separately from its walls and ceilings.

It’s particularly advisable to group light fixtures, railings, and other detail brushes and name the nodes accordingly. For one thing, these brushes will be excellent candidates for a detail setting of 1, which will dramatically speed up optimization time. For another, detail brushes tend to be distracting when you’re working on a large level. Hiding as much as possible makes it easier to see what you’re working on and reduces the likelihood that you will inadvertently mess something up.

Take advantage of the tools

DEdit lets you create brushes of all shapes and sizes with a few simple clicks. While you should be careful of concave brushes, you should exploit the editor’s flexibility to save yourself time. If you’re not using all three perspective windows frequently, you’re probably not working as efficiently as possible.

If you want to create an archway, line up the locator so that the brushes you create will fall where you want them, then create the archway out of small, angled convex brushes. You can even create the entire archway out of one concave brush and use it as a template for the individual convex brushes. Just be sure to delete the concave brush afterward (use Find Concave Brushes in the World pulldown menu to select any concave brushes you’ve created).

Likewise, you can save time by building half the archway. Select the brushes, copy and paste them, and rotate them to complete the archway.

Aesthetic tips

There are some simple tried and true tricks you can do to improve the look of a level:

Lighting a level

How you light a level should depend entirely on the game you’re creating, but there are some general guidelines you can rely upon regardless of the look you’re striving for.

Start with general lighting

Start by lighting your level for mood and visibility. Your goal with first pass lighting should be to create even lighting with a distinct tone. Consider all of this lighting to be natural or ambient. It is the light you would find in an area without any artificial light sources.

Once you’ve established the overall mood, you can worry about detail lighting.

Avoid big lights

Big lights often create harsh, unattractive shadows, so they should be used very deliberately. In general, you will get smoother, more even results with a grid of smaller lights.

Notes about color

In general, a colored light looks most natural and satisfying if it is predominately gray with just a touch of color. For example, instead of placing a blue light that is 0 0 200, you’ll get better results with one that is 100 150 200 or 50 100 150. You might even prefer 100 120 140 for subtler hues.

Experiment with your textures in a test level to see how they respond to different hues and variations.

Group general lights

Once you’ve placed general lighting in an area, group the lights and name the node something logical, preferably with "light" as the base (so that all your light groups are together in the node view). Grouping lights lets you tweak color or radius settings more easily.

Contrast is key

Detail lighting should be your chief tool for creating visual contrast in your levels. Lighting that is generated by artificial sources (such as light fixtures or street lamps) generally looks most convincing if it is white or off-white, especially if the general lighting has some color to it.

I tend to rely either on 255 255 255 (white), 200 240 255 (bluish-white), or 255 240 200 (yellowish-white) for most of my detail lighting.

General

Get in the habit of hitting U all the time

Trust me. You’ll save yourself lots of pain if you hit "U" frequently to deselect any selected objects. In Geometry Mode, you should train yourself to hit U after every operation if you’re working with different vertices.

Save often

Don’t learn this lesson the hard way. Ctrl-S is your friend.

Use the pointer

 

Use the node view

Relying on the node view to find grouped objects or individual objects can save you a lot of time, particularly once you start renaming nodes. Get accustomed to using it whenever appropriate.

Be consistent

Consistency is critical if other people might have to work on your levels (which, in most cases, they will). Come up with simple, easy-to-remember naming conventions and stick to them.

Use Advanced Select

The Advanced Select option in the Edit pulldown menu (Alt-A) can save you lots of time and effort, particularly once you’ve adopted consistent naming conventions. With Advanced Select, you can select an object or group of objects either by class (e.g. Light, DirLight, ObjectiveTrigger, etc.) or by name.

 

Gameplay

Music

There isn’t a music object. Dynamic music is changed using Trigger objects. To change the level of the music, send a message to the object that represents the client (PlayerObj). Here is a list messages that perform the operations:

Operation

Message

Description

Intensity level

music level <n>

Switches the music level to n. Where n is 0 (silence), 1 (ambient), 2 (cruising) or 3 (harddriving).

The intensity is separated into 4 different levels: silence, ambient, cruising and harddriving. Silence plays no music at all. The other levels have a playlist of sections that are looped while in that level. Switching from one level to the other will play a single transition section. The transitions sections are hardcoded into the game. The playlists are specified in the WorldProperties object.

Quick cinematic tutorial

Start with a trigger. Have it trigger tracking1 On and camera1 On.

tracking1 is a KeyFramer that points to camera1 as the ObjectName and use cama as the base key name.

Create a camera called camera1 at the same exact spot. Give it whatever active time you want. -1 means it stays on permanently.

Create a key named cama0 at the same spot.

Select all three objects by going into Object mode, holding down B, and dragging a box around them.

Change their rotation to point where you want.

Create another key called cama1 and place it where you want the camera to move. The TimeStamp determines how long it takes the camera to get to that point.

AI Scripting

In a trigger, the TargetName should be the name of the AI you want to script. The MessageName will be the script itself, which has to start with "Script" and end with a semi-colon.

Script parameters affect how the script is executed. Here are the flags:

0 No modifier. AI will follow script until finished or killed

1 Looping. AI repeats script until interrupted or killed.

2 Interruptable. AI will stop if damaged or killed.

4 Don't use

8 Opportunity fire. AI will attack any valid target while performing the script.

So if you wanted to script a guy to loop and be interruptable, you'd start the script with "Script 3;"

Script commands include:

Target [name]

AI targets the specified character. If the target is of an enemy alignment, the AI will attack.

SetMovement [RUN or WALK]

When moving, AI will either run or walk, depending on this command. Walking is the default.

FollowPath [pathname]

AI will follow the specified path to the best of its ability.

ChangeWeapon [weapon ID]

AI switches weapons.

SetAnimationState Loop

When this command precedes a PlayAnimation command, the AI will loop the animation until interrupted.

PlayAnimation [animation name]

AI plays specified animation.

Wait [time]

AI waits the specified amount of time.

SetState [AGGRESSIVE/DEFENSIVE/IDLE/PANICKED/PSYCHO/RETREATING]

AI changes to the specified state. This command effectively interrupts script.

So here's an example of a script:

Script 10;SetMovement RUN;FollowPath ab;Target Sanjuro;Wait 2;FollowPath ac;SetState PANICKED;

The AI would run along path ab (using AIKeys named ab0, ab1, etc.), target and attack the player for about 2 seconds, then start following path ac, at which point it would panic.

Troubleshooting

My level is completely black when I run it in the engine!

Make sure to add a WorldProperties object. What’s happening is that the game is setting the default global LightScale to 0 0 0 instead of 1 1 1 because of a nifty feature we never got around to using.

I think my level has a leak but I’m not sure.

Refer to the OutsideDef object for an explanation of how to track down leaks in your levels.

I can’t step up onto a lift. What’s up with that?

Turn off BoxPhysics on the door/lift object.

I can’t get through a rotating door!

Turn off BoxPhysics on the door/lift object.

How do I make cloud shadows move across the ground.

See SkyPan and SkyPanning in the properties list for details.