Skip to content

Conversation

@ywgATustcbbs
Copy link
Contributor

@ywgATustcbbs ywgATustcbbs commented Jul 4, 2025

Add trace for a marine (Pure client effects). This will help new play…ers to find where a marine goes. Especially useful when playing with skilled players

  • Add a convar cl_trace_player_enable to enable / disable tracing in game. Can toggle this convar in player list menu.
  • Add a convar cl_trace_player_max_targets to set maximum number (default 3, max 7) of players to trace positions for in the client
  • Add a convar cl_trace_player_opacity to set the trace opacity.
  • Use different colors for different traces
  • Add icons for tracing buttons. New icons are in reactivedrop_public_src/reactivedrop/content/trace_player_ui/material/vgui/briefing
  • Reworked related .res files. Those files are in reactivedrop_public_src/reactivedrop/content/trace_player_ui/resource/ui
  • Add Tracing self recommendation button. You can suggest others to trace your marine.
  • If a marines dies, its trace will be invisible immediately.

@ywgATustcbbs ywgATustcbbs marked this pull request as ready for review July 12, 2025 02:41
@ywgATustcbbs
Copy link
Contributor Author

ywgATustcbbs commented Jul 16, 2025

The eaist way to for testing is:

  1. Download the repo, compile and replace the dll files

  2. Copy the whole %repo_dir%\reactivedrop\content\trace_player_ui into %game_dir%\reactivedrop\addons folder and create a dummy addoninfo.txt file like this

"AddonInfo"
{
addontitle "trace_player_ui"
addonauthor ""
addondescription ""
}

Start the game. That should work. Note that you cant see yourself's trace by default. To see your character's trace, open VS, search for std::vector<int> g_nTracePlayer2Color = std::vector<int>, replace the 0 with 1 in both line 122 and line 123. like the following pic. Recompile and replace dlls.
image

If the UI buttons are not shown up. that's due to the res files are not correctly loaded. The following steps will force load the new res files.
3. Open VS and search "auto currentScheme = rd_legacy_ui.GetString();" in all files. 4 items will show up in search result.
4. Click on each result. Add _1 to all .res file names. like below. there are 8 file names total. Recompile and replace dlls.
image
5. rename 8 new .res files in %game_dir%\reactivedrop\addons\trace_player_ui\resource\ui to _1.res.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant