]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
LMS: make leaders glow so they are immediately recognizable
authorterencehill <piuntn@gmail.com>
Mon, 13 Sep 2021 22:27:11 +0000 (00:27 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 13 Sep 2021 22:35:51 +0000 (00:35 +0200)
qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc

index 018f75e361743684c89c83cfbbe10a564595be33..95ecb8b8d6a61830123a7d3f4d8a953d5fbecb83 100644 (file)
@@ -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!