mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- 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:
parent
fcb8e7614f
commit
3f630c5cb6
2 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ class RedneckUfoBeam : DukeActor
|
|||
}
|
||||
}
|
||||
|
||||
class RedneckTikiLamp : DukeItemBase
|
||||
class RedneckTikiLamp : DukeActor
|
||||
{
|
||||
default
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue