Fix some misc warnings the new fteqcc brought up, along with some other tiny changes.
This commit is contained in:
parent
ac31455dd5
commit
868b9d1b04
9 changed files with 12 additions and 9 deletions
|
@ -150,7 +150,10 @@ CBaseEntity::predraw(void)
|
|||
/* mouth flapping action */
|
||||
bonecontrol5 = getchannellevel(this, CHAN_VOICE) * 20;
|
||||
m_flBaseTime = frame1time;
|
||||
frame1time += clframetime;
|
||||
|
||||
if (serverkeyfloat(SERVERKEY_PAUSESTATE) != 1)
|
||||
frame1time += frametime;
|
||||
|
||||
ProcessWordQue();
|
||||
|
||||
processmodelevents(modelindex, frame, m_flBaseTime,
|
||||
|
|
|
@ -502,8 +502,6 @@ CBaseMonster::NewRoute(vector destination)
|
|||
vector vecDest = p.m_pRoute[i].m_vecDest;
|
||||
tracebox(p.origin, p.mins, p.maxs, vecDest, TRUE, p);
|
||||
|
||||
print(sprintf("%v %v\n", p.origin, vecDest));
|
||||
|
||||
if (trace_fraction == 1.0) {
|
||||
p.m_iCurNode = i;
|
||||
break;
|
||||
|
|
|
@ -107,6 +107,7 @@ func_tankmortar::SpriteSmoke(vector org)
|
|||
smoke.think = Die;
|
||||
smoke.nextthink = time + 0.1f;
|
||||
smoke.scale = m_flSpriteScale;
|
||||
smoke.effects = EF_FLAG2;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -125,6 +126,7 @@ func_tankmortar::SpriteFlash(vector org)
|
|||
smoke.think = Die;
|
||||
smoke.nextthink = time + 0.1f;
|
||||
smoke.scale = m_flSpriteScale;
|
||||
smoke.effects = EF_FLAG2;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -56,10 +56,9 @@ void Game_Input(void)
|
|||
}
|
||||
|
||||
if (self.impulse == 103) {
|
||||
// Respawn all the entities
|
||||
for (entity a = world; (a = find(a, classname, "func_breakable"));) {
|
||||
func_breakable caw = (func_breakable)a;
|
||||
caw.Death(0);
|
||||
caw.Death();
|
||||
}
|
||||
bprint(PRINT_HIGH, "BREAK EVERYTHING!\n");
|
||||
}
|
||||
|
|
|
@ -616,6 +616,7 @@ void monster_scientist::Death(void)
|
|||
|
||||
flags &= ~FL_MONSTER;
|
||||
SetFrame(SCIA_DIE_SIMPLE + floor(random(0, 6)));
|
||||
SetSize(VEC_HULL_MIN + [0,0,36], VEC_HULL_MAX);
|
||||
|
||||
/* corpse health */
|
||||
SetMovetype(MOVETYPE_NONE);
|
||||
|
|
|
@ -109,7 +109,7 @@ monster_barney::AttackRanged(void)
|
|||
|
||||
/* functional */
|
||||
v_angle = vectoangles(m_eEnemy.origin - origin);
|
||||
TraceAttack_FireBullets(1, origin + [0,0,16], 8, [0.01,0,01], 2);
|
||||
TraceAttack_FireBullets(1, origin + [0,0,16], 8, [0.01,0.01], 2);
|
||||
Sound_Play(this, CHAN_WEAPON, "weapon_glock.fire");
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -196,7 +196,7 @@ monster_human_grunt::AttackRanged(void)
|
|||
|
||||
/* functional */
|
||||
v_angle = vectoangles(m_eEnemy.origin - origin);
|
||||
TraceAttack_FireBullets(1, origin + [0,0,16], 8, [0.01,0,01], 2);
|
||||
TraceAttack_FireBullets(1, origin + [0,0,16], 8, [0.01,0.01], 2);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ w_taurus_primary(void)
|
|||
}
|
||||
#else
|
||||
pl.taurus_mag--;
|
||||
TraceAttack_FireBullets(1, pl.origin + pl.view_ofs, 12, [0.01,0,01], WEAPON_TAURUS);
|
||||
TraceAttack_FireBullets(1, pl.origin + pl.view_ofs, 12, [0.01,0.01], WEAPON_TAURUS);
|
||||
Sound_Play(pl, CHAN_WEAPON, "weapon_taurus.fire");
|
||||
|
||||
if (self.flags & FL_CROUCHING)
|
||||
|
|
|
@ -154,7 +154,7 @@ w_glock_primary(void)
|
|||
}
|
||||
#else
|
||||
pl.glock_mag--;
|
||||
TraceAttack_FireBullets(1, pl.origin + pl.view_ofs, Skill_GetValue("plr_9mm_bullet"), [0.01,0,01], WEAPON_GLOCK);
|
||||
TraceAttack_FireBullets(1, pl.origin + pl.view_ofs, Skill_GetValue("plr_9mm_bullet"), [0.01,0.01], WEAPON_GLOCK);
|
||||
Sound_Play(pl, CHAN_WEAPON, "weapon_glock.fire");
|
||||
|
||||
if (self.flags & FL_CROUCHING)
|
||||
|
|
Loading…
Reference in a new issue