mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- Duke: apply default scale only to enemies defined in CON.
This code does not apply to the Recon!
This commit is contained in:
parent
9c164ad290
commit
e2db4a834e
1 changed files with 11 additions and 8 deletions
|
@ -302,15 +302,18 @@ bool commonEnemySetup(DDukeActor* self, DDukeActor* owner)
|
|||
{
|
||||
if (!self->mapSpawned) self->spr.lotag = 0;
|
||||
|
||||
// Init the size. This is different for internal and user enemies.
|
||||
if (actorflag(self, SFLAG_INTERNAL_BADGUY))
|
||||
if (gs.actorinfo[self->spr.picnum].scriptaddress) // default scale only applies to actors with a CON part. Note: needs fixing later!
|
||||
{
|
||||
self->spr.scale = DVector2(0.625, 0.625);
|
||||
self->clipdist = 20;
|
||||
}
|
||||
else if (self->spr.scale.X == 0 || self->spr.scale.Y == 0)
|
||||
{
|
||||
self->spr.scale = DVector2(REPEAT_SCALE, REPEAT_SCALE);
|
||||
// Init the size. This is different for internal and user enemies.
|
||||
if (actorflag(self, SFLAG_INTERNAL_BADGUY))
|
||||
{
|
||||
self->spr.scale = DVector2(0.625, 0.625);
|
||||
self->clipdist = 20;
|
||||
}
|
||||
else if (self->spr.scale.X == 0 || self->spr.scale.Y == 0)
|
||||
{
|
||||
self->spr.scale = DVector2(REPEAT_SCALE, REPEAT_SCALE);
|
||||
}
|
||||
}
|
||||
|
||||
if ((self->spr.lotag > ud.player_skill) || ud.monsters_off == 1)
|
||||
|
|
Loading…
Reference in a new issue