From: terencehill Date: Mon, 13 Sep 2021 22:27:11 +0000 (+0200) Subject: LMS: make leaders glow so they are immediately recognizable X-Git-Tag: xonotic-v0.8.6~426^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e39a8ec9c74dbcac8fbce9e2c7f7c1b4c9a5817d;p=xonotic%2Fxonotic-data.pk3dir.git LMS: make leaders glow so they are immediately recognizable --- diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 018f75e36..95ecb8b8d 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -361,6 +361,15 @@ MUTATOR_HOOKFUNCTION(lms, PlayerRegen) return true; } +MUTATOR_HOOKFUNCTION(lms, PlayerPowerups) +{ + entity player = M_ARGV(0, entity); + if (player.waypointsprite_attachedforcarrier) + player.effects |= (EF_ADDITIVE | EF_FULLBRIGHT); + else + player.effects &= ~(EF_ADDITIVE | EF_FULLBRIGHT); +} + MUTATOR_HOOKFUNCTION(lms, ForbidThrowCurrentWeapon) { // forbode!