Fight: Monster being able to hit us

未关闭
#342 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
csharp, unity
领域
game-dev

调研方向

Start by locating the monster attack animation data and the runtime fight and attack handling; the issue does not name files or tests. The work spans hit detection, player damage feedback, combo interruption, and death behavior. Done means active attack windows can hit the player and the listed hit and death responses work.

由索引模型根据 Issue 内容生成。

描述

feature

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
主要语言
C#
星标
33
派生
1
平均合并
1 天 17 小时
30 天内合并 PR
51

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Gothic-Unity-Project/Gothic-Unity 的其他 Issue

查看 Gothic-Unity-Project/Gothic-Unity 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。