User:Digiku/2.2/Ideya Drone
Jump to navigation
Jump to search
Ideya Drone Improvements
- Player aligns to Drone position upon Nightserizing, so that starting position is always consistent.
- Drone hitbox position is constant and not affected by gravity.
- Drone works properly even if its position, scaling, or reverse-gravity is changed by Lua
- If Drone is scaled, the player gets scaled too upon Nightserizing
Thing Spec
- Drone hitbox is configurable by height, radius, and player alignment.
- Height: Thing Parameter # 1-15, multiples of 32.
- E.g., if parameter # is 4, Drone hitbox height is 128.
- Default height is 80.
- Radius: Upmost 4 bits of Thing angle, value 1-15, multiples of 32.
- Set this by calculating
([RadiusValue] << 12) + [TimeLimit]
- Default radius is 16.
- Set this by calculating
- Player Alignment:
- Default: Align player from the bottom of hitbox plus 24 fracunits
MTF_OBJECTSPECIAL
: Align player to top of hitboxMTF_EXTRA
: Align player to middle of hitboxMTF_EXTRA
ANDMTF_OBJECTSPECIAL
: Align player to true bottom of hitbox, no offset.
Examples
- File:Nights-dronebox.wad - MAP01 thru MAP10, level subtitles explain the examples.
- File:Nights-drone-advanced.wad - MAP01. Type `dronehelp` in console to manipulate Drone properties such as scale and height.