- Updated README.md files for extension, garage, locker, main, organization, phone, store, and task addons to provide clearer overviews, dependencies, main components, and usage notes. - Improved task module documentation to clarify timer semantics and server task flows, ensuring accurate usage of time limits. - Adjusted default values for task time limits and IED timers to enforce positive countdown requirements. - Added new CAD addon for dispatch coordination, including its overview, dependencies, main components, and event handling.
32 lines
1.2 KiB
Markdown
32 lines
1.2 KiB
Markdown
# Forge Server Economy
|
|
|
|
## Overview
|
|
The economy addon contains server-side systems for world economic interactions
|
|
that are still implemented in SQF.
|
|
|
|
Current stores cover fuel tracking, medical service behavior, and a placeholder
|
|
service economy store.
|
|
|
|
## Dependencies
|
|
- `forge_server_main`
|
|
- `forge_server_common` at runtime for logging, formatting, and player lookup
|
|
- `forge_server_bank` at runtime for medical service charges
|
|
- `forge_client_actor` and `forge_client_notifications` for response RPCs
|
|
|
|
## Main Components
|
|
- `fnc_initFEconomyStore.sqf` tracks active refueling sessions and reports fuel
|
|
totals.
|
|
- `fnc_initMEconomyStore.sqf` manages medical spawn occupancy, healing charges,
|
|
respawn placement, death inventory handling, and body-bag transfer.
|
|
- `fnc_initSEconomyStore.sqf` initializes the service economy placeholder.
|
|
|
|
## Event Surface
|
|
The addon registers CBA server events for fuel start/tick/stop, player killed,
|
|
player respawn, and healing. Medical store initialization runs after post-init
|
|
to discover configured medical spawn objects.
|
|
|
|
## Notes
|
|
The service economy store is currently a stub. Fuel and medical behavior should
|
|
stay server-authoritative because they mutate money, inventory, and respawn
|
|
state.
|