- fixed some item issues in RR.

* RedneckPowderKeg was missing its Initialize function and did not clamp its movement velocity.
* RedneckTikiLamp inherited from the wrong base class.
This commit is contained in:
Christoph Oelckers 2023-06-04 11:37:10 +02:00
parent fcb8e7614f
commit 3f630c5cb6
2 changed files with 8 additions and 1 deletions

View file

@ -297,6 +297,12 @@ class RedneckPowderKeg : DukeItemBase
+BREAKMIRRORS;
+INFLAME;
}
override void Initialize(DukeActor spawner)
{
commonItemSetup(spawner, (0.171875, 0.171875));
self.yint = 4;
}
override void Tick()
{
@ -306,6 +312,7 @@ class RedneckPowderKeg : DukeItemBase
{
movesprite((self.Angle.ToVector()* self.vel.X, self.vel.Z), CLIPMASK0);
self.vel.X -= 1. / 16.;
if (self.vel.X < 0) self.vel.X = 0;
}
Super.Tick();
}

View file

@ -80,7 +80,7 @@ class RedneckUfoBeam : DukeActor
}
}
class RedneckTikiLamp : DukeItemBase
class RedneckTikiLamp : DukeActor
{
default
{