// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool

main()
{
    maps\mp\mp_zebra_precache::main();
    maps\createart\mp_zebra_art::main();
    maps\mp\mp_zebra_fx::main();
    maps\mp\_load::main();
    maps\mp\_compass::setupminimap( "compass_map_mp_zebra" );
    setdvar( "r_lightGridEnableTweaks", 1 );
    setdvar( "r_lightGridIntensity", 1.33 );
    maps\mp\_utility::setdvar_cg_ng( "r_specularColorScale", 1.7, 10 );
    setdvar( "r_reactiveMotionWindAmplitudeScale", 1 );
    setdvar( "r_reactiveMotionWindAreaScale", 10 );
    setdvar( "r_reactiveMotionWindDir", ( 0.3, -1, 0.3 ) );
    setdvar( "r_reactiveMotionWindFrequencyScale", 1 );
    setdvar( "r_reactiveMotionWindStrength", 20 );
    game["attackers"] = "allies";
    game["defenders"] = "axis";
    tu_fix_door_trigger_positions();
    maps\mp\gametypes\_door::door_system_init( "door_switch" );
}

tu_fix_door_trigger_positions()
{
    var_0 = [ "slide_door", "garage_door" ];

    foreach ( var_2 in var_0 )
    {
        var_3 = getentarray( var_2, "targetname" );

        foreach ( var_5 in var_3 )
        {
            if ( isdefined( var_5.classname ) && var_5.classname == "trigger_multiple" )
            {
                if ( isdefined( var_5.script_parameters ) && issubstr( var_5.script_parameters, "prone_only=true" ) )
                    continue;

                if ( var_2 == "slide_door" )
                {
                    var_5.origin = ( var_5.origin[0] + 4, var_5.origin[1], var_5.origin[2] );
                    continue;
                }

                if ( var_2 == "garage_door" )
                    var_5.origin = ( var_5.origin[0] - 8.5, var_5.origin[1], var_5.origin[2] );
            }
        }
    }
}
