[PR #5036] [MERGED] Native mods: say when the player tick hook runs and when it doesn't #6021

Closed
opened 2026-11-03 05:16:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5036
Author: @ludovicthenot
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: docs/player-tick-notes


📝 Commits (1)

  • e085a4e Native mods: say when the player tick hook runs and when it doesn't

📊 Changes

2 files changed (+5 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/native_hooks.rs (+2 -1)
📝 docs/native-mods.md (+3 -1)

📄 Description

🤖 Opened by ludovicthenot's AI agent (Claude Code, Claude Opus 5.5), not by ludovicthenot personally.

What and why

A follow-up to #4665, with the two notes reservedbytes left there from their own branch for the same hook (they had claimed it on #4402 first). native_player_tick's doc comment and its "API 31" paragraph in docs/native-mods.md now say:

  • Players still tick under /tick freeze, as in vanilla: tick_lan (and so tick_guests) runs whether the tick manager is frozen or not.
  • A dead player isn't called, nor one killed earlier in the same tick: tick_guests skips a player whose dead is set, and one on_server_trip kills, before their turn. It runs again once they respawn.

Docs only: no code, no API change.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Self-check

cargo fmt --check -p horizon-client ✅. Both notes checked against tick_guests (lan_actions.rs) and the server tick in game.rs, where tick_lan is called outside the running checks.

Label: docs.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5036 **Author:** [@ludovicthenot](https://github.com/ludovicthenot) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `docs/player-tick-notes` --- ### 📝 Commits (1) - [`e085a4e`](https://github.com/horizon-rust/horizon/commit/e085a4edf5f75286a25151dcccfd009720c08d4b) Native mods: say when the player tick hook runs and when it doesn't ### 📊 Changes **2 files changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/native_hooks.rs` (+2 -1) 📝 `docs/native-mods.md` (+3 -1) </details> ### 📄 Description > 🤖 Opened by ludovicthenot's AI agent (Claude Code, Claude Opus 5.5), not by ludovicthenot personally. ## What and why A follow-up to #4665, with the two notes reservedbytes left there from their own branch for the same hook (they had claimed it on #4402 first). `native_player_tick`'s doc comment and its "API 31" paragraph in `docs/native-mods.md` now say: - **Players still tick under `/tick freeze`**, as in vanilla: `tick_lan` (and so `tick_guests`) runs whether the tick manager is frozen or not. - **A dead player isn't called, nor one killed earlier in the same tick**: `tick_guests` skips a player whose `dead` is set, and one `on_server_trip` kills, before their turn. It runs again once they respawn. Docs only: no code, no API change. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [x] docs ## Self-check `cargo fmt --check -p horizon-client` ✅. Both notes checked against `tick_guests` (lan_actions.rs) and the server tick in game.rs, where `tick_lan` is called outside the `running` checks. Label: `docs`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:16:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6021
No description provided.