feat(combat): install the drone's follow-update FX adapter, with the combat.drone gate and the no-target body skip
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 47/100
Research direction
Read src/runtime/combat/dronefix.cpp, the body at src/combat/drone/follow_player_update.cpp, and its binding at src/runtime/combat/bindings/follow_player_update.cpp; then inspect the replay and drain rule headers and the existing adapter tests. First establish how the PC drivers can call DeathFxDue() and WallFxDue() with the required timing. Done means the adapter is installed with the combat.drone and null-target gates, FX_DEFER follows FxDeferWrites, and the listed driver, gate, and eight-combination tests pass.
Written by the indexing model from the issue text.
Description
Evidence at 6cc9babd6 (the base) for dronefix.cpp and the body, and at commit 78c060a7 (which adds the rules headers and the adapter; they do not exist at 6cc9babd6):
- At 6cc9babd6,
src/runtime/combat/dronefix.cppHooked_FollowUpdaterunsDeathFxDue()andWallFxDue()before the body, only when combat.drone is on (g_drone_on), and returns without running the body when*(cs + TARGET_BODY_SYSTEM) == 0. The install writesFX_DEFERonly withrc == NO_ERROR && !g_is_server && g_drone_on. src/combat/drone/follow_player_update.cppis the body;src/runtime/combat/bindings/follow_player_update.cppbinds it. At 78c060a7,git grep -n FollowPlayerUpdateWithFxfinds the adapter and its test only; nothing installs it.- At 78c060a7 the rules for the replay and the drain are pure headers
src/combat/drone/drone_death_fx_rules.handsrc/combat/drone/drone_fx_drain_rules.h(inert). The adapter runs replay, drain, body. It does not skip the body when TARGET_BODY_SYSTEM is 0, and it does not check combat.drone.
Not shown: that the PC implementation of the drivers (DeathFxDue, WallFxDue) can be wired through FollowFxDrivers with the same timing as the detour; that Quest needs an equivalent (its FX_DEFER writer does not exist: git grep -n FX_DEFER -- src/quest is a comment only).
Falsifier: at 78c060a7 or later, git grep -n FollowPlayerUpdateWithFx -- src finds a caller outside the adapter's test that passes a PC FollowFxDrivers, and that caller already skips the body while TARGET_BODY_SYSTEM is 0 and runs the drivers only with combat.drone on. Then the install exists and this issue's claim is false.
Work:
- A PC
FollowFxDriversimplementation that calls DeathFxDue and WallFxDue; test: the adapter's order (exists) plus a case per driver. - The install seam gates the drivers on combat.drone and the body on TARGET_BODY_SYSTEM != 0, as Hooked_FollowUpdate does; test: a fake follow update with a null body system runs no body and logs once.
- The install writes FX_DEFER by
FxDeferWrites(installOk, isServer, droneOn); test: the eight combinations (exists for the rule). - Cut dronefix.cpp's copies over once the binding is installed (standards
nevr-cat-removal).
- Dominant language
- C++
- Stars
- 3
- Forks
- 5
- Avg merge
- 4h 37m
- Merged PRs (30d)
- 524
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EchoTools/nevr-runtime
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
EchoTools/nevr-runtime#2910 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EchoTools/nevr-runtime#2909 ·
Maintainers usually reply within 1 day
-
build: the generated defaults header is written 0600, so a seat outside nevr-build cannot read itOpenbacklog
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EchoTools/nevr-runtime#2901 · 1 comment ·
Maintainers usually reply within 1 day
-
backlog
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EchoTools/nevr-runtime#2897 ·
Maintainers usually reply within 1 day
All issues in EchoTools/nevr-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day
-
good first issue help wanted phase:0 priority:P3 type:task
Difficulty 2/5 1-3 hours Newbie friendliness 67/100