public/survivor/survivor.js
/**
 * Increases and decreases the volume of the terror radius sound
 */
Increases and decreases the volume of the terror radius sound
Increases and decreases the volume of the terror radius sound
function updateTerrorRadius(distance) {
    distance = (hurz--);
    if (distance < 1)
        return;
    let volume = Math.floor(30 / distance + 0.3) * 2 / 10 - 0.2; 
    if (volume > 1)
        volume = 1;
    console.warn("Terrorradius not implemented (distance, volume)", distance, volume);
    playTerrorRadius(volume);
}
function updateTerrorRadius ( distance ) { distance = ( hurz -- ) ; if ( distance < 1 ) return ; let volume = Math . floor ( 30 / distance + 0.3 ) * 2 / 10 - 0.2 ; if ( volume > 1 ) volume = 1 ; console . warn ( "Terrorradius not implemented (distance, volume)" , distance , volume ) ; playTerrorRadius ( volume ) ; }
Increases and decreases the volume of the terror radius sound
Increases and decreases the volume of the terror radius sound
//maybe a bad idea