Skip to content

EV_DoFloor and EV_DoCeiling for Lua

Barrels O'Fun requested to merge BarrelsOFun/SRB2:lua_dofloor&doceiling into next

As of right now, there is no means of moving a sector's floor or ceiling height with interpolation, and there's still use cases for doing such, though there are also situations where you would want sector interpolation for such so you wouldn't want to interpolate sector.floorheight and sector.ceilingheight for example, so I created a form of EV_DoFloor and EV_DoCeiling for Lua.

EV_DoFloor(sector_t sec[, int destheight, int speed])

EV_DoCeiling(sector_t sec[, int destheight, int speed])

You can choose a sector to move, and the desired height and speed.

If no height is defined, the movement stops abruptly.

If no speed is defined, the default FLOORSPEED/CEILSPEED is used, and if speed is negative, it will move instantly.

Example wad:

lua_evfloorceiling_test.wad

Merge request reports

Loading