]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
monsters: don't cast light when following a player
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 14 Mar 2024 06:15:42 +0000 (16:15 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 14 Mar 2024 08:14:14 +0000 (18:14 +1000)
This made FPS too low for players using integrated graphics when
pokenades are spammed. Also was a bit weird, they're not objectives or
powerups.

qcsrc/common/monsters/sv_monsters.qc

index e5ff5127d8092579132dfda3dc6fdf035dae5276..2371a40083405695e5326afc250f78a97ac02885 100644 (file)
@@ -1385,9 +1385,6 @@ bool Monster_Spawn_Setup(entity this)
        this.pain_finished = this.nextthink;
        this.last_enemycheck = this.spawn_time + random(); // slight delay
 
-       if(IS_PLAYER(this.monster_follow))
-               this.effects |= EF_DIMLIGHT;
-
        if(!this.wander_delay) { this.wander_delay = 2; }
        if(!this.wander_distance) { this.wander_distance = 600; }