Added MW3 Scripts

This commit is contained in:
InfinityLoader
2023-10-27 03:47:01 -04:00
commit d559c1d414
981 changed files with 539970 additions and 0 deletions

View File

@ -0,0 +1,53 @@
/*******************************************************************
* Decompiled By: Bog
* Decompiled File: vehicle_scripts\_c130.gsc
* Game: Call of Duty: Modern Warfare 3
* Platform: Console
* Function Count: 4
* Decompile Time: 60 ms
* Timestamp: 10/27/2023 2:29:05 AM
*******************************************************************/
//Function Number: 1
main(param_00,param_01,param_02)
{
maps\_vehicle::build_template("c130",param_00,param_01,param_02);
maps\_vehicle::build_localinit(::func_269F);
maps\_vehicle::func_2640("vehicle_ac130_low");
maps\_vehicle::build_deathfx("explosions/large_vehicle_explosion",undefined,"explo_metal_rand");
maps\_vehicle::build_life(999,500,1500);
maps\_vehicle::func_2648("allies");
maps\_vehicle::build_mainturret();
var_03 = maps\_vehicle::func_269C(param_00,param_02);
maps\_vehicle::build_light(var_03,"wingtip_green","tag_light_L_wing","misc/aircraft_light_wingtip_green","running",0);
maps\_vehicle::build_light(var_03,"wingtip_red","tag_light_R_wing","misc/aircraft_light_wingtip_red","running",0.05);
maps\_vehicle::build_light(var_03,"tail_red","tag_light_tail","misc/aircraft_light_white_blink","running",0.05);
maps\_vehicle::build_light(var_03,"white_blink","tag_light_belly","misc/aircraft_light_red_blink","running",1);
}
//Function Number: 2
func_269F()
{
maps\_vehicle::lights_on("running");
self hidepart("tag_25mm");
self hidepart("tag_40mm");
self hidepart("tag_105mm");
}
//Function Number: 3
set_vehicle_anims(param_00)
{
return param_00;
}
//Function Number: 4
setanims()
{
var_00 = [];
for(var_01 = 0;var_01 < 1;var_01++)
{
var_00[var_01] = spawnstruct();
}
return var_00;
}

View File

@ -0,0 +1,42 @@
/*******************************************************************
* Decompiled By: Bog
* Decompiled File: vehicle_scripts\_pavelow_noai.gsc
* Game: Call of Duty: Modern Warfare 3
* Platform: Console
* Function Count: 2
* Decompile Time: 33 ms
* Timestamp: 10/27/2023 2:28:56 AM
*******************************************************************/
//Function Number: 1
main(param_00,param_01,param_02)
{
maps\_vehicle::build_template("pavelow_noai",param_00,param_01,param_02);
maps\_vehicle::build_localinit(::func_269F);
maps\_vehicle::func_2640("vehicle_pavelow");
maps\_vehicle::build_deathfx("explosions/helicopter_explosion_secondary_small","tag_engine_left","pavelow_helicopter_secondary_exp",undefined,undefined,undefined,0,1);
maps\_vehicle::build_deathfx("fire/fire_smoke_trail_L","tag_engine_left","pavelow_helicopter_dying_loop",1,0.05,1,0.5,1);
maps\_vehicle::build_deathfx("explosions/helicopter_explosion_secondary_small","tag_engine_right","pavelow_helicopter_secondary_exp",undefined,undefined,undefined,2.5,1);
maps\_vehicle::build_deathfx("explosions/helicopter_explosion_pavelow",undefined,"pavelow_helicopter_crash",undefined,undefined,undefined,-1,undefined,"stop_crash_loop_sound");
maps\_vehicle::build_rocket_deathfx("explosions/aerial_explosion_pavelow_mp","tag_deathfx","pavelow_helicopter_crash",undefined,undefined,undefined,undefined,1,undefined,0);
maps\_vehicle::func_2647();
maps\_vehicle::build_life(999,500,1500);
maps\_vehicle::func_2648("allies");
maps\_vehicle::build_drive(%bh_rotors,undefined,0);
var_03 = maps\_vehicle::func_269C(param_00,param_02);
maps\_vehicle::build_light(var_03,"cockpit_red_cargo02","tag_light_cargo02","misc/aircraft_light_cockpit_red","interior",0);
maps\_vehicle::build_light(var_03,"cockpit_blue_cockpit01","tag_light_cockpit01","misc/aircraft_light_cockpit_blue","interior",0.1);
maps\_vehicle::build_light(var_03,"white_blink","tag_light_belly","misc/aircraft_light_white_blink","running",0.15);
maps\_vehicle::build_light(var_03,"wingtip_green1","tag_light_L_wing1","misc/aircraft_light_wingtip_green","running",0.3);
maps\_vehicle::build_light(var_03,"wingtip_red1","tag_light_R_wing1","misc/aircraft_light_wingtip_red","running",0.2);
maps\_vehicle::build_light(var_03,"solid_tail","tag_light_tail2","misc/aircraft_light_wingtip_red","running",0.25);
maps\_vehicle::build_light(var_03,"white_blink_tail","tag_light_tail","misc/aircraft_light_red_blink","running",0.05);
}
//Function Number: 2
func_269F()
{
self.var_24E0 = distance(self gettagorigin("tag_origin"),self gettagorigin("tag_ground"));
self.script_badplace = 0;
thread maps\_vehicle::lights_on("running");
}