raze/wadsrc/static/zscript/games/duke/actors/doorshock.zs

24 lines
377 B
Text
Raw Normal View History

2022-11-19 14:40:21 +00:00
class DukeDoorShock : DukeActor
{
default
{
pic "DOORSHOCK";
2022-11-19 14:40:21 +00:00
}
override void Initialize()
{
self.cstat |= CSTAT_SPRITE_BLOCK_ALL;
self.shade = -12;
self.ChangeStat(STAT_STANDABLE);
2022-11-19 14:40:21 +00:00
}
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;
}
}