Skip to content

Implement Adaptive Zoom Scaling for Extended MaxCameraHeight #2350

@githubawn

Description

@githubawn

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Bug Description

In Zero Hour, the standard MaxCameraHeight is usually 310. If a modder increases this to allow for higher views, the linear scroll steps become extremely slow.

The zoom increment could scale such that navigating the extended height range 310–MaxCameraHeight requires roughly the same physical effort as the standard range (MinCameraHeight–310). This ensures the camera remains responsive at bird's-eye views without making the close-up micro-management feel twitchy or imprecise.

Reproduction Steps

Start the game with modded MaxCameraHeight (starts to be really noticeable from 700).
Zoom in all the way.
Notice how it can take >10 seconds of scrolling or the user needs a mouse with an "Infinite Scroll Wheel".

Additional Context

Related to #1833, but this specifically addresses the proportionality problem at high MaxCameraHeight values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facing⚠️ TriageIssues requiring initial review and prioritization

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions