RTD icon indicating copy to clipboard operation
RTD copied to clipboard

Perk drops

Open Phil25 opened this issue 1 year ago • 0 comments

Whole new feature which allows good perks to be dropped on the ground and shared with other players.

Summary

  • Only good and timed perks are droppable.
  • Perks are dropped on death.
  • Perks can be dropped with dropitem command (intel prioritized first).
  • Dropped perks disappear after 10 seconds.
  • Dropped perks save their remaining time and resume once picked up.
  • Dropped perks show annotation to nearby players telling them the perk's name and remaining time.
  • Picking up a perk requires a player to stand in its pickup range for a few seconds.

Overview

Encourage teamwork even more by giving people a chance to drop their current perk via dropitem command (default L).

This will be a very obscure feature by itself and people won't know about it since there really isn't a good way of informing without a message, which RTD is not going to show. I think that's fine.

This feature could be also used to steal good perks from enemies.

Visuals & Audio

  • Dropped perks are indicated by some particle effect.
  • Upon getting close, a notification appears showing the perk's name and remaining time (ex. PowerPlay (8s)).
  • Upon standing in pickup range, picking up starts indicated by a PASS time beam linking the player and the effect. Some loading/charging-sounding audio FX starts playing.
  • After a few seconds of standing in pickup range, some equip sound plays and perk is applied for the remaining time.

ConVars

  • sm_rtd2_perk_drop_max 5 -- max perks dropped at a time (limit 5).
  • sm_rtd2_perk_drop_death 1 -- should good perks be dropped on death.
  • sm_rtd2_perk_drop_self 1 -- should good perks be droppable manually by player.
  • sm_rtd2_perk_drop_time 10 -- time after which dropped perks disappear.
  • sm_rtd2_perk_pickup_time 2.5 -- time needed to pick up a dropped perk.

Perk Eligibility

Since perks do have conditions on what players can use them (soon to have a dedicated method of calculating such eligibility), some perks cannot be picked up by some players. This can be indicated by a negative beep noise when they approach it plus a chat message (ex. [RTD] You are not eligible for Infinite Cloak.). This message is on a cooldown of 3s per dropped perk, one reason is not to flood the player's chat, but also because the eligibility calculation is potentially expensive.

Phil25 avatar Dec 03 '23 14:12 Phil25