Skip to content

Commit

Permalink
- Duke: fixed the cactus.
Browse files Browse the repository at this point in the history
Statnums were wrong here.
  • Loading branch information
coelckers committed Jan 21, 2023
1 parent 5ebce5a commit 13c9e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wadsrc/static/zscript/games/duke/actors/cactus.zs
Expand Up @@ -10,7 +10,7 @@ class DukeCactusBroke : DukeActor
{
self.cstat |= CSTAT_SPRITE_BLOCK_ALL;
self.clipdist = 8;
self.ChangeStat(STAT_ACTOR);
self.ChangeStat(STAT_DEFAULT);
}
}

Expand All @@ -34,7 +34,7 @@ class DukeCactus : DukeCactusBroke
double vel = frandom(4, 8);
double zvel = -frandom(0, 16) - self.vel.Z * 0.25;

let spawned = dlevel.SpawnActor(self.sector, self.pos.plusZ(-48), "DukeScrap", -8, (0.75, 0.75), ang, vel, zvel, self);
let spawned = dlevel.SpawnActor(self.sector, self.pos.plusZ(-48), "DukeScrap", -8, (0.75, 0.75), ang, vel, zvel, self, STAT_MISC);
if (spawned)
{
spawned.spriteextra = DukeScrap.Scrap3 + random(0, 3);
Expand Down

0 comments on commit 13c9e99

Please sign in to comment.