MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DoZoomStay

Function DoZoomStay

Descent3/WeaponFire.cpp:2683–2693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2681#define ZOOM_FOV_TARGET 18
2682
2683void DoZoomStay() {
2684 if (Zoom_fov_time > 0) {
2685 Render_FOV = ZOOM_FOV_TARGET;
2686 Zoom_fov_time -= Frametime;
2687 if (Zoom_fov_time < 0) {
2688 Zoom_fov_time = 0;
2689 Players[Player_num].flags &= ~PLAYER_FLAGS_ZOOMED;
2690 Render_FOV = D3_DEFAULT_FOV;
2691 }
2692 }
2693}
2694
2695// Zooms in for this weapon
2696void DoZoomEffect(player_weapon *pw, uint8_t clear) {

Callers 1

DoZoomEffectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected