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

#using_animtree("animals_dlc");

main()
{
    var_0 = spawnstruct();
    var_0.interactive_type = "crows_dlc";
    var_0.rig_model = "use_radiant_model";
    var_0.rig_animtree = #animtree;
    var_0.rig_numtags = 2;
    var_0.bird_model["idle"] = "crow_fly";
    var_0.bird_model["fly"] = "crow_fly";
    var_0.bird_animtree = #animtree;
    var_0.topspeed = 300;
    var_0.accn = 75;
    var_0.scareradius = 600;
    var_0.death_effect = loadfx( "fx/props/bird_feather_exp_black" );
    var_0.birdmodel_anims = [];
    var_0.rigmodel_anims = [];
    var_0.birdmodel_anims["idle"][0] = %crow_idle_1;
    var_0.birdmodel_anims["idleweight"][0] = 1;
    var_0.birdmodel_anims["idle"][1] = %crow_idle_2;
    var_0.birdmodel_anims["idleweight"][1] = 0.3;
    var_0.birdmodel_anims["flying"] = %crow_fly;
    var_0.rigmodel_anims["flying"] = %pigeon_flock_fly_loop;
    var_0.rigmodel_anims["takeoff_wire"] = %pigeon_flock_takeoff_wire;
    var_0.rigmodel_anims["land_wire"] = %pigeon_flock_land_wire;
    var_0.rigmodel_anims["takeoff_ground"] = %pigeon_flock_takeoff_ground;
    var_0.rigmodel_anims["land_ground"] = %pigeon_flock_land_ground;
    var_0.rigmodel_anims["takeoff_inpipe"] = %pigeon_flock_takeoff_inpipe;
    var_0.rigmodel_anims["land_inpipe"] = %pigeon_flock_land_inpipe;

    if ( !common_scripts\utility::issp() )
    {
        var_0.birdmodel_anims["idlemp"][0] = "crow_idle_1";
        var_0.birdmodel_anims["idlemp"][1] = "crow_idle_2";
        var_0.birdmodel_anims["flyingmp"] = "crow_fly";
        var_0.rigmodel_anims["flyingmp"] = "pigeon_flock_fly_loop_mp";
        var_0.rigmodel_anims["takeoff_wiremp"] = "pigeon_flock_takeoff_wire_mp";
        var_0.rigmodel_anims["land_wiremp"] = "pigeon_flock_land_wire_mp";
        var_0.rigmodel_anims["takeoff_groundmp"] = "pigeon_flock_takeoff_ground_mp";
        var_0.rigmodel_anims["land_groundmp"] = "pigeon_flock_land_ground_mp";
        var_0.rigmodel_anims["takeoff_inpipemp"] = "pigeon_flock_takeoff_inpipe_mp";
        var_0.rigmodel_anims["land_inpipemp"] = "pigeon_flock_land_inpipe_mp";
    }

    var_0.sounds = [];
    var_0.sounds["takeoff"] = "anml_crow_startle_flyaway";
    var_0.sounds["idle"] = "anml_crow_idle";
    precachemodel( var_0.rig_model );

    foreach ( var_2 in var_0.bird_model )
        precachemodel( var_2 );

    if ( !isdefined( level._interactive ) )
        level._interactive = [];

    level._interactive[var_0.interactive_type] = var_0;
    thread maps\interactive_models\_birds_dlc::birds( var_0 );
}
