mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-02 09:02:18 +00:00
35 lines
594 B
Text
35 lines
594 B
Text
|
|
||
|
class RedneckPowderKeg : DukeActor
|
||
|
{
|
||
|
default
|
||
|
{
|
||
|
pic "POWDERKEG";
|
||
|
}
|
||
|
|
||
|
override void Tick()
|
||
|
{
|
||
|
let sectp = self.sector;
|
||
|
if (sectp.lotag != ST_1_ABOVE_WATER && sectp.lotag != ST_160_FLOOR_TELEPORT)
|
||
|
if (self.vel.X != 0)
|
||
|
{
|
||
|
movesprite((self.Angle.ToVector()* self.vel.X, self.vel.Z), CLIPMASK0);
|
||
|
self.vel.X -= 1. / 16.;
|
||
|
}
|
||
|
Super.Tick();
|
||
|
}
|
||
|
|
||
|
|
||
|
override bool shootthis(DukeActor actor, DukePlayer p, Vector3 spos, double sang)
|
||
|
{
|
||
|
let j = actor.spawn("RedneckPowderKeg");
|
||
|
if (j)
|
||
|
{
|
||
|
j.vel.X = 2;
|
||
|
j.Angle = actor.Angle;
|
||
|
j.pos.Z -= 5;
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|