-
Notifications
You must be signed in to change notification settings - Fork 121
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
Leader Rework #299
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Frozen-H2O
force-pushed
the
leader-rework
branch
3 times, most recently
from
October 2, 2024 06:52
c95a1f8
to
448b170
Compare
- 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
force-pushed
the
leader-rework
branch
2 times, most recently
from
November 10, 2024 17:39
1cd8831
to
4ba8e1f
Compare
Frozen-H2O
force-pushed
the
leader-rework
branch
4 times, most recently
from
November 12, 2024 00:20
d89a13b
to
bb58f04
Compare
- 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
Frozen-H2O
force-pushed
the
leader-rework
branch
from
November 12, 2024 00:24
bb58f04
to
3aaaac9
Compare
Vauff
approved these changes
Nov 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cs2f_leader_can_target_players
to control whether or not a leader can target other players withc_glow
,c_beacon
,c_tracer
, andc_defend
(wont affect admins).c_glow
,c_tracer
,c_beacon
, andc_defend
target@me
when used with no parameters or by a leader whencs2f_leader_can_target_players
is false.c_glow
parameter to color to matchc_beacon
andc_tracer
.ClientPrint
instead ofClientPrintAll
when a leader uses it on themselves.c_leader
for setting more leaders.cs2f_leader_max_leaders
controls the max amount of leaders, while admins usingc_leader
can go abovecs2f_leader_max_leaders
.c_vl
not work when it would make more than 1 leader ifcs2f_leader_vote_multiple
is false or if it would make more leaders thancs2f_leader_max_leaders
.c_enablepings
andc_disablepings
for a leader to enable/disable teammate pings.c_beacons
,c_glows
, andc_tracers
to check who has the respective visuals enabled.player_ping
, add a particle around the ping. Particle is set bycs2f_leader_mark_particle
cs2f_leader_defend_particle
instead of being hard coded.c_vl
immediately after a map change to give people a chance to join before the vote.