SONS OF THE FRONT 1944
Field manual / Entity index
Game modes

Destructible objectives

Connect a carryable objective item to a passage or a scored prop. The map specifies exactly which surfaces disappear, which remain solid and when the HUD changes.

Place a walk-over objective item

Place an object point entity and give it an object_group. For the Sons canvas satchel, set prop to field_satchel and leave model empty. To supply your own artwork, set model to the path of your .mdl file. Set object_owner to 0 to let either side take the item at home, or 2 for an Allied pickup. A living player can carry one item. A carrier who dies drops it. Set object_resettime for the return of a dropped item. To replenish a successfully delivered item at its home, set object_respawn_seconds to a positive delay. A missing or zero value keeps it spent until the round resets.

"classname" "object"
"prop" "field_satchel"
"origin" "0 64 24"
"object_group" "demolition"
"object_owner" "0"
"object_name" "Field satchel"
"object_resettime" "60"

Open a passage and show the rubble

Cut a player-sized doorway into the permanent wall. Fill the opening with brushes belonging to one func_breakable. For a visible crack, leave a narrow gap between those brushes. Give capobj_group the pickup’s object_group. Set sotf_place_seconds to 1 for one second of continuous contact, or leave it at 0 for immediate placement. After tntdelay seconds, the panel loses its renderers and collision and fires its target. A target can reveal a rubble brush or play a sound. Leave walking clearance through the opening.

Intact barrier brush
"classname" "func_breakable"
"capobj_group" "demolition"
"spawnflags" "1"
"sotf_place_seconds" "1"
"tntdelay" "5"
"target" "gate_rubble"

Rubble brush
"classname" "func_wall_toggle"
"targetname" "gate_rubble"
"spawnflags" "1"

Make a destroyed prop count as an objective

For an objective such as a stationary 88 mm gun, place a capture_point named depot_obj and give it point_default_owner 2 and a readable point_name such as Field gun. Tie an accessible brush around the prop to capture_area. Set target to depot_obj, area_object_group to demolition, area_axis_cancap to 0 and area_allies_endcap to depot_finish. Use the timeline and receivers below. The point_relay awards the objective when the scenery changes five seconds later. Give each required gun its own point, HUD index and event names.

Timeline point
{ "classname" "multi_manager" "targetname" "depot_finish" "depot_intact" "5" "depot_ruin" "5" "depot_credit" "5" }

Intact brush
{ "classname" "func_breakable" "targetname" "depot_intact" "spawnflags" "1" }

Ruin brush
{ "classname" "func_wall_toggle" "targetname" "depot_ruin" "spawnflags" "1" }

Score receiver
{ "classname" "point_relay" "targetname" "depot_credit" "target" "depot_obj" "team" "1" }

Swap decorative models

For two model silhouettes, place two named env_model entities at the same origin and supply your intact and ruined .mdl files. Start the ruined model with rendermode 1 and renderamt 0. Target the intact model with an env_render using those same values to hide it. Target the ruined model with another env_render using rendermode 0 and renderamt 255 to show it. Schedule both receivers from the objective timeline. Keep the solid passage on its own breakable or toggle brush. A render-only change to an ordinary brush can leave invisible collision.

Check the countdown

A positive tntdelay on a breakable produces a two-sided warning. A scored delivery can also derive the countdown from a delayed func_breakable or env_explosion in its output chain. Place the delivery brush where a character can reach it. Test the pickup, both sides of the countdown, the next walkable opening and the HUD score independently.

Check your map