Skip to content

Fix dropped item placement and camera stability - #12

Open
Arthurnashh wants to merge 1 commit into
Personed:mainfrom
Arthurnashh:sourcedayz/source-sync-20261124
Open

Arthurnashh wants to merge 1 commit into
Personed:mainfrom
Arthurnashh:sourcedayz/source-sync-20261124

Conversation

@Arthurnashh

@Arthurnashh Arthurnashh commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Envio do codigo-fonte do SourceDayZ.

  • Correcao da posicao do item ao soltar (drop) no cliente e no servidor.
  • Atualizacao de itens soltos para clientes remotos.
  • Estabilidade da camera/headbob durante o movimento.
  • README com aviso obrigatorio: NAO remover o Steam nem o BattlEye.

Devin Review

Keep the server transform for items dropped outside the inventory, update dropped items on remote clients, and keep local view/camera stable during movement and animation transitions.

Also adds README stating that Steam and BattlEye must not be removed.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread lib/soldierOld.cpp
Comment on lines +15648 to +15651
if (QIsManual() &&
GInput.GetActionKeys("AimHeadRight").Size() == 0 &&
GInput.GetActionKeys("AimHeadLeft").Size() == 0)
lookX = input->GetActionWithCurveExclusive(InputInterface::CurveFovMouse, UAAimRight, UAAimLeft);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Controller bindings block mouse freelook

With the character controller scheme enabled, KeyboardPilot ignores horizontal mouse input bound only to body aim during freelook. GetUserKeys counts thumbstick bindings as head-yaw bindings, so the mouse fallback never runs.

Learn more

The game stores normal body aim and freelook yaw as separate actions. GetActionKeys delegates to GetUserKeys, which supplies both profile and controller-scheme bindings. KeyListEx::Size adds the two lists together. The character controller scheme binds both head-yaw directions to the thumbstick. These entries disable the mouse fallback even when the profile has no head-yaw mouse bindings.

Example: Enable the built-in character controller scheme with a profile that binds mouse X only to AimLeft and AimRight. Hold freelook and move the mouse without touching the thumbstick. Neither mouse direction turns the camera horizontally, although both worked with the previous fallback.

Recommended fix: Select the yaw action for each mouse direction from its mouse-axis bindings, independently of controller bindings. Keep reading dedicated head-yaw controller input and use body aim only for mouse directions without a dedicated binding. Test a mixed mouse/controller profile and a profile with dedicated mouse head-yaw bindings.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants