X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmonsters%2Fm_monsters.qc;h=c43538e023abbb6696deea4aca1fdffb8e759835;hb=3846c9bd40c2b3c1aa220c1eeef9198b1912aab4;hp=ceb3f207cc45d59c3f50d218a1c6ad61af75dc94;hpb=42b501c5da481b2598db9bfc1b93b06fede3657a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/monsters/m_monsters.qc b/qcsrc/server/monsters/m_monsters.qc index ceb3f207c..c43538e02 100644 --- a/qcsrc/server/monsters/m_monsters.qc +++ b/qcsrc/server/monsters/m_monsters.qc @@ -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);