SONS OF THE FRONT 1944
Field manual / Entity index
World objects

Buttons and field effects

Connect a visible prop, a usable brush and a named receiver to make an interactive map event.

Place the Sons field mortar

Place a sotf_prop point on the floor and choose field_mortar in its prop field. Set angle to orient the built-in artwork. The game supplies the mesh and material. For a custom model you supply, use env_model instead.

{ "classname" "sotf_prop" "prop" "field_mortar" "origin" "64 128 1" "angle" "270" }

Connect the interaction

Draw a reachable func_button brush next to the prop. Set its target to the name of a func_mortar_field brush over the terrain where the impact effect should appear. The host samples a location in the field and finds the scene floor beneath it. A positive wait lets the button reset. Test Use from a player standing beside the prop.

Use brush
{ "classname" "func_button" "target" "field_effect" "spawnflags" "1" "wait" "4" }

Effect area brush
{ "classname" "func_mortar_field" "targetname" "field_effect" "m_iCount" "1" }

Supply map-wide impact effects

In the worldspawn properties, supply two sprite paths for the field's flash and smoke and a WAV path for its impact sound. These apply to every field in the map. Paths start at the server's custom content root. Include your files in the corresponding sprites and sound folders. Leaving a property empty uses the loader's default for that effect.

"sotf_field_flash" "sprites/field/flash.spr"
"sotf_field_smoke" "sprites/field/dust.spr"
"sotf_field_sound" "sound/field/impact.wav"

Time multiple outputs

Give a multi_manager a targetname and use recipient targetnames as its custom keys. Each value is the delay in seconds from activation. A button can target the timeline to play a local sound, then activate an effect. A trigger_relay can forward a single named target after delay.

"classname" "multi_manager"
"targetname" "field_sequence"
"field_sound" "0"
"field_effect" "0.3"

Attach sound, text or particles

ambient_generic uses message for its sound path under sound/. env_sprite and env_glow use model for a sprite path. A particle_shooter can use a .spr sprite for a smoke effect. game_text accepts the HUD message directly, while env_message looks up a message in the supplied title data. Name each receiver and give its sender the matching target. These effects can share an objective timeline.

Check your map