Scientist Hunt: simplify the path changing code for scared scientists
This commit is contained in:
parent
568121d05f
commit
7dae291f31
|
@ -455,6 +455,7 @@ void monster_scientist::Physics(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_flChangePath < time) {
|
if (m_flChangePath < time) {
|
||||||
|
#if 0
|
||||||
float add;
|
float add;
|
||||||
vector pos;
|
vector pos;
|
||||||
|
|
||||||
|
@ -474,6 +475,11 @@ void monster_scientist::Physics(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
v_angle[1] -= 180 + ((random() - 0.5) * 90);
|
||||||
|
v_angle[1] = Math_FixDelta(v_angle[1]);
|
||||||
|
|
||||||
|
#endif
|
||||||
m_flChangePath = time + floor(random(2,10));
|
m_flChangePath = time + floor(random(2,10));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue