mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-03 09:32:45 +00:00
7f240a0a7a
This means all functions using this can now pass class pointers directly to the native code.
25 lines
405 B
Text
25 lines
405 B
Text
class DukeSmallSmoke : DukeActor
|
|
{
|
|
default
|
|
{
|
|
pic "SMALLSMOKE";
|
|
}
|
|
|
|
override void Initialize()
|
|
{
|
|
let owner = self.ownerActor;
|
|
|
|
if (owner && owner != self)
|
|
{
|
|
self.Angle = owner.Angle;
|
|
self.cstat = randomXFlip();
|
|
|
|
double c,f;
|
|
[c, f] = self.sector.getSlopes(self.pos.XY);
|
|
self.pos.Z = min(self.pos.Z, f - 12);
|
|
}
|
|
self.scale = (0.375, 0.375);
|
|
self.ChangeStat(STAT_MISC);
|
|
}
|
|
}
|
|
|