Guide
Game weapon death drop and pickup systems explained
Harbor Rift, a 5v5 tactical shooter, let players pick up any rifle left on the ground after a kill. The client spawned drop models locally, inherited ammo from a cached snapshot, and never reconciled with the server when two survivors sprinted toward the same AK. One player received a full magazine; the other picked up an invisible duplicate wedged inside the bombsite wall. Support tickets tagged “stolen gun” or “empty pickup” on 49% of rounds with a primary weapon death — even when the kill feed showed a clean trade.
Engineers replaced client-side spawns with a server-authoritative drop entity FSM: one ground entity per eligible weapon, deterministic spawn offsets, inherited magazine and reserve fractions with caps, and atomic pickup resolution. Loot-related dispute reports fell from 49% to 9% while eco-round weapon upgrades (picking up a dropped rifle instead of rebuying) rose 22% — proof the feature worked once it was trustworthy. This guide covers what drops on death, spawn and pickup rules, ammo inheritance, economy coupling, despawn policy, the Harbor Rift refactor, a decision table, pitfalls, and a production checklist.
What drops when a player dies
A weapon death drop is a ground entity representing a firearm (or equipment item) that becomes available to other players after the owner dies. Unlike looter-shooter world loot, tactical drops are usually tied to the victim's current loadout at death time — not a random table roll.
Typical drop categories
- Primary weapon — rifle, SMG, shotgun, sniper; highest economy value.
- Secondary weapon — pistol or sidearm if distinct from primary slot.
- Throwable or utility — grenades, smokes, flashes; often dropped as a bundle or not at all.
- Equipment — defuse kit, armor (if your design allows armor drops), per objective equipment rules.
Most competitive shooters drop only the primary (and sometimes secondary) to keep clutter low. Utility drops are optional: CS-style titles often destroy unused grenades on death to prevent post-trade nade spam. Document the policy per mode in your buy-phase economy spec so designers do not contradict live behavior.
Drop entity FSM (server authority)
Run every drop on the game server. Clients render proxies and play pickup feedback; they never create or destroy drop entities. A practical finite-state machine:
- PENDING — death event received; server decides which items are eligible to drop.
- SPAWNED — drop entity created at validated world position with inherited state snapshot.
- AVAILABLE — any eligible player may begin pickup interaction.
- CLAIMED — pickup in progress (hold-to-pickup) or instant resolve for tap pickup.
- RESOLVED — weapon transferred to picker inventory; entity despawned.
- EXPIRED — despawn timer fired or round ended; entity removed without transfer.
Only one player can be in CLAIMED for a given drop ID at a time. If the picker dies mid-channel, release CLAIMED back to AVAILABLE or EXPIRED depending on your round rules.
Spawn position validation
Harbor Rift's wall duplicates came from raycasts that hit interior geometry. Production spawn rules:
- Cast from victim torso position along a shallow cone (not straight down through floors).
- Reject positions inside solid collision; nudge up to three alternate offsets.
- Clamp to navmesh or playable volume; never spawn in unreachable pits.
- Merge drops within 40 cm of each other into a single bundle entity when both primary and secondary drop.
Pickup interaction and eligibility
Pickup UX must be readable under combat stress. Common patterns:
- Tap pickup (use key) — instant when in range and facing drop; best for PC tactical shooters.
- Hold channel — 0.3–0.5 s channel; reduces accidental pickups while strafing.
- Auto-pickup on walk-over — arcade modes only; too error-prone for ranked.
Eligibility gates
Before entering CLAIMED, verify on server:
- Range and LOS — picker within 1.5–2.0 m and line-of-sight to drop anchor (optional wall leniency).
- Alive and not planting/defusing — block pickup during objective channels unless design allows.
- Slot availability — primary pickup requires empty primary slot or explicit swap policy (see below).
- Team policy — enemy-only, teammate-only, or anyone; default competitive is anyone alive on any team.
- Economy lock — some modes forbid picking up weapons above a credit tier on eco rounds.
Show a world-space prompt with weapon name, ammo fraction, and price tier so players know whether the pickup beats rebuying from the buy menu.
Ammo inheritance and swap behavior
The most disputed part of death drops is ammo state. Picking up a rifle should inherit the victim's magazine and reserve at death — not grant a full buy-menu magazine. Harbor Rift's bug refreshed ammo to max on client confirm, which felt like exploitation when the kill feed showed the victim on their last five rounds.
Inheritance snapshot at death
- Magazine rounds — exact count in chamber + mag at death tick.
- Reserve pool — spare ammo for that weapon class, if your ammo system uses reserves.
- Attachments or skin ID — cosmetic only; do not change stats unless your design says so.
Pickup swap rules
When the picker already holds a primary:
- Swap and drop current — picker's old weapon spawns as a new drop at picker feet with its ammo snapshot (CS-style).
- Reject if occupied — must holster or drop manually first; simpler but slower UX.
- Destroy old weapon — harsh; use only in round-based modes where carryover is forbidden.
Swap-and-drop must be atomic on the server: create new drop for old weapon, transfer picked weapon, despawn ground entity — all in one transaction to prevent dupes. Coordinate timing with weapon swap holster animations so clients do not show two primaries.
Economy coupling
Death drops are a macro-economy relief valve. A team that wins a gun fight can upgrade without spending credits — which snowballs if unchecked. Balance levers:
- Weapon value tiers — show shop price on pickup prompt; designers tune round income knowing free upgrades exist.
- Pickup credit grant — optional: +$300 for picking up enemy rifle; rewards map control without full rebuy cost.
- Eco-round pickup caps — on eco, only pistols and SMGs pickup-able; rifles despawn on death.
- Loss-bonus interaction — document whether saved weapons carry to next round or reset on round end.
Log pickup events with weapon_id, victim_id, picker_id, and inherited ammo for economy telemetry and kill feed dispute review.
Despawn, cleanup, and round boundaries
Uncollected drops clutter the map and leak information (a rifle visible through smoke tells defenders where a fight happened). Policies:
- Per-drop TTL — despawn after 30–60 s if unclaimed; tune per mode.
- Round-end wipe — destroy all ground entities on ROUND_END before buy phase.
- Max concurrent drops — cap at 10–15 entities; despawn oldest low-tier drops first.
- Spectator visibility — optional fade for dead players so ghosts cannot scout ground loot.
On round reset, never carry ground entities into the next round unless your mode explicitly supports persistent world state (rare in tactical shooters).
Replication and anti-cheat
Replicate drop entities with stable entity_id, weapon_def_id, ammo snapshot, and state enum. Clients interpolate drop model position only for visuals; interaction always queries server state. Reject client requests that reference unknown or EXPIRED drop IDs. Rate-limit pickup RPCs per player to block spam probing. Log dup attempts when two pickers resolve the same drop_id in the same tick — should be impossible if CLAIMED is exclusive.
Harbor Rift refactor (case study)
Before: client spawned drop prefab on kill notification; ammo reset to max on pickup confirm; no merge for nearby drops; duplicates inside geometry. Loot dispute rate: 49% of gun-death rounds.
After: server drop FSM with validated spawn offsets, death-time ammo snapshot, atomic swap-and-drop, 45 s TTL, round-end wipe:
- One entity_id per dropped item; CLAIMED mutex on pickup.
- Pickup prompt shows mag/reserve fraction and shop tier.
- Eco mode caps rifle pickups; pistols always available.
- Kill feed line appended “rifle dropped” for observer clarity.
Loot disputes: 49% → 9%. Eco-round weapon upgrades via pickup: +22%. Round length unchanged.
Decision table: drop policies
| Approach | Best for | Weakness |
|---|---|---|
| No death drops (buy-only) | Hero shooters, ability-heavy titles | Less macro depth; fewer clutch eco upgrades |
| Primary only, inherited ammo | Ranked tactical shooters (recommended) | Requires solid spawn validation and swap atomicity |
| Full inventory dump on death | Hardcore realism, extraction modes | Clutter, info leak, performance on busy fights |
| Teammate-only drops | Co-op PvE, shared economy teams | Removes enemy weapon upgrade loop |
| Auto-pickup on walk-over | Arcade, mobile casual | Accidental swaps; ranked exploit surface |
Pitfalls
- Client-authoritative spawns — dupes, desync, and invisible pickups.
- Ammo refresh to max on pickup — rewards kills with free top-off; breaks trust.
- No spawn offset validation — weapons inside walls or under floors.
- Non-atomic swap-and-drop — two primaries or duplicated rifles in one tick.
- Drops persisting across rounds — free rifles on pistol round.
- Unbounded drop count — frame cost and minimap clutter in 5v5 brawls.
- Pickup during plant/defuse — accidental weapon swaps lose rounds.
- Hiding economy tier on prompt — players cannot judge pickup vs rebuy.
Production checklist
- Define drop policy per mode: which slots drop, utility rules, team eligibility.
- Implement server drop FSM with exclusive CLAIMED mutex.
- Validate spawn positions with collision fallback offsets.
- Snapshot magazine and reserve at death tick; never refresh to max on pickup.
- Support atomic swap-and-drop when primary slot occupied.
- Show pickup prompt with weapon name, ammo fraction, and economy tier.
- Set per-drop TTL and round-end wipe for all ground entities.
- Cap concurrent drops; despawn oldest low-tier entities first.
- Log pickup events for economy telemetry and dispute review.
- Block pickup during objective channels unless explicitly allowed.
- Replicate stable drop_id and state; rate-limit pickup RPCs.
- Playtest 2v1 trade scenarios where both players rush the same drop.
Key takeaways
- Death drops are an economy system, not just a visual effect.
- Server authority and atomic pickup prevent dupes and disputes.
- Inherited ammo must match the victim's state at death.
- Despawn and round cleanup keep maps readable and fair.
- Harbor Rift cut loot disputes from 49% to 9% with a drop FSM alone.
Related reading
- Game buy phase and economy round systems explained — credits, eco tiers, and loss bonus
- Game ammo and reload systems explained — magazine, reserve, and reload pacing
- Game weapon swap and holster systems explained — draw FSM and swap timing
- Tactical shooter game design explained — round structure and macro flow