Subversion-Projekte sthq.gbs

Revision

Revision 154 | Revision 166 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

#include "maps/global_scripts/global_common.scr"
#include "maps/global_scripts/global_debugUtils.scr"
#include "maps/global_scripts/global_math.scr"
#include "maps/global_scripts/global_archetype.scr"
#include "maps/m11/m11l1a_dialog.scr"
#include "maps/m11/m11_groupSpawn.scr"
#include "maps/global_scripts/global_playerLoadout.scr"
#include "maps/m11/m11_beamInAmmo.scr"
#include "maps/global_scripts/global_tricorderbase.scr"
#include "maps/global_scripts/global_tricordermod.scr"

void disrupter6()
{
   //spawn( "projectile/projectile-photonball-voyager.tik", "targetname", "proj6" );
   //spawn( "script_origin", "targetname", "proj6_origin" );
   wait(.5);
   $proj6.bind($proj6_origin);
   $proj6.notsolid();
   $proj6_origin.followpath( $proj6_path);
   wait(2);
   $expl6_1.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl6_2.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl6_3.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   trigger( "$expl6_1");
   wait(.1);
   trigger( "$expl6_2");
   wait(.1);
   trigger( "$expl6_3");
}
void disrupter5()
{
   //spawn( "projectile/projectile-photonball-voyager.tik", "targetname", "proj5" );
  // spawn( "script_origin", "targetname", "proj5_origin" );
   wait(.5);
   $proj5.bind($proj5_origin);
   $proj5.notsolid();
   $proj5_origin.followpath( $proj5_path);
   wait(2);
   $expl5_1.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl5_2.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl5_3.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   trigger( "$expl5_1");
   wait(.1);
   trigger( "$expl5_2");
   wait(.1);
   trigger( "$expl5_3");
}



void disrupter4()
{
   //spawn( "projectile/projectile-photonball-voyager.tik", "targetname", "proj4" );
   //spawn( "script_origin", "targetname", "proj4_origin" );
   wait(.5);
   $proj4.bind($proj4_origin);
   $proj4.notsolid();
   $proj4_origin.followpath( $proj4_path);
   wait(2);
   $expl4_1.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl4_2.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl4_3.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   trigger( "$expl4_1");
   wait(.1);
   trigger( "$expl4_2");
   wait(.1);
   trigger( "$expl4_3");
}



void disrupter3()
{
   //spawn( "projectile/projectile-photonball-voyager.tik", "targetname", "proj3" );
   //spawn( "script_origin", "targetname", "proj3_origin" );
   wait(.5);
   $proj3.bind($proj3_origin);
   $proj3.notsolid();
   $proj3_origin.followpath( $proj3_path);
   wait(2);
   $expl3_1.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl3_2.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl3_3.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   trigger( "$expl3_1");
   wait(.1);
   trigger( "$expl3_2");
   wait(.1);
   trigger( "$expl3_3");
}



void disrupter2()
{
   //spawn( "projectile/projectile-photonball-voyager.tik", "targetname", "proj2" );
   //spawn( "script_origin", "targetname", "proj2_origin" );
   wait(.5);
   $proj2.bind($proj2_origin);
   $proj2.notsolid();
   $proj2_origin.followpath( $proj2_path);
   wait(2);
   $expl2_1.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl2_2.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl2_3.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   trigger( "$expl2_1");
   wait(.1);
   trigger( "$expl2_2");
   wait(.1);
   trigger( "$expl2_3");
}



void disrupter1()
{
   //spawn( "projectile/projectile-photonball-voyager.tik", "targetname", "proj1" );
   //spawn( "script_origin", "targetname", "proj1_origin" );
   wait(.5);
   $proj1.bind($proj1_origin);
   $proj1.notsolid();
   $proj1_origin.followpath( $proj1_path);
   wait(2);
   $expl1_1.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl1_2.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   $expl1_3.doexplosion("fx/fx-explosion-crate-attrex-large.tik");
   trigger( "$expl1_1");
   wait(.1);
   trigger( "$expl1_2");
   wait(.1);
   trigger( "$expl1_3");
}

void show_camera(entity camera_to_use, entity camera_path, float duration_to_wait)
{
   camera_to_use.follow( camera_path );
   cuecamera( camera_to_use );
   wait(.2);
   cam_fadein( 1, 0, 0, 0, 1, 0 );
   wait(duration_to_wait);
   cam_fadeout( 1, 0, 0, 0, 1, 0 );
   wait(1);

}
void main()
{
   globalLoadout_AssignWeapons ( "m11l1a_drull_ruins3" );
   
   cinematic();
   letterbox(.1);
   $world.light_intensity( "lightning", 0 );

   cam_fadeout( .1, 0, 0, 0, 1, 0 );
   
   spawn ( "Camera" , "targetname" , "cam1" );
   spawn ( "Camera" , "targetname" , "cam2" );
   spawn ( "Camera" , "targetname" , "cam3" );
   spawn ( "Camera" , "targetname" , "cam4" );
   spawn ( "Camera" , "targetname" , "cam5" );

   wait ( .05 );
   cam.load("holo2_gate_cam");
   cam.load("holo2_illia_cam");
   cam.load("holo2_klingon_cam");
   cam.load("holo2_illia_close_cam");
   cam.load("holo2_klingon_close_cam");

   wait ( .5);

   $illia.ai_off();
   $klingon1.ai_off();
   $klingon3.ai_off();
   $klingon4.ai_off();
   $klingon5.ai_off();
   $klingon6.ai_off();

   wait(1);

   //   stuffcmd("showmenu we_proudly_present\n");

   // wait(2);

   //  stuffcmd ( "popmenu 0\n" );
   // wait(3);
   stuffcmd("showmenu gbs\n");
   wait(4);
   stuffcmd ( "popmenu 0\n" );

   


   show_camera($cam1, $holo2_gate_cam, 3);
   wait(.5);

   
   show_camera($cam2, $holo2_illia_cam, 3);
   wait(.5);
   show_camera($cam3, $holo2_klingon_cam, 3);
   wait(.5);
   $world.light_lightstyle( "lightning", "azzazaazzzzz", 0 );
   $player.playsound( "sound/environment/nature/thunder3.wav", 0, 1.5, 10000 );

   show_camera($cam4, $holo2_illia_close_cam, 3);
   wait(.5);
   show_camera($cam5, $holo2_klingon_close_cam, 3);
   wait(.5);
   //wait(5);
   triggerentity( $phaser);

   cam_fadein( 1, 0, 0, 0, 1, 0 );

   noncinematic();
   cueplayer ();
   clearletterbox(.1);
   $illia.hide();
   $illia.notsolid();
   $klingon1.ai_on();
   $klingon3.ai_on();
   $klingon4.ai_on();
   $klingon5.ai_on();
   $klingon6.ai_on();
   $klingon1.attack($player);
   $klingon3.attack($player);
   $klingon4.attack($player);
   $klingon5.attack($player);
   $klingon6.attack($player);

   wait(3);
thread disrupter1();
   wait(5);
   thread disrupter2();

   wait(5);
   thread disrupter3();
   wait(5);
   thread disrupter4();
   wait(.5);
   thread disrupter5();
   wait(.5);
   thread disrupter6();
   wait(10);




}