⚙ Swift Mazes - Entities

 Select entry:

Introduction

⚙ Swift Mazes is a framework to generate 3D dungeons from textual (UTF-8 or ASCII encoded) floorplans. It reads a config file, some prefabs, and then generates a fully working 3D dungeon map for The Dark Mod, dmaps it (via TDM), and packages it together as a playable .PK4 file - all automatic!

This manual section describes the various pre-defined entities that can be used.

swift:base

Base entity class, should not be used directly. swift:base has no scriptobject.

SpawnargTypeValueDescription
nodraw1No description available.
solid0No description available.
noclipmodel1No description available.
spawnclassidSpawnableEntityNo description available.

swift:sequence

A counting sequence and generic state-machine object. swift:sequence inherits properties from swift:base and uses the scriptobject swift_sequence.

SpawnargTypeValueDescription
inactivebool0If true, the sequence must be activated before it will work.
oncebool0If true, the sequence will work only once.
reset_on_errorbool1If true, the sequence will reset itself on receiving wrong signals.
snd_endsounds/mechanical/sequence_endNo description available.
snd_resetsounds/mechanical/sequence_resetNo description available.
snd_changesounds/mechanical/sequence_tickNo description available.
states-1No description available.
switch_delayfloat0If > 0, so many seconds after each state change the sequence will ignore signals, thus pausing.

swift:counting_sequence

Counting sequence, advances everytime it is toggled. Set number of tocks with states and the delay with switch_delay. swift:counting_sequence inherits properties from swift:sequence and has no scriptobject.

SpawnargTypeValueDescription
states3No description available.
switch_delayfloat1If > 0, so many seconds after each state change the sequence will ignore signals, thus pausing.

swift:relocator

Relocates the player at mission start to one of the random spawnpoints, then removes itself. swift:relocator inherits properties from swift:base and uses the scriptobject swift_relocator.

SpawnargTypeValueDescription

swift:brain

Checks periodically if a new event has to be triggered. Shows HUD messages, triggers effects etc. swift:brain inherits properties from swift:base and uses the scriptobject swift_brain.

SpawnargTypeValueDescription
swift_typebrainNo description available.

swift:gui_message

Defines a showMessage(message, delay) script object to be used to show GUI messages. swift:gui_message inherits properties from swift:base and uses the scriptobject swift_message.

SpawnargTypeValueDescription
guiguis/swift_message.guiNo description available.

swift:light_lantern_moving

Moving lantern light for player. swift:light_lantern_moving inherits properties from light_lantern_moving and has no scriptobject.

SpawnargTypeValueDescription
falloff1No description available.
texturelights/swift_lanternlightNo description available.
light_radius190 190 150No description available.

swift:moveable_pipe_medium

Round pipe of medium size swift:moveable_pipe_medium inherits properties from atdm:moveable_base and has no scriptobject.

SpawnargTypeValueDescription
mass7No description available.
clipmodelmodels/swift/moveables/bar_round_medium_clip.aseNo description available.
is_mantleable1No description available.
frobable1No description available.
spawnclassidBarrelNo description available.
modelmodels/swift/moveables/bar_round_medium.aseNo description available.
snd_bouncetdm_impact_iron_barNo description available.
snd_bounce_dirttdm_impact_dirtNo description available.
friction0.5No description available.
bouncyness0.10No description available.

swift:mover_pullchain

A pullchain, to operate things. Triggers when the chain raises again. swift:mover_pullchain inherits properties from atdm:mover_button and uses the scriptobject swift_button.

SpawnargTypeValueDescription
modelmodels/swift/mechanical/operatable/pullchain.aseNo description available.
frob_action_scriptswift_frobNo description available.
frob_distance70No description available.
frobbox_min-25 -25 -80No description available.
frobbox_max25 25 50No description available.
mins-25 -25 -80No description available.
maxs25 25 50No description available.
translate_speed0No description available.
move_speed0No description available.
move_time0.2No description available.
accel_time_close0.05No description available.
accel_time_open0.07No description available.
speed_factor_close2No description available.
auto_close_time0.2No description available.
auto_open_time0No description available.
skinheavy_rust_pocked01No description available.
snd_closesounds/swift/mechanical/doors/gate_landNo description available.
snd_lockedsounds/swift/mechanical/doors/gate_lockedNo description available.
snd_opensounds/swift/mechanical/doors/gate_openNo description available.
swift_trigger_on_close1No description available.
swift_trigger_on_open0No description available.
trigger_on_open0No description available.
trigger_on_close0No description available.
state_change_callbackswift_state_change_buttonNo description available.
rotate0 0 0No description available.
translate0 0 -8No description available.
lod_normal_distance200No description available.
lod_1_distance225No description available.
noshadows_lod_10No description available.
lod_2_distance625No description available.
noshadows_lod_20No description available.
lod_3_distance625No description available.
noshadows_lod_31No description available.
hide_distance1500No description available.

swift:mover_sliding_base

Base class, only for inheritance. swift:mover_sliding_base inherits properties from atdm:mover_door_sliding and uses the scriptobject swift_door.

SpawnargTypeValueDescription
rotate0 0 0No description available.
frobable0No description available.
noimpact1No description available.
locked0No description available.
push_player1No description available.
interruptable1No description available.
swift_trigger_on_closeint-1If 0, no events are triggered during Close(). If 1, events are triggered when the Close() begins, and with -1 when the Close() finished.
swift_trigger_on_openint-1If 0, no events are triggered during Open(). If 1, events are triggered when the Open() begins, and with -1 when the Open() finished.
auto_close_time0No description available.
auto_open_time0No description available.
translate_speed0No description available.
move_speed0No description available.
trigger_on_open0No description available.
trigger_on_close0No description available.
open0No description available.
oncebool0If 1, the mover works only once, then stops.
state_change_callbackswift_state_change_doorNo description available.

swift:mover_portcullis

A metal-grated portcullis, falling down fast and raising slow. swift:mover_portcullis inherits properties from swift:mover_sliding_base and has no scriptobject.

SpawnargTypeValueDescription
modelmodels/swift/metalworks/grates/portcullis_rect_15_bars.aseNo description available.
move_time2No description available.
speed_factor_close5No description available.
accel_time_open0.6No description available.
snd_closesndsounds/swift/mechanical/doors/gate_landThe sound emitted when it starts closing.
snd_closedsndsounds/swift/mechanical/doors/gate_landThe sound emitted when it is closed fully.
snd_lockedsndsounds/swift/mechanical/doors/gate_lockedThe sound emitted when the mover is locked and tried to be operated.
snd_opensndsounds/swift/mechanical/doors/gate_openThe sound emitted when it starts opening.
loss_open0No description available.
loss_closed2No description available.
translate0 0 134No description available.

swift:playertools_lantern

swift:playertools_lantern inherits properties from atdm:playertools_lantern and has no scriptobject.

SpawnargTypeValueDescription
def_lantern_lightswift:light_lantern_movingNo description available.

swift:pressure_plate

A pressure plate. Needs a swift:trigger bound to it to activate it. swift:pressure_plate inherits properties from atdm:mover_button and uses the scriptobject swift_door.

SpawnargTypeValueDescription
swift_typepressureplateNo description available.
auto_close_time-1No description available.
auto_open_time-1No description available.
frobable0No description available.
noImpact1No description available.
notPushable1No description available.
snd_closefrob_frobber_buttonNo description available.
translate0 0 -2No description available.
swift_trigger_actionopenNo description available.
swift_wait_for_idle0.21No description available.
swift_delay_close0No description available.
swift_delay_open0.1No description available.

swift:teleporter

A teleporter. swift:teleporter inherits properties from trigger_touch and uses the scriptobject swift_teleporter.

SpawnargTypeValueDescription
swift_typeteleporterNo description available.
callswift_teleportNo description available.
pass_self1No description available.
pass_activator1No description available.
start_on1No description available.
snd_activatesndsounds/swift/teleport_activateThe sound when the teleporter is turned on.
snd_deactivatesndsounds/swift/teleport_deactivateThe sound when the teleporter is shut down.
snd_actionsndsounds/swift/teleportThe sound when the teleporter teleports something.
snd_broken-No description available.
wait0.18No description available.

swift:trigger

A trigger, reacting to any entity. Add a swift_target spawnarg for each entity you want to get triggered when something touches the trigger. swift:trigger inherits properties from trigger_touch and uses the scriptobject swift_trigger.

SpawnargTypeValueDescription
swift_typetriggerNo description available.
start_on1No description available.
callswift_test_triggerNo description available.
wait0.15No description available.

More info

The following manual sections contain more information: