Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Leader Rework - 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. * Block c_vl for a bit after map changes * Minor fix for ct only leader commands * Better check for blocking early !vl voting * Fix round start crash * Update leaderhelp and leadercolor * Fix minor issues and add c_resign - 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 * Add cvar for zm leader ping markers + bug fix --------- Co-authored-by: Vauff <[email protected]>
- Loading branch information