pebble_airdrops · v1.0.0

Integrations

pebble_looting

pebble_looting is optional. With it running, each drop type's loot becomes a pebble_looting template, so staff edit what crates hold in /lootadmin with its roll simulator and item picker.

  • Each drop type has a Loot template id in the admin panel. The first drop type uses ServerConfig.Loot.template (airdrop_crate by default).
  • If the template doesn't exist yet, it's created from that drop type's loot. Existing templates are never overwritten, so from then on /lootadmin is where you edit the loot and the pools in /airdropadmin only seed it.
  • Start order doesn't matter much: when pebble_looting starts after pebble_airdrops, the templates are registered as soon as it's ready.
  • Without pebble_looting, or with no template id set, the drop type's own rolls, guaranteed rarities and pools are rolled as written.
ensure pebble_bridge
ensure pebble_looting
ensure pebble_airdrops

Inventories

The crate opens as a shared temporary stash that everyone at the crate sees, through pebble_bridge for each supported inventory. The stash lasts as long as the crate.

ps-inventory and codem-inventory (v1) have no server API to fill a stash, so on those the crate opens in pebble_airdrops' own loot window. To use that window with any inventory:

setr pebble_bridge:lootWindow "true"

Police dispatch

With the police alert on (ServerConfig.PoliceAlert.enabled, or Settings in the admin panel), starting a hack sends an alert through your dispatch resource. pebble_bridge detects ps-dispatch, cd_dispatch, qs-dispatch, rcore_dispatch, core_dispatch, lb-tablet, tk_dispatch, origen_police, codem-dispatch and aty_dispatch. Without any of them, on-duty players with a job in jobs get a notification and a blip.

A drop type with policeAlert = false never sends the alert. minPolice on the schedule and on each drop type counts on-duty players with one of those jobs.

Discord

Two separate webhooks:

Webhook Set with Posts
Public drop embeds the convar pebble_airdrops:discordWebhook, or ServerConfig.DiscordWebhook An embed per drop event you turn on: started, landed, hacked, opened, ended (started, hacked and opened out of the box). Optional ping: @here, @everyone or a role.
Admin audit log ServerConfig.Webhook Every staff action from the audit log, with before and after values.

Keep the public webhook URL out of the resource files with the convar. Use set, not setr, so clients never see it:

set pebble_airdrops:discordWebhook "https://discord.com/api/webhooks/..."

Which events post, and the ping, are under Settings → Discord in the admin panel (defaults in ServerConfig.Discord).