mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-02 09:02:35 +00:00
23 lines
342 B
Text
23 lines
342 B
Text
|
class DukeDoorShock : DukeActor
|
||
|
{
|
||
|
default
|
||
|
{
|
||
|
shade -12;
|
||
|
statnum STAT_STANDABLE;
|
||
|
}
|
||
|
|
||
|
override void Initialize()
|
||
|
{
|
||
|
self.cstat |= CSTAT_SPRITE_BLOCK_ALL;
|
||
|
}
|
||
|
|
||
|
|
||
|
override void Tick()
|
||
|
{
|
||
|
let sectp = self.sector;
|
||
|
double j = abs(sectp.ceilingz - sectp.floorz) / 128.;
|
||
|
self.scale = (0.25, 0.0625 + j);
|
||
|
self.pos.Z = sectp.floorz;
|
||
|
}
|
||
|
}
|