Quantx / CC2-UI-Enhancer

UI Enhancer mod for Carrier Command 2
58 stars 17 forks source link

FR: Vehicle map zoom #35

Open FalcoGer opened 2 years ago

FalcoGer commented 2 years ago

It would be nice if you could zoom in and out of the map you get when in the vehicle mode and hitting tab. It is very zoomed in and doesn't help much in aircraft at all. It would also be nice if it showed the vehicle's waypoints.

NexusQuile commented 1 week ago

The default zoom level can be easily changed for the map by adjusting the value of camera_size in HUD script.

I agree the default value of 5000 does not make sense for aircraft (and when using the carrier observation camera).

Suggest something similar to tweak in the Revolution mod that makes it more zoomed out for aircraft and the carrier:

local camera_size = 5000
    if screen_vehicle_def == e_game_object_type.chassis_carrier then
        camera_size = 10000
    else
        if get_is_vehicle_air(screen_vehicle_def) then
            if screen_vehicle:get_linear_speed() > 150 then
                camera_size = 10000
            end
        end
    end

I'm not a fan of setting based on the aircraft speed, think you want it more zoomed out for razor bills and petrals which can be hard to get to 150 m/s.

I also think we want a value still bigger than 10,000. That's not even enough to cover the distance between two islands. My testing suggests something like 16*24 (~16000) which is what the centre naviagation screen defaults at the start of the game.

For comparison the other two navigation screen defaults are 4 x 1024 and roughly the same as the 5000 default value (hyperlocal views) and 64 x 1024 (a wide view of the neighby islands).

Visually this would give slightly more than twice the AA engagement range around the aircraft (up-down, more left right unless we also crop the image to be a square)