]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset spider slowness on respawn
authorMario <mario.mario@y7mail.com>
Sun, 13 Oct 2013 00:32:43 +0000 (11:32 +1100)
committerMario <mario.mario@y7mail.com>
Sun, 13 Oct 2013 00:32:43 +0000 (11:32 +1100)
qcsrc/common/monsters/sv_monsters.qc
qcsrc/server/cl_client.qc

index 32b0c02ed2168660c08d3856c5c1cd71b40a781c..f75987ee02b53b4d1021f9a9645f7eaa7f67c29d 100644 (file)
@@ -1066,6 +1066,7 @@ float monster_initialize(float mon_id, float nodrop)
        self.scale                              = 1;
        self.noalign                    = nodrop;
        self.spawn_time                 = time;
+       self.spider_slowness    = 0;
        self.gravity                    = 1;
        self.dphitcontentsmask  = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_BOTCLIP | DPCONTENTS_MONSTERCLIP;
        
index a70c32bd2267f48830329c8705ef4ac901abec6d..e39bbb672b9bba43b0547c5ec5cb65ce68ccfe75 100644 (file)
@@ -541,6 +541,8 @@ void PutClientInServer (void)
 
                self.bot_attack = TRUE;
                self.monster_attack = TRUE;
+               
+               self.spider_slowness = 0;
 
                self.statdraintime = time + 5;
                self.BUTTON_ATCK = self.BUTTON_JUMP = self.BUTTON_ATCK2 = 0;