User:Digiku/2.2/Ideya Drone

From SRB2 Wiki
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.
  • Player Alignment:
    • Default: Align player from the bottom of hitbox plus 24 fracunits
    • MTF_OBJECTSPECIAL: Align player to top of hitbox
    • MTF_EXTRA: Align player to middle of hitbox
    • MTF_EXTRA AND MTF_OBJECTSPECIAL: Align player to true bottom of hitbox, no offset.

Examples