monster_snark: run physics using point sized bbox
This commit is contained in:
parent
e1d7febbf7
commit
3db04eb85b
1 changed files with 7 additions and 2 deletions
|
@ -97,7 +97,12 @@ monster_snark::customphysics(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
m_flJump -= frametime;
|
m_flJump -= frametime;
|
||||||
|
|
||||||
|
mins = [0,0,0];
|
||||||
|
maxs = [0,0,0];
|
||||||
runstandardplayerphysics(this);
|
runstandardplayerphysics(this);
|
||||||
|
mins = [-8.0f, -8.0f, 0.0f];
|
||||||
|
mins = [8.0f, 8.0f, 8.0f];
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -119,7 +124,7 @@ monster_snark::Death(void)
|
||||||
Sound_Play(this, CHAN_VOICE, "weapon_snark.die");
|
Sound_Play(this, CHAN_VOICE, "weapon_snark.die");
|
||||||
Sound_Play(this, CHAN_BODY, "weapon_snark.blast");
|
Sound_Play(this, CHAN_BODY, "weapon_snark.blast");
|
||||||
customphysics = __NULL__;
|
customphysics = __NULL__;
|
||||||
remove(this);
|
Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -130,7 +135,7 @@ monster_snark::Respawn(void)
|
||||||
flags |= FL_MONSTER;
|
flags |= FL_MONSTER;
|
||||||
SetSolid(SOLID_CORPSE);
|
SetSolid(SOLID_CORPSE);
|
||||||
SetMovetype(MOVETYPE_WALK);
|
SetMovetype(MOVETYPE_WALK);
|
||||||
SetSize([-8,-8,0], [8,8,16]);
|
SetSize([-8,-8,0], [8,8,8]);
|
||||||
SetFrame(3); /* running like crazy. */
|
SetFrame(3); /* running like crazy. */
|
||||||
angles = goalentity.angles;
|
angles = goalentity.angles;
|
||||||
health = 20;
|
health = 20;
|
||||||
|
|
Loading…
Reference in a new issue