]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
misc_laser: allow turning off the dlight by setting "modelscale" "-1"
authorRudolf Polzer <divverent@alientrap.org>
Tue, 19 Oct 2010 05:37:20 +0000 (07:37 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 19 Oct 2010 05:37:20 +0000 (07:37 +0200)
qcsrc/server/g_triggers.qc

index d97413f10efb94ff15770a6faf4b5af981d0aeb0..8ded34feae4e6fae28e931a5a18f85868c6dc8e0 100644 (file)
@@ -1188,6 +1188,8 @@ void spawnfunc_misc_laser()
                self.scale = 1;
        if(!self.modelscale)
                self.modelscale = 1;
+       else if(self.modelscale < 0)
+               self.modelscale = 0;
        self.think = misc_laser_think;
        self.nextthink = time;
        InitializeEntity(self, misc_laser_init, INITPRIO_FINDTARGET);