Skip to content

Fight: Monster being able to hit us #342

@JaXt0r

Description

@JaXt0r

Description

Currently we have no detected hitbox which means we will win every fight eventually. ;-) Let's change that.

TODOs

  • Implement hero health bar at bottom of view next to air bar
  • Attack animations define Hit_Limb, Attack_Window, etc. We need to store it somewhere in e.g., Props or PrefabProps and collect its information at runtime when the "hit" with our hero is processed.
    • If monster is using its fists - Coll detection with monster collider and FightMode and current attack window
      • Activate Collider named in HIT_LIMB when attack window is active
      • Deactivate immediately if Attack window changes or the attack - which activated the HIT_LIMBs - is stopped
    • If monster is using weapon - Coll detection with weapon collider and FightMode and current attack window
    • Reset these values if Attack is stopped (where to do centrally? When monster is hit, yes, but can also happen when monster is falling down etc. Maybe simply when Attack() is stopped (finished or deleted from queue).
  • Visual Player hit
    • Fetch event to substract VRPlayer's health bar
    • When hit, darken vignette around us for a second to symbolize: Hit
    • Play sound of "Aargh"
    • Stop player combo immediately (at VRWeaponDomain or so) and Reset()
    • Fetch event like in FightService (then: VRPlayerService or so...) and check if dead
  • When dead
    • Darken sight totally - Grey filter etc.
    • Disable player motion (only rotation allowed)
    • Play dead sound

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAdditional feature to implement

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions