]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/monsters/m_monsters.qc
get rid of 'local' prefixes (does nothing)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / monsters / m_monsters.qc
index ceb3f207cc45d59c3f50d218a1c6ad61af75dc94..c43538e023abbb6696deea4aca1fdffb8e759835 100644 (file)
@@ -156,7 +156,7 @@ void() monster_death_use =
 
 void() monsterinwall =
 {
-       local entity e;
+       entity e;
        if (!autocvar_developer)
                return;
        // this is handy for level designers,
@@ -259,6 +259,7 @@ void() walkmonster_start_go =
 // spread think times so they don't all happen at same time
        self.nextthink = self.nextthink + random()*0.5 + 0.1;
        self.iscreature = TRUE;
+       self.damagedbycontents = TRUE;
 
        force_retouch = 2; // mainly to detect teleports
 
@@ -352,6 +353,7 @@ void() flymonster_start_go =
                }
        }
        self.iscreature = TRUE;
+       self.damagedbycontents = TRUE;
 
        force_retouch = 2; // mainly to detect teleports
 
@@ -440,6 +442,7 @@ void() swimmonster_start_go =
                }
        }
        self.iscreature = TRUE;
+       self.damagedbycontents = TRUE;
 
        force_retouch = 2; // mainly to detect teleports
 
@@ -463,7 +466,7 @@ void() swimmonster_start =
 
 void(vector org, float bodydamage, float armordamage, vector force, float damgtype) genericbleedfunc =
 {
-        local vector v;
+        vector v;
         v = '0 0 0' - force * 0.05;
         if (armordamage > 0)
                 te_spark(org, v, armordamage * 3);