Menu ▾ ▴

Commit [r1682]  Maximize  Restore  History

IFA3: countdowns follow SEOW switches and JIP; heal holds and stance; supply/heal tunables moved to SEDCS settings; SEOW alias names in hints

Countdowns and switching (seow_classes.sqf, switchrole.sqf, seow_eventlog.sqf, SEOW_forcedReassembly.sqf)
- Job countdown (yellow dial and text) now ends at once when the player SEOW-switches away, and comes back when he
switches back, switches into the group, or joins later (JIP). Job start/end/label are public on the soldier
(SEOW_jobFrom/SEOW_jobUntil on the shared clock, SEOW_fnc_syncTime); SEOW_fnc_jobResume runs on switch and JIP.
- Weapon assembly/disassembly lock follows the player the same way (public SEOW_asmFrom/Until/Text; the end is sent
to every machine; map block only while the player is the caller).
- A worker whose player switches away mid-job is held and pinned at the work (disableAI "PATH"), released at the
job's end. SEOW_holdUnit takes an optional pin; SEOW_fnc_pinUnit added.
- A player's disconnect clears his jobs' countdowns and unpins units he pinned.
- SEOW_playJobMoves never waits on a move much past its measured length: the bare "medic" move (a way into Arma's
medic loop) kept a job animating up to 40 s after its countdown.

Healing (SEOW_supplyDrops.sqf)
- AI patient held and pinned for the heal (doStop alone let him walk back into formation).
- Patient crouches (or lies down) while healed: setUnitPos plus a one-off PlayerCrouch/PlayerProne; his own stance
is restored at the end. RPT logs the patient's stance 3 s in, and an aborted heal's reason.
- First aid kit removal remoteExec'd when the healer is not local.

Tunables moved to SEDCS (modIFA3Settings.vb, clsIFA3.vb, SEOW_supplyUse.sqf, SEOW_supplyDrops.sqf)
- New settings written into init.sqf, clamped: IFA_SEOW_HEAL_* (range, medic/aid base and skill, spread, seconds
and litres per point, min seconds, fail chance/skill/harm/skill loss/max damage, patient stance),
IFA_SEOW_AMBULANCE_RANGE, IFA_SEOW_BUILD_SUPPLY_COST (table) and _DEFAULT, IFA_SEOW_DEMOLISH_/ASSEMBLY_SUPPLY_COST,
IFA_SEOW_HEAVY_SHOT_ROUNDS, IFA_SEOW_PICKUP_MAGS/_LAUNCHER_ROUNDS, IFA_SEOW_DROP_USE/VEHICLE/GROUP_RANGE,
IFA_SEOW_FREIGHT_USE_RANGE, IFA_SEOW_DROP_RATE_MAN/_VEHICLE, IFA_SEOW_DROP_MIN_SECONDS.
- The sqf values are now isNil fallbacks for missions built before this.

Names in hints (SEOW_supplyDrops.sqf, seow_tool_destroy_weapon.sqf)
- SEOW_fnc_vehName takes the alias from the bracket pair matching the last ")" (a group name with "(mot)" garbled it).
- A vehicle's or gun's alias is kept on it (SEOW_title; recorded by the server at the start), so it survives its
crew. With no alias, a plain kind ("tank", "mortar", "gun"...) is shown, never IFA3's type name.
- Destroy Weapon hints use the alias; its work move is now medic5 (8 s), ending with its 10 s countdown.
- Logs read by the SEDCS Analyzer are unchanged.

Tested SP-hosted on Skink (Kastaneri 1700/1800): countdown switch/resume for heal, tent and assembly; group-member
countdown; heal hold and pin; patient stance; aliases in supply, repair and destroy hints; destroy animation timing.
Not yet tested: MP (another player switching in), JIP.

fourshades 2026-11-22

changed /SEDCS8-N8/SEDCS82/clsIFA3.vb
changed /SEDCS8-N8/SEDCS82/modIFA3Settings.vb
changed /SEDCS8-N8/SEDCS82/sqf3/seow_classes.sqf
changed /SEDCS8-N8/SEDCS82/sqf3/seow_eventlog.sqf
changed /SEDCS8-N8/SEDCS82/sqf3/seow_tool_destroy_weapon.sqf
changed /SEDCS8-N8/SEDCS82/sqf3/seowswitch/switchrole.sqf
changed /SEDCS8-N8/SEDCS82/sqf3/seowxeh/SEOW_forcedReassembly.sqf
changed /SEDCS8-N8/SEDCS82/sqf3/seowxeh/SEOW_supplyDrops.sqf
changed /SEDCS8-N8/SEDCS82/sqf3/seowxeh/SEOW_supplyUse.sqf
/SEDCS8-N8/SEDCS82/clsIFA3.vb Diff Switch to side-by-side view
Loading...
/SEDCS8-N8/SEDCS82/modIFA3Settings.vb Diff Switch to side-by-side view
Loading...
/SEDCS8-N8/SEDCS82/sqf3/seow_classes.sqf Diff Switch to side-by-side view
Loading...
/SEDCS8-N8/SEDCS82/sqf3/seow_eventlog.sqf Diff Switch to side-by-side view
Loading...
/SEDCS8-N8/SEDCS82/sqf3/seow_tool_destroy_weapon.sqf Diff Switch to side-by-side view
Loading...
/SEDCS8-N8/SEDCS82/sqf3/seowswitch/switchrole.sqf Diff Switch to side-by-side view
Loading...
/SEDCS8-N8/SEDCS82/sqf3/seowxeh/SEOW_forcedReassembly.sqf Diff Switch to side-by-side view
Loading...
/SEDCS8-N8/SEDCS82/sqf3/seowxeh/SEOW_supplyDrops.sqf Diff Switch to side-by-side view
Loading...
/SEDCS8-N8/SEDCS82/sqf3/seowxeh/SEOW_supplyUse.sqf Diff Switch to side-by-side view
Loading...