Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leader Rework #299

Merged
merged 8 commits into from
Nov 14, 2024
Merged

Leader Rework #299

merged 8 commits into from
Nov 14, 2024

Conversation

Frozen-H2O
Copy link
Collaborator

@Frozen-H2O Frozen-H2O commented Oct 2, 2024

  • cs2f_leader_can_target_players to control whether or not a leader can target other players with c_glow, c_beacon, c_tracer, and c_defend (wont affect admins).
  • Make c_glow, c_tracer, c_beacon, and c_defend target @me when used with no parameters or by a leader when cs2f_leader_can_target_players is false.
  • Change extra c_glow parameter to color to match c_beacon and c_tracer.
  • If all current leaders are zombies or spectators, allow CTs to ping again even when disabled.
  • Allow admins to use all leader commands even when they aren't a leader.
  • If someone is a CT with non-white playermodel color when made leader, use their playermodel color as their leader color instead of a random color from the presets list. Has a length constraint so dark colors like black aren't used for this and just picks a random color from the list in that case (since the whole idea is being easily visible).
  • Make leader commands use ClientPrint instead of ClientPrintAll when a leader uses it on themselves.
  • Give leaders access to c_leader for setting more leaders. cs2f_leader_max_leaders controls the max amount of leaders, while admins using c_leader can go above cs2f_leader_max_leaders.
  • Make c_vl not work when it would make more than 1 leader if cs2f_leader_vote_multiple is false or if it would make more leaders than cs2f_leader_max_leaders.
  • Make c_enablepings and c_disablepings for a leader to enable/disable teammate pings.
  • Automatically apply beacon to a new leader (disabled glow and tracers) and reapply visuals leader had in previous round when a new round starts.
  • Add c_beacons, c_glows, and c_tracers to check who has the respective visuals enabled.
  • Give leaders +20000 score to show them at top of scoreboard.
  • When a leader uses player_ping, add a particle around the ping. Particle is set by cs2f_leader_mark_particle
  • Make defend particle use cvar cs2f_leader_defend_particle instead of being hard coded.
  • Disable c_vl immediately after a map change to give people a chance to join before the vote.

@Frozen-H2O Frozen-H2O force-pushed the leader-rework branch 3 times, most recently from c95a1f8 to 448b170 Compare October 2, 2024 06:52
Frozen-H2O and others added 5 commits November 10, 2024 09:17
- cs2f_leader_can_target_players to control whether or not a leader can target other players with c_glow, c_beacon, c_tracer, and c_defend (wont affect admins).
- Make c_glow, c_tracer, c_beacon, and c_defend target @me when used with no parameters or by a leader when cs2f_leader_can_target_players is false.
- Change extra c_glow parameter to color to match c_beacon and c_tracer.
- If all current leaders are zombies or spectators, allow CTs to ping again even when disabled.
- Allow admins to use all leader features even when they aren't a leader.
- If someone is a CT with non-white playermodel color when made leader, use their playermodel color as their leader color instead of a random color from the list. Has a length constraint so dark colors like black aren't used for this and just picks a random color from the list in that case (since the whole idea is being easily visible).
- Make leader commands use ClientPrint instead of ClientPrintAll when a leader uses it on themselves.
- Give leaders access to c_leader for setting more leaders. cs2f_max_leaders controls the max amount of leaders, while admins using c_leader can go above the CVar's limit.
- Make c_vl not work when it would make more than 1 leader if cs2f_leader_vote_multiple is false or if it would make more leaders than cs2f_max_leaders.
- Make c_togglepings, c_enablepings, and c_disablepings for a leader to enable/disable teammate pings (instead of only being hard set by a CVar).
- Automatically beacon to a new leader (disabled glow and tracers) and reapply visuals leader had in previous round  when a new round starts.
- Add c_beacons, c_glows, and c_tracers to check who has them enabled.
- Give leaders +20000 score to show them at top of scoreboard.
- Add a mark particle to CT leader pings.
@Frozen-H2O Frozen-H2O force-pushed the leader-rework branch 2 times, most recently from 1cd8831 to 4ba8e1f Compare November 10, 2024 17:39
@Frozen-H2O Frozen-H2O force-pushed the leader-rework branch 4 times, most recently from d89a13b to bb58f04 Compare November 12, 2024 00:20
- Fix glow not persisting on leaders across rounds
- Prevent leaders on the terrorist team from pinging if cs2f_leader_actions_ct_only is false
- Add c_resign for people to remove leader from themselves and keep c_removeleader as admin only
- Add c_resign to c_leaderhelp
@Vauff Vauff merged commit 5fe7d52 into Source2ZE:main Nov 14, 2024
3 checks passed
@Frozen-H2O Frozen-H2O deleted the leader-rework branch December 1, 2024 21:34
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.

2 participants