Skip to content

Tents & doors ​

Two tents ship, both 6.0 × 7.0 m inside (8.6 × 7.2 m with the guy lines):

/feld part Model Door
zelt np_med_tent (fallback prop_gazebo_03) Open, a 2.0 × 2.2 m walkable doorway
zelt_tuer np_med_tent_door A lockable double door of two np_med_tent_door_leaf props

Each player may have up to 2 of each standing (max). Tents stream from 200 m, the "Abbauen" range is 5 m and the placement preview allows at most 10° of slope.

Open tent Open tent at night
Inside the tent Door tent, closed

What a tent owns ​

A part with tent = true is a tent. Its model's shape in Config.Field.tents gives the sign (where the label is drawn), the interior (a box in the tent's frame) and, for the door tent, the leaves (Configuration).

  • A part placed inside a tent's interior belongs to that tent (parent = tentId).
  • Packing the tent ("Abbauen") also packs every part inside it, the door leaves and the door. Packing a single part inside leaves the tent standing.
  • A tent placed with a fallback model that has no shape entry (prop_gazebo_03) has no label, no door and no interior.

Any player with medic.deploy can pack a part, not only the one who placed it.

Doors ​

The door tent's two leaves are separate props with their origin on the hinge axis. The server works out their hinge poses from the tent pose and registers them unfrozen next to the tent. The door then goes through one of two backends:

With np_doors running, the server calls createDoor with a double door in the building np_medic_field (id npmf_<boot>_<n>) and one access rule:

lua
access = { { kind = 'job', subject = <faction job>, grade = <minGrade>, onduty = true } }

Keys, lockdown and the np_doors manager then work as for every np_doors door. np_doors stores doors in its database, so tent doors left over from an earlier run (building np_medic_field, id npmf_*) are removed when np_doors attaches.

Without np_doors, it falls back to np_prophandler registerDoor { jobs = { [job] = minGrade }, interact = true }.

The faction job is the placer's: np_faction's job for their active np_jobs faction, otherwise their framework job. A tent placed with /feld zelt_tuer starts with Config.Templates.door (locked, from grade 0). A tent deployed from a template uses the template's door settings.

The door leaf: aluminium frame, vinyl panels, a window and handles on both faces

Not verified in game

The leaves are streamed .ydr props with a dynamic archetype and box collision. Whether GTA's door system swings them is not known yet; it may need the leaf to be a fragment (.yft). If the door system ignores them, the fallback is a scripted swing through np_prophandler.

Cleanup ​

  • When np_medic_field stops, every part, leaf and door is removed.
  • A player's parts disappear when they disconnect (clearOnDrop) and when they lose medic.deploy, for example at the end of their duty (clearOnDutyOff, checked every dutyCheckS seconds).
  • When np_prophandler restarts, the parts register again on np_prophandler:ready.
  • Restarting np_medic does not remove anything.