home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 April / Gamestar_83_2006-04_dvd.iso / Dema / demowot_english.exe / Script / Source / Chapter2 / MS07-C2L3.sma < prev    next >
Text File  |  2005-03-11  |  44KB  |  1,454 lines

  1. //#define Pofazz(%1) AddSoundMessage("#iMS07_SP0%1#","Sounds\\Game\\Speech\\Mission\\TEMPORARY.wav")
  2. #define Pofazz(%1) AddSoundMessage("#iMS07_SP0%1#","Sounds\\Game\\Speech\\Mission\\MS07_SP0%1.mp3")
  3. //new gTempWav[]="Sounds\\Game\\Speech\\Mission\\TEMPORARY.wav";
  4.  
  5. // TODO: ===============================================================================================
  6. // Write here tasks to be done.
  7.  
  8.  
  9. // DECLARATIONS: =======================================================================================
  10. #include "script.inc"
  11. #include "antiair.inc"
  12. const gConvoyTotal = 3; //the number of convoys controlled
  13. new gConvoyArray[gConvoyTotal][5] = {{0,0,0,0,0},{0,0,0,0,0},{0,0,0,0,0}}; //the actual position of the convoy
  14. new gConvoyNames[gConvoyTotal][25] = {{"sevi"},{"sevi"},{"sevi"}}; //the name basic of the convoy
  15. new gConvoyWPNames[gConvoyTotal][25] = {{"konv"},{"konvok"},{"konvgaz"}}; //the name basic of the convoy waypoints
  16. new gConvoyCount[gConvoyTotal] = {5,5,5}; //the number of the convoy members
  17. new gConvoyWPCount[gConvoyTotal] = {10,16,16}; //the number of the convoy waypoints
  18. new Float:gConvoyStartDelays[gConvoyTotal] = {1.5,0.0,0.0}; //the delay beetween convoy members start
  19. #include "convoycontrol.inc"
  20. // Write here global variable declarations and definitions. All globals should start with letter: 'g'!
  21. new gActConvoy=0;
  22. new gKintSevi=0;
  23. new gMinSevi;
  24. new Float:gReinfTajm;
  25. new Float:gKonvoyHalt;
  26. new Float:gVonatzTimer;
  27. new bool:gElozopalya;
  28. new bool:OdebbDuma=true;
  29.  
  30. new Wagonz[5][166]={{"loco"},{"wagon1"},{"wagon2"},{"wagon3"},{"wagon4"}};
  31.  
  32. //======================================================================================================
  33. public main() // A palya belepesi pontja, helyette a PostGameStart fuggvenyt hasznald
  34.     CommonAKMain();
  35.  
  36. //======================================================================================================
  37. public PostGameStart()
  38. {
  39. // Some must have stuff:
  40.     CommonAKInit();
  41.      new OjjettivaLong[166];
  42.      new OjjettivaShort[166];
  43.  
  44.     switch(GetDifficulty())
  45.     {
  46.         case 0:
  47.         {
  48.             gVonatzTimer=420.0;
  49.             gKonvoyHalt=180.0;
  50.             gReinfTajm=180.0;
  51.             gMinSevi=2;
  52.             OjjettivaLong="#iMS07_PL01A#";
  53.              OjjettivaShort="#iMS07_PS01A#";
  54.  
  55.         }
  56.         case 1,2:
  57.         {
  58.             gVonatzTimer=300.0;
  59.             gKonvoyHalt=120.0;
  60.             gReinfTajm=90.0;
  61.             gMinSevi=3;
  62.             OjjettivaLong="#iMS07_PL01B#";
  63.              OjjettivaShort="#iMS07_PS01B#";
  64.         }
  65.         case 3: 
  66.         {
  67.             gVonatzTimer=210.0;        
  68.             gKonvoyHalt=45.0;
  69.             gReinfTajm=45.0;
  70.             gMinSevi=4;    
  71.             OjjettivaLong="#iMS07_PL01C#";
  72.              OjjettivaShort="#iMS07_PS01C#";
  73.         }
  74.     }
  75.  
  76. // Add objectives:
  77.     new lTmpStr[166];
  78.     Int2Str( gMinSevi, lTmpStr, 66, "" );
  79.  
  80.     AddObjective( "sevroz", OT_PRIMARY, OjjettivaShort, OjjettivaLong, OS_IN_PROGRESS);
  81.     AddObjective( "AAKill", OT_SECONDARY, "#iMS07_SS01#", "#iMS07_SL01#", OS_IN_PROGRESS);
  82.     AddObjective( "Vonatz", OT_HIDDEN, "#iMS07_HS01#", "#iMS07_HL01#", OS_IN_PROGRESS );
  83.     // Add objective related events:
  84.     AddUserEvent( "TeamElimSucceed", UE_TEAMELIM_SUCC );
  85.     // AddUserEvent( "GroupSurviveFailed", UE_GROUP_SURV_FAIL );
  86.     AddUserEvent( "ObjectiveChanged", UE_OBJECTIVE_CHANGED );
  87.     // Additional Mission Objective:
  88.  
  89. // Start doing some things:
  90. //    AddAKEntityEvent( "SzonyegBombazas", ANY_ENTITY, TEST_EVENT );
  91.     IntroControl();
  92. //    AddAKEntityEvent( "SendBigReinf2Playa", ANY_ENTITY, TEST_EVENT );
  93.     gElozopalya=(GetGlobalVariable("gvMS06_OilTankz")==1);
  94.     AddAKEntityEvent( "VonatStart", ANY_ENTITY, TEST_EVENT );
  95.     Haulemall();
  96. }
  97.  
  98. public HolAConvoy()
  99. {
  100.     new i;
  101.     new j;
  102.     new Str[255];
  103.     new TmpStr[255];
  104.     Str="Convoys: #b#";
  105.     for(i=0;i<gConvoyTotal;i++)
  106.     {
  107.         Int2Str( i, TmpStr, 5,"" );
  108.         ConcatString( Str, 255, Str, TmpStr);
  109.         ConcatString( Str, 255, Str, ": " );
  110.         for(j=0;j<5;j++)
  111.         {
  112.             Int2Str( j, TmpStr, 5,"" );
  113.             ConcatString( Str, 255, Str, TmpStr);
  114.             ConcatString( Str, 255, Str, "@" );
  115.             Int2Str( gConvoyArray[i][j], TmpStr, 5,"" );
  116.             ConcatString( Str, 255, Str, TmpStr);
  117.             ConcatString( Str, 255, Str, "; " );                    
  118.         }
  119.         ConcatString( Str, 255, Str, "#b#" );
  120.     }
  121.     SetShortInfo(Str);
  122. }
  123.  
  124. public MapInitiale()
  125. {
  126.     AddAKEntityEvent( "RadioCarDamaged", GetEntity( "radiocar" ), UNIT_DAMAGED );
  127.     HackAntiAirInit();
  128.     AddAKEntityEvent( "SomeEntered", ANY_ENTITY, UNIT_AREA_ENTER );
  129.     AddAKEntityEvent( "SomeHQCaptured", ANY_ENTITY, HQ_TAKEOVER );
  130.     AddTimerEvent( "YouReDaRealNigger", 1.0 );
  131.  
  132.     GiveAirRecon(gPlayerTeam);
  133.     GiveAirStrike(gPlayerTeam);
  134.  
  135.     AddAKEntityEvent( "CheckOurPrimary",  GetEntity( "sevi1" ), UNIT_DIED );
  136.     AddAKEntityEvent( "CheckOurPrimary",  GetEntity( "sevi2" ), UNIT_DIED );
  137.     AddAKEntityEvent( "CheckOurPrimary",  GetEntity( "sevi3" ), UNIT_DIED );
  138.     AddAKEntityEvent( "CheckOurPrimary",  GetEntity( "sevi4" ), UNIT_DIED );
  139.     AddAKEntityEvent( "CheckOurPrimary",  GetEntity( "sevi5" ), UNIT_DIED );
  140.  
  141.     new Iterator:iti=Iterate("antiair")
  142.     while(ItNext(iti))
  143.     {
  144.         AddAKEntityEvent( "AntiAirTeamChanged", ItEntity(iti), UNIT_TEAM_CHANGED );
  145.     }
  146.     ItStop(iti);
  147.  
  148.     iti=Iterate("sevizz");
  149.     while (ItNext(iti))
  150.     {
  151.         MakeUnSelectable(ItEntity(iti));
  152.         MakeNOTMountable(ItEntity(iti));
  153.         AddAKEntityEvent( "MeghalszGeci", ItEntity(iti), UNIT_TEAM_CHANGED );
  154.     }
  155.     ItStop(iti);
  156.     
  157. }
  158.  
  159. public AntiAirTeamChanged()
  160. {
  161.     if(CountLivingMates( "antiair", 1 )==0)
  162.     {
  163.         RemoveEvent( "AntiAirTeamChanged" );
  164.         SzonyegBombazas();
  165.     }
  166. }
  167.  
  168. public RadioCarDamaged(DrID:UndWho)
  169. {
  170.     if(IsAlive(UndWho)&&!IsPlayer( UndWho )&&GetActualHealth( UndWho )<=60)
  171.     {
  172.         RemoveEvent( "RadioCarDamaged" );
  173.         CmdMoveToEnt( UndWho, GetEntity( "seggbe13" ), Q_OVERRIDE, MF_NONE );
  174.     }
  175. }
  176. public SomeHQCaptured(DrID:UndWho)
  177. {
  178.     static IsBridgeKill=true;
  179.     if(UndWho==GetEntity( "hq1" )&&IsPlayer(UndWho)&&IsBridgeKill)
  180.     {
  181.         BridgeKill();
  182.         IsBridgeKill=false;
  183.         AddTimerEvent( "VonatStart", gVonatzTimer, "GameLogic", true);
  184.     }
  185.  
  186.     if(UndWho==GetEntity( "hq2" )&&IsPlayer(UndWho)&&(GetObjectiveState( "Vonatz")== OS_IN_PROGRESS ))
  187.     {
  188.         RemoveEvent( "VonatStart" );
  189.         SetObjectiveState( "Vonatz", OS_COMPLETED );    
  190.     }
  191. }
  192.  
  193. public SomeEntered(DrID:UndWho)
  194. {
  195.     new DrID:UndWhere=GetMsgParamObject();
  196.  
  197.     if(UndWhere==GetEntity( "kifele" )&&IsInSelector( UndWho, "sevizz" ))
  198.     {
  199.         CmdMoveToEnt( UndWho, GetEntity( "konvok15" ), Q_OVERRIDE, MF_DIRECT );
  200.         CmdMoveToEnt( UndWho, GetEntity( "konvok16" ), Q_OVERRIDE, MF_DIRECT );
  201.         UnitCallEvent(UndWho,"KiertSevi");
  202.     }
  203.     
  204.     if(UndWhere==GetEntity( "triggernigger" )&&IsPlayer( UndWho ))
  205.     {
  206.         DeActivateEntity( UndWhere );       
  207.         
  208.         CmdMoveToEnt( GetEntity( "reinf_pziv1" ), GetEntity( "tankza" ), Q_OVERRIDE, MF_ATTACKMOVE );
  209.         CmdMoveToEnt( GetEntity( "reinf_pziv2" ), GetEntity( "tankza" ), Q_OVERRIDE, MF_ATTACKMOVE );
  210.         CmdMoveToEnt( GetEntity( "reinf_pant1" ), GetEntity( "tankza" ), Q_OVERRIDE, MF_ATTACKMOVE );
  211.         CmdMoveToEnt( GetEntity( "reinf_arti1" ), GetEntity( "tankza" ), Q_OVERRIDE, MF_ATTACKMOVE );
  212.         CmdMoveToEnt( GetEntity( "reinf_arti2" ), GetEntity( "tankza" ), Q_OVERRIDE, MF_ATTACKMOVE );
  213.  
  214.         CmdMoveToEnt( GetEntity( "reinf_pziv1" ), GetEntity( "pziv_ok1" ), Q_ENQUEUE, MF_ATTACKMOVE );
  215.         CmdMoveToEnt( GetEntity( "reinf_pziv2" ), GetEntity( "pziv_ok2" ), Q_ENQUEUE, MF_ATTACKMOVE );
  216.         CmdMoveToEnt( GetEntity( "reinf_pant1" ), GetEntity( "pant_ok1" ), Q_ENQUEUE, MF_ATTACKMOVE );
  217.         CmdMoveToEnt( GetEntity( "reinf_arti1" ), GetEntity( "arti1" ), Q_ENQUEUE, MF_ATTACKMOVE );
  218.         CmdMoveToEnt( GetEntity( "reinf_arti2" ), GetEntity( "arti2" ), Q_ENQUEUE, MF_ATTACKMOVE );
  219.         
  220.         CmdTurnToEnt( GetEntity( "reinf_pziv1" ), GetEntity( "dasbridge" ) , Q_ENQUEUE);
  221.         CmdTurnToEnt( GetEntity( "reinf_pziv2" ), GetEntity( "dasbridge" ) , Q_ENQUEUE);
  222.         CmdTurnToEnt( GetEntity( "reinf_pant1" ), GetEntity( "dasbridge" ) , Q_ENQUEUE);
  223.         CmdTurnToEnt( GetEntity( "reinf_arti1" ), GetEntity( "dasbridge" ) , Q_ENQUEUE);
  224.         CmdTurnToEnt( GetEntity( "reinf_arti2" ), GetEntity( "dasbridge" ) , Q_ENQUEUE);
  225.         
  226.         CmdDigin( GetEntity( "reinf_pziv1" ), Q_ENQUEUE);
  227.         CmdDigin( GetEntity( "reinf_pziv2" ), Q_ENQUEUE);
  228.         CmdDigin( GetEntity( "reinf_pant1" ), Q_ENQUEUE);
  229.     }    
  230. }
  231.  
  232.  
  233. public BridgeKill()
  234. {
  235.     RemoveEvent( "BridgeKill" );
  236.     CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "robbantokide" ), Q_OVERRIDE, MF_NONE );
  237.     UnitCallEvent(GetEntity( "robbanterz" ), "OttARobbantoz");
  238. }
  239.  
  240. public OttARobbantoz(DrID:UndWho)
  241. {
  242.     RemoveEvent( "OttARobbantoz" );
  243.     CmdUnmount( GetEntity( "geci1" ), Q_OVERRIDE );
  244.     CmdUnmount( GetEntity( "geci2" ), Q_OVERRIDE );
  245.     CmdDetonate(GetEntity( "geci1" ), Q_ENQUEUE, GetEntity( "dasbridge" ));
  246.     CmdDetonate(GetEntity( "geci2" ), Q_ENQUEUE, GetEntity( "dasbridge" ));
  247.     CmdMount( GetEntity( "geci1" ), Q_ENQUEUE, GetEntity( "robbanterz" ) );
  248.     CmdMount( GetEntity( "geci2" ), Q_ENQUEUE, GetEntity( "robbanterz" ) );
  249.     AddAKEntityEvent( "GeciMounted", GetEntity( "geci1" ), UNIT_MOUNTED );    
  250.     AddAKEntityEvent( "GeciMounted", GetEntity( "geci2" ), UNIT_MOUNTED );    
  251.     AddAKEntityEvent( "GeciMounted", GetEntity( "geci1" ), UNIT_DIED );    
  252.     AddAKEntityEvent( "GeciMounted", GetEntity( "geci2" ), UNIT_DIED );    
  253.     AddAKEntityEvent( "NoMoreBridge",  GetEntity( "dasbridge" ), UNIT_DIED );
  254. }
  255.  
  256. public GeciMounted(DrID:UndWho)
  257. {
  258.     if((!IsAlive(GetEntity( "geci1" ))||IsMountedIn(GetEntity( "geci1" ))==GetEntity( "robbanterz" ))
  259.      &&(!IsAlive(GetEntity( "geci2" ))||IsMountedIn(GetEntity( "geci2" ))==GetEntity( "robbanterz" )))
  260.      {
  261.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvok5" ), Q_OVERRIDE, MF_OVERRUN );
  262.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvok6" ), Q_ENQUEUE, MF_OVERRUN );
  263.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvok7" ), Q_ENQUEUE, MF_OVERRUN );
  264.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvok8" ), Q_ENQUEUE, MF_OVERRUN );
  265.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvok9" ), Q_ENQUEUE, MF_OVERRUN );
  266.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvok10" ), Q_ENQUEUE, MF_OVERRUN );
  267.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvgaz11" ), Q_ENQUEUE, MF_OVERRUN );
  268.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvgaz10" ), Q_ENQUEUE, MF_OVERRUN );
  269.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "konvgaz9" ), Q_ENQUEUE, MF_OVERRUN );
  270.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "tankza" ), Q_ENQUEUE, MF_OVERRUN );
  271.          CmdMoveToEnt( GetEntity( "robbanterz" ), GetEntity( "tankzd" ), Q_ENQUEUE, MF_DIRECT );
  272.          UnitCallEvent(GetEntity( "robbanterz" ), "DeactivateMePls");
  273.      }
  274. }
  275.  
  276. public NoMoreBridge()
  277. {
  278.     RemoveEvent( "NoMoreBridge" );
  279.     RemoveEvent( "YouReDaRealNigger" );
  280.     if(gActConvoy==1)
  281.     {
  282.         ResetConvoy(0);
  283.         ResetConvoy(1);
  284.         ResetConvoy(2);
  285.         gActConvoy=2;
  286.         RemoveEvent( "ContinueConvoy" );
  287.         BridgeBoomCutScene();        
  288.         ConvoyStop(1);
  289.     }
  290.     CmdDigout( GetEntity( "reinf_pziv1" ), Q_OVERRIDE);
  291.     CmdDigout( GetEntity( "reinf_pziv2" ), Q_OVERRIDE);
  292.     CmdDigout( GetEntity( "reinf_pant1" ), Q_OVERRIDE);
  293.     CmdMoveToEnt( GetEntity( "reinf_pziv1" ), GetEntity( "pziv_gaz1" ), Q_ENQUEUE, MF_ATTACKMOVE );
  294.     CmdMoveToEnt( GetEntity( "reinf_pziv2" ), GetEntity( "pziv_gaz2" ), Q_ENQUEUE, MF_ATTACKMOVE );
  295.     CmdMoveToEnt( GetEntity( "reinf_pant1" ), GetEntity( "pant_gaz1" ), Q_ENQUEUE, MF_ATTACKMOVE );
  296.     CmdTurnToEnt( GetEntity( "reinf_pziv1" ), GetEntity( "dasbridge" ) , Q_ENQUEUE);
  297.     CmdTurnToEnt( GetEntity( "reinf_pziv2" ), GetEntity( "dasbridge" ) , Q_ENQUEUE);
  298.     CmdTurnToEnt( GetEntity( "reinf_pant1" ), GetEntity( "dasbridge" ) , Q_ENQUEUE);
  299.     CmdDigin( GetEntity( "reinf_pziv1" ), Q_ENQUEUE);
  300.     CmdDigin( GetEntity( "reinf_pziv2" ), Q_ENQUEUE);
  301.     CmdDigin( GetEntity( "reinf_pant1" ), Q_ENQUEUE);
  302.     DeActivateEntity( GetEntity( "nigger2" ));
  303. }
  304.  
  305. //===========================================================================================INTRO=START
  306. public IntroControl()
  307. {
  308.     RemoveEvent( "IntroControl" );
  309.     static IntroControlla=0;
  310.     static lFowBacaName[166];
  311.     switch(IntroControlla)
  312.     {
  313.         case 0:
  314.         {
  315.             SetCutScene(true,true,true);
  316.             FadeOut(1.0);
  317.             TeleportCameraToEnt(GetEntity( "sspanzer" ));
  318.             CameraSet(15.0,45.0, 35.0, true)
  319.             AddTimerEvent( "IntroGermanz", 1.0, "GameLogic", true );
  320.             new DrID:FowBac=CreateFOWBtoEntity(GetEntity( "luftide" ));
  321.             GetPropertyString( FowBac, "StringID", 166, lFowBacaName );
  322.         }
  323.         case 1:
  324.         {
  325.             CmdUnmount( GetEntity( "vonluck" ), Q_OVERRIDE );
  326.             CmdUnmount( GetEntity( "luftwaffe" ), Q_OVERRIDE );
  327.             AddTimerEvent( "IntroSevizz", 1.0, "GameLogic", true );
  328.             FlakHelyre();
  329.             SetPropertyInt( GetEntity( lFowBacaName ), "Team", 0 );
  330.         }
  331.         case 2:
  332.         {
  333.             DeActivateEntity( GetEntity( "vonluck" ));
  334.             HideEntity( GetEntity( "vonluck" ) );
  335.             DeActivateEntity( GetEntity( "luftwaffe" ));
  336.             HideEntity( GetEntity( "luftwaffe" ) );
  337.             MapInitiale();
  338.             SetCutScene(false);
  339.             if(gElozopalya)
  340.                 AddTimerEvent( "GimmeMoreAir", 5.0, "GameLogic", true);
  341.         }
  342.     }
  343.     IntroControlla++;
  344. }
  345.  
  346. public GimmeMoreAir()
  347. {
  348.     RemoveEvent( "GimmeMoreAir" );
  349.     
  350.     Pofazz(07);
  351.     
  352.     GiveAirRecon(gPlayerTeam);
  353.     GiveAirRecon(gPlayerTeam);
  354.     GiveAirRecon(gPlayerTeam);
  355.     
  356.     GiveAirStrike(gPlayerTeam);
  357.     GiveAirStrike(gPlayerTeam);
  358.     GiveAirStrike(gPlayerTeam);    
  359. }
  360.  
  361. public FlakHelyre()
  362. {
  363.     new Flakz[4][10]={{"flak1"},{"flak2"},{"flak3"},{"flak4"}};
  364.     new FlakzPre[4][20]={{"flak1preplace"},{"flak2preplace"},{"flak3preplace"},{"flak4preplace"}};
  365.     new FlakzPlace[4][20]={{"flak1place"},{"flak2place"},{"flak3place"},{"flak4place"}};
  366.     new cik;
  367.     new DrID:AktEnt;
  368.     for(cik=0;cik<4;cik++)
  369.     {
  370.         AktEnt=GetEntity( Flakz[cik] )
  371.         if(AktEnt!=DrID:0)
  372.         {
  373.             CmdMoveToEnt( AktEnt, GetEntity( FlakzPre[cik] ), Q_OVERRIDE, MF_TELEPORT );
  374.             CmdMoveToEnt( AktEnt, GetEntity( FlakzPlace[cik] ), Q_ENQUEUE, MF_DIRECT );
  375.             CmdDigin(AktEnt, Q_ENQUEUE);
  376.         }
  377.     }
  378. }
  379.  
  380. //--NEMETZ--
  381. public IntroGermanz()
  382. {
  383.     RemoveEvent( "IntroGermanz" );
  384.     FadeIn(2.5);
  385.     CmdMoveToEnt( GetEntity( "sspanzer" ), GetEntity( "sspanzide" ), Q_OVERRIDE, MF_NONE );
  386.     CameraFollow( GetEntity( "sspanzer" ) );
  387.     UnitCallEvent(GetEntity( "sspanzer" ), "PanzerOtt");
  388.     
  389. }
  390.  
  391. public PanzerOtt(DrID:UndWho)
  392. {
  393.     RemoveEvent( "PanzerOtt" );
  394.     CmdSetMS( GetEntity( "vonluck" ), Q_OVERRIDE, MS_WALK );
  395.     CmdMoveToEnt( GetEntity( "vonluck" ), UndWho, Q_ENQUEUE, MF_TELEPORT );
  396.     CmdTurnToEnt( GetEntity( "vonluck" ), GetEntity( "luftide" ), Q_ENQUEUE, TF_TELEPORT );
  397.     CmdMoveToEnt( GetEntity( "vonluck" ), GetEntity( "vonluck" ), Q_ENQUEUE, MF_DIRECT );
  398.     
  399.     CmdMoveToEnt( GetEntity( "luftwaffe" ), GetEntity( "luftide" ), Q_OVERRIDE, MF_TELEPORT );
  400.     CmdTurnToEnt( GetEntity( "luftwaffe" ), GetEntity( "sspanzer" ), Q_ENQUEUE, TF_TELEPORT );
  401.     CmdMoveToEnt( GetEntity( "luftwaffe" ), GetEntity( "luftwaffe" ), Q_ENQUEUE, MF_DIRECT );
  402.     UnitCallEvent(GetEntity( "luftwaffe" ), "LuftiOtt");
  403.     AddTimerEvent( "RefreshPicsafejz", 0.1, "GameLogic", true );
  404. }
  405.  
  406. public RefreshPicsafejz()
  407. {
  408.     static bool:Lofasz=true;
  409.     if(Lofasz)
  410.     {
  411.         SetPropertyInt(GetComponent( GetEntity( "luftwaffe" ) ,"cHumanController"), "TextureStatus",1);
  412.         SetPropertyInt(GetComponent( GetEntity( "vonluck" ) ,"cHumanController"), "TextureStatus",1);
  413.         Lofasz=false;
  414.     }
  415.     else
  416.     {
  417.         ShowEntity( GetEntity( "vonluck" ) );
  418.         SetPropertyInt( GetEntity( "vonluck" ), "Team", 2 );
  419.         SetPropertyInt( GetEntity( "vonluck" ), "Team", 1 );
  420.         ShowEntity( GetEntity( "luftwaffe" ) );
  421.         SetPropertyInt( GetEntity( "luftwaffe" ), "Team", 2 );
  422.         SetPropertyInt( GetEntity( "luftwaffe" ), "Team", 1 );
  423.         RemoveEvent( "RefreshPicsafejz" );
  424.         RefreshFOW();
  425.         CameraFollow(GetEntity( "vonluck" ));
  426.         AddToGroup( "Talkazz", GetEntity( "luftwaffe" ) );
  427.         AddToGroup( "Talkazz", GetEntity( "vonluck" ) );
  428.     }
  429. }
  430.  
  431. public LuftiOtt(DrID:UndWho)
  432. {
  433.     RemoveEvent( "LuftiOtt" );
  434.     RefreshFOW();
  435.     IntroGermanTalk();
  436. }
  437.  
  438. public IntroGermanTalk()
  439. {
  440.     RefreshFOW();
  441.     static IGT=0;
  442.     switch(IGT)
  443.     {
  444.         case 0:
  445.         {
  446.             CameraSpeed(-2.0, 1.0, 1.0, 2.0);
  447.             CameraSet(-125.0,35.0, 8.0, false);
  448.             CmdTurnToEnt( GetEntity( "vonluck" ), GetEntity( "luftwaffe" ), Q_ENQUEUE);
  449.             CmdTurnToEnt( GetEntity( "luftwaffe" ), GetEntity( "vonluck" ), Q_ENQUEUE);
  450.             Pofazz(01A);
  451.             AddAKEntityEvent( "IntroGermanTalk", ANY_ENTITY, MESSAGE_END );
  452.         }
  453.         case 1:
  454.         {
  455.             CameraSpeed(-2.0, 1.5, 1.5, 2.5);
  456.             Pofazz(01B);
  457.         }
  458.         case 2:
  459.         {
  460.             Pofazz(01C);
  461.         }
  462.         case 3:
  463.         {
  464.             Pofazz(01D);
  465.         }
  466.         case 4:
  467.         {
  468.             Pofazz(01E);
  469.         }
  470.         case 5:
  471.         {
  472.             RemoveEvent( "IntroGermanTalk" );
  473.             CmdTurnToEnt( GetEntity( "luftwaffe" ), GetEntity( "luftide" ), Q_OVERRIDE );
  474.             CmdMoveToEnt( GetEntity( "luftwaffe" ), GetEntity( "luftide" ), Q_ENQUEUE, MF_DIRECT );
  475.             AddTimerEvent( "IntroGermanTalk", 1.0, "GameLogic", true );
  476.         }
  477.         case 6:
  478.         {
  479.             SetPropertyInt(GetComponent( GetEntity( "vonluck" ) ,"cHumanController"), "TextureStatus",0);
  480.             PlayAnim(GetEntity( "vonluck" ), "AIM");
  481.             RemoveEvent( "IntroGermanTalk" );
  482.             CmdStop(GetEntity( "luftwaffe" ) , Q_OVERRIDE );
  483.             Pofazz(01F);
  484.             AddAKEntityEvent( "IntroGermanTalk", ANY_ENTITY, MESSAGE_END );
  485.             IGT++;
  486.         }
  487.         case 8:
  488.         {
  489.             CmdTurnToEnt( GetEntity( "luftwaffe" ), GetEntity( "vonluck" ), Q_OVERRIDE);
  490.             Pofazz(01G);
  491.         }
  492.         case 9:
  493.         {        
  494.             CmdTurnToEnt( GetEntity( "vonluck" ), GetEntity( "luftwaffe" ), Q_OVERRIDE);
  495.             Pofazz(01H);
  496.         }
  497.         case 10:
  498.         {
  499.             ShowWeapon(GetEntity( "vonluck" ),false);
  500.             Pofazz(01I);
  501.         }
  502.         case 11:
  503.         {
  504.             RemoveEvent( "IntroGermanTalk" );
  505.             CmdSetMS( GetEntity( "vonluck" ), Q_OVERRIDE, MS_RUN );
  506.             CmdMount(  GetEntity( "vonluck" ), Q_OVERRIDE, GetEntity( "sspanzer" ) );
  507.             AddAKEntityEvent( "IntroGermanTalk", GetEntity( "vonluck" ), UNIT_MOUNTED );
  508.         }
  509.         case 12:
  510.         {
  511.             CameraSet(-15.0,45.0, 17.0, false)
  512.             SetCameraZoomSpeed(2.0);
  513.             CameraFollow( DrID:0 );
  514.             CmdMoveToEnt( GetEntity( "luftwaffe" ), GetEntity( "luftide" ), Q_ENQUEUE, MF_DIRECT );
  515.             CmdMount( GetEntity( "luftwaffe" ), Q_ENQUEUE, GetEntity( "radiotent" ) );
  516.             RemoveEvent( "IntroGermanTalk" );
  517.             CmdMoveToEnt( GetEntity( "sspanzer" ) , GetEntity( "odebb" ), Q_OVERRIDE, MF_NONE );
  518.             CmdMoveToEnt( GetEntity( "sspanzer" ) , GetEntity( "nedontsoszlop" ), Q_ENQUEUE, MF_NONE );
  519.             CmdMoveToEnt( GetEntity( "sspanzer" ) , GetEntity( "hidinnena" ), Q_ENQUEUE, MF_NONE );
  520.             CmdMoveToEnt( GetEntity( "sspanzer" ) , GetEntity( "hidinnend" ), Q_ENQUEUE, MF_DIRECT );
  521.             UnitCallEvent(GetEntity( "sspanzer" ), "DeactMe", Q_ENQUEUE, 666 );
  522.             AddTimerEvent( "IntroControl", 15.0, "GameLogic" , true);        
  523.             FadeOut(13.0);
  524.         }
  525.     }
  526.     IGT++;
  527. }
  528.  
  529. public DeactMe(DrID:UndWho)
  530. {
  531.     RemoveEntityEvent("DeactMe", UndWho);
  532.     DeActivateEntity( UndWho );
  533. }
  534.  
  535. //--SHEVIZZ--
  536. public IntroSevizz()
  537. {
  538.     ResetCameraSpeed();
  539.      RemoveEvent( "IntroSevizz" );
  540.     FadeIn(2.5);
  541.     new Float:SeviSpeed;
  542.     switch(GetDifficulty())
  543.     {
  544.         case 0:
  545.             SeviSpeed=5.5;
  546.         case 1,2:
  547.             SeviSpeed=7.0;
  548.         case 3:
  549.             SeviSpeed=8.5;        
  550.     }
  551.     SetSpeedInSelector( "sevizz", SeviSpeed);
  552.     CameraSet(10.0,75.0, 35.0)
  553.     CameraSet(30.0,75.0, 27.0, false)
  554.     CameraFollow( GetEntity( "sevi2" ) );
  555.     TeleportCameraToEnt(GetEntity( "introstop" ));
  556.     FormationMoveToEnt("sevizz", GetEntity( "introstop" ), Q_OVERRIDE, MF_DIRECT);
  557.     UnitCallEvent(GetEntity( "sevi1" ), "SeviMegallt", Q_ENQUEUE);
  558. }
  559.  
  560. public SeviMegallt(DrID:UndWho)
  561. {
  562.     new Iterator:iti=Iterate("sevizz");
  563.     while(ItNext(iti))
  564.     {
  565.         DeActivateEntity( ItEntity(iti) );
  566.     }
  567.     ItStop(iti);
  568.     ActivateEntity( GetEntity( "sevi1" ));
  569.     RemoveEvent( "SeviMegallt" );
  570.     CmdUnmount( GetEntity( "offiszer" ), Q_OVERRIDE );
  571.     CameraFollow( GetEntity( "offiszer" ) );    
  572.     CameraSet(45.0,55.0, 15.0, true)
  573.     CameraSet(75.0,55.0, 15.0, false)
  574.     CmdMoveToEnt( GetEntity( "offiszer" ), GetEntity( "introoffiszide" ), Q_ENQUEUE, MF_NONE );
  575.     UnitCallEvent(GetEntity( "offiszer" ), "OdaertOffiszer", Q_ENQUEUE);
  576. }
  577.  
  578. public OdaertOffiszer()
  579. {
  580.     static OffiszaDuma=0;
  581.     switch(OffiszaDuma)
  582.     {
  583.         case 0:
  584.         {
  585.             RemoveEvent( "OdaertOffiszer" );
  586.             CmdTurnToEnt( GetEntity( "offiszer" ), GetEntity( "offiszer2" ), Q_OVERRIDE );
  587.             CmdTurnToEnt( GetEntity( "offiszer2" ), GetEntity( "offiszer" ), Q_OVERRIDE );
  588.             Pofazz(02A);
  589.             AddAKEntityEvent( "OdaertOffiszer", ANY_ENTITY, MESSAGE_END );
  590.         }
  591.         case 1:
  592.         {
  593.             Pofazz(02B);        
  594.         }
  595.         case 2:
  596.         {
  597.             Pofazz(02C);        
  598.         }
  599.         case 3:
  600.         {
  601.             Pofazz(02D);        
  602.         }
  603.         case 4:
  604.         {
  605.             Pofazz(02E);        
  606.         }
  607.         case 5:
  608.         {
  609.             Pofazz(02F);        
  610.         }
  611.         case 6:
  612.         {
  613.             Pofazz(02G);
  614.         }
  615.         case 7:
  616.         {
  617.             RemoveEvent( "OdaertOffiszer" );
  618.             AddTimerEvent( "OffiszerDumaBefejezve",2.0, "GameLogic", true);
  619.         }
  620.     }
  621.     OffiszaDuma++;
  622. }
  623.  
  624. public OffiszerDumaBefejezve()
  625. {
  626.     RemoveEvent( "OffiszerDumaBefejezve" );
  627.     CmdMount( GetEntity( "offiszer" ),Q_OVERRIDE, GetEntity( "sevi1" ));
  628.     CameraFollow( GetEntity( "offiszer2" ) );
  629.     CmdMount( GetEntity( "offiszer2" ),Q_OVERRIDE, GetEntity( "dzsambo" ));
  630.     AddAKEntityEvent( "MehetAKonvoj", GetEntity( "offiszer" ), UNIT_MOUNTED );
  631. }
  632.  
  633. public MehetAKonvoj()
  634. {
  635.     RemoveEvent( "MehetAKonvoj" );
  636.     CameraFollow( DrID:0 );
  637.     IntroControl();
  638.     ResetCameraSpeed(); 
  639.     CameraSet(0.0,45.0, 45.0, false)
  640.  
  641.     AddTimerEvent( "IndujjKonvoj", Float:(gKonvoyHalt*2.0), "GameLogic", true );
  642. }
  643.  
  644. public IndujjKonvoj()
  645. {
  646.     RemoveEvent( "IndujjKonvoj" );
  647.     new Iterator:iti=Iterate("sevizz");
  648.     while(ItNext(iti))
  649.     {
  650.         ActivateEntity( ItEntity(iti) );
  651.     }
  652.     ItStop(iti);
  653.     SetSpeedInSelector( "sevizz", 5.0 );
  654.     ConvoyGo(0);
  655.  
  656. //    AddTimerEvent( "HolAConvoy", 0.5, "GameLogic", true);
  657.  
  658.     iti=Iterate("sevizz");
  659.     while (ItNext(iti))
  660.     {
  661.         AddAKEntityEvent( "SeviAreabanVan", ItEntity(iti), UNIT_AREA_ENTER );
  662.         AddAKEntityEvent( "SeviEnemitLatott", ItEntity(iti), UNIT_ENEMY_SEEN );
  663.     }
  664.     ItStop(iti);
  665.  
  666. }
  667. //===========================================================================================INTRO===END
  668. //=======BEGINING=OF=OTHER IN GAME CUTSCENES=================================
  669. public BridgeBoomCutScene()
  670. {
  671.     static BBC=0;
  672.     switch(BBC)
  673.     {
  674.         case 0:
  675.         {
  676.             RemoveEvent( "BridgeBoomCutScene" );
  677.             CameraSet(15.0, 45.0, 15.0, true)        
  678.             CameraSpeed( -2.0, 2.0, -2.0, 3.0)
  679.             CameraSet(45.0, 45.0, 15.0, false)        
  680.             SetCutScene(true);
  681.             TeleportCameraToEnt( GetEntity( "dasbridge" ));
  682.             Pofazz(03A);
  683.             AddAKEntityEvent( "BridgeBoomCutScene", ANY_ENTITY, MESSAGE_END );
  684.         }
  685.         case 1:
  686.         {
  687.             Pofazz(03B);        
  688.         }
  689.         case 2:
  690.         {
  691.             ResetCameraSpeed();
  692.             CameraSet(95.0, 45.0, 45.0, false);
  693.             MoveCameraToEnt( GetEntity( "seggbe11" ));
  694.             Pofazz(03C);        
  695.         }
  696.         case 3:
  697.         {
  698.             new DrID:EztMuta;//seggbe7 legkozelebbi player vehicle
  699.             EztMuta=GetNearestEntity(GetEntity( "seggbe7" ),"SelectorTeam2", true, "cVehicle");
  700.             if(EztMuta==DrID:0)
  701.                 EztMuta=GetEntity( "seggbe7" );
  702.             CameraSet(2.0, 45.0, 45.0, true);
  703.             TeleportCameraToEnt(EztMuta);
  704.             Pofazz(03D);        
  705.         }
  706.         case 4:
  707.         {
  708.             Pofazz(03E);        
  709.         }
  710.         case 5:
  711.         {
  712.             Pofazz(03F);        
  713.         }
  714.         case 6:
  715.         {
  716.             Pofazz(03G);        
  717.         }
  718.         case 7:
  719.         {
  720.             AddTimerEvent( "ContinueConvoy", Float:(gKonvoyHalt*3.0), "GameLogic", true );
  721.             SetCutScene(false);
  722.             RemoveEvent( "BridgeBoomCutScene" );        
  723.         }
  724.     }
  725.     BBC++;
  726. }
  727.  
  728. //----VONATOS----
  729. public VonatOdakint(DrID:Vonat)
  730. {
  731.     new DrID:Hova=GetMsgParamObject();
  732.     static Elso=true;
  733.     if(Hova==GetEntity( "vonatodakint" ))
  734.     {
  735.         DeActivateEntity( Vonat );
  736.         if(Elso)
  737.         {
  738.             SetPropertyInt( GetEntity( "vonatbacon" ), "Team", 0);
  739.             SetCutScene(false);
  740.             CamPosRestore();      
  741.             Elso=false;
  742.         }
  743.     }
  744. }
  745.  
  746. public Haulemall()
  747. {
  748.     static Hauler=0;
  749. //    ShowShortMessageP1( "Haulemall: %d", Hauler );
  750.     if(Hauler==0)
  751.     {
  752.         new cik;
  753.         for(cik=0;cik<5;cik++)
  754.         {
  755.             ActivateEntity( GetEntity( Wagonz[cik] ));    
  756.             ShowEntity( GetEntity( Wagonz[cik] ));
  757.         }
  758.     }
  759.     CmdHaul(GetEntity( Wagonz[3-Hauler] ), Q_OVERRIDE, GetEntity( Wagonz[4-Hauler] ));
  760.     switch(Hauler)
  761.     {
  762.         case 0:
  763.         {
  764.             RemoveEvent( "Haulemall" );
  765.             AddTimerEvent( "Haulemall", 0.5, "GameLogic", true);
  766.         }
  767.         case 3:
  768.         {
  769.             new cik;
  770.             for(cik=0;cik<5;cik++)
  771.             {
  772.                 DeActivateEntity( GetEntity( Wagonz[cik] ));    
  773.                 HideEntity( GetEntity( Wagonz[cik] ));
  774.             }
  775.             RemoveEvent( "Haulemall" );
  776.         }    
  777.     }
  778.     Hauler++;
  779. }
  780.  
  781. public VonatStart()
  782. {
  783.     RemoveEvent( "VonatStart");
  784.     new cik;
  785.     for(cik=0;cik<5;cik++)
  786.     {
  787.         ActivateEntity( GetEntity( Wagonz[cik] ));    
  788.         ShowEntity( GetEntity( Wagonz[cik] ));
  789.         MakeInvulnerable(GetEntity( Wagonz[cik] ));
  790.     }
  791.     MoveForward(GetEntity( Wagonz[0] ), 666.0, _, MF_DIRECT);
  792.     AddAKEntityEvent( "VonyitAreaban", GetEntity(Wagonz[0]), UNIT_AREA_ENTER );
  793. }
  794.  
  795. public VonyitAreaban(DrID:Vonat,DrID:Zarea)
  796. {
  797.     if(Zarea==GetEntity( "vonatintrostart" ))//vonatos intro start
  798.     {
  799.         CamPosStore();
  800.         SetCutScene(true,_,false);    
  801.         SetPropertyInt( GetEntity( "vonatbacon" ), "Team", gPlayerTeam );
  802.         TeleportCameraToEnt(GetEntity( "vonatcam" ));
  803.         CameraSet(50.0, 45.0, 75.0, true);
  804.         CameraSpeed(2.0, 2.0, 2.0, -2.0);
  805.         CameraSet(-125.0, 65.0, 35.0, false);
  806.     }
  807.     if(Zarea==GetEntity( "vonatarea" ))
  808.     {
  809.         CmdStop( GetEntity( Wagonz[0] ),Q_OVERRIDE );
  810.         AddAKEntityEvent( "Lecsereles", GetEntity( Wagonz[0] ), UNIT_STOPPED );    
  811.     }
  812.     if(Zarea==GetEntity( "vonatodakint" ))//vonatosintroend
  813.     {
  814.         AddTimerEvent( "VonatKintVan", 5.0, "GameLogic", true);
  815.         SetCutScene(false,_,false);
  816.         ResetCameraSpeed();  
  817.         CamPosRestore();  
  818.         SetObjectiveState( "Vonatz", OS_FAILED );
  819.         SetPropertyInt( GetEntity( "vonatbacon" ), "Team", 0 );
  820.     }
  821. }
  822.  
  823. public VonatKintVan()
  824. {
  825.     new cik;
  826.     for(cik=0;cik<5;cik++)
  827.     {
  828.         DeActivateEntity( GetEntity( Wagonz[cik] ));    
  829.         HideEntity( GetEntity( Wagonz[cik] ));
  830.     }
  831. }
  832. public Lecsereles()
  833. {    
  834.     RemoveEvent( "Lecsereles" );
  835.     new DrID:DasVagon
  836.     static bool:elso=true;
  837.     if(elso)
  838.     {
  839.         DasVagon=GetEntity( Wagonz[1]);
  840.         elso=false;
  841.     }
  842.     else
  843.     {
  844.         DasVagon=GetEntity( Wagonz[2]);    
  845.     }
  846.     Mittomen(DasVagon);
  847. }
  848.  
  849. public FloorHelyre()
  850. {
  851.     RemoveEvent( "FloorHelyre" );
  852.     SetPropertyVec3( GetEntity( "wagonfloor" ), "Pos", Float:{0.0,0.0,0.0} );
  853.     new Iterator:iti=Iterate("kisvasut");
  854.     while(ItNext(iti))
  855.     {
  856.         ActivateEntity( ItEntity(iti) );
  857.         SetPropertyFloat( ItEntity(iti), "RelativeZ", 0.0 );
  858.     }
  859.     ItStop(iti);
  860.     Vonatelore();
  861. }
  862.  
  863. public Mittomen(DrID:ZieVonat)
  864. {
  865.     new Float:VagonDir;
  866.     new Float:lTmpVec3[vec3];
  867.     new DrID:Tank1;
  868.     new DrID:Tank2;
  869.     new Float:UjPozicio[vec3];
  870.     
  871.     PlayAnim(ZieVonat, "OFF");
  872.     GetPropertyVec3( ZieVonat, "LogicalPos_", lTmpVec3);
  873.     VagonDir=GetEntityDir( ZieVonat,DB_X_AXIS )
  874.     UjPozicio[vec3:x]=3.163;//3.463
  875.     UjPozicio[vec3:y]=0.0;
  876.     UjPozicio[vec3:z]=1.121;
  877.     RotateVec2(UjPozicio,VagonDir);
  878.     AddVec3( UjPozicio, lTmpVec3, UjPozicio );
  879.     SetPropertyVec3( GetEntity( "wagonfloor" ), "Pos", lTmpVec3 );
  880.     SetPropertyFloat( ZieVonat, "RelativeZ", -1.15 );
  881.  
  882.     Tank1=    CreateEntity( "ax_PzIVG", UjPozicio, VagonDir );
  883.  
  884.     UjPozicio[vec3:x]=-3.437; //-3.137
  885.     UjPozicio[vec3:y]=0.0;
  886.     UjPozicio[vec3:z]=1.121;
  887.     RotateVec2(UjPozicio,VagonDir);
  888.     AddVec3( UjPozicio, lTmpVec3, UjPozicio );
  889.     Tank2=    CreateEntity( "ax_PzIVG", UjPozicio, VagonDir );
  890.  
  891.     FillWithCrew(Tank1,1);
  892.     MakeInvulnerable(Tank1);
  893.     CmdWait( Tank1, Q_OVERRIDE, 1.0 );
  894.     TurnCW(Tank1, -90.0, Q_ENQUEUE);
  895.     UnitCallEvent(Tank1,"LeAVonatrol");
  896.  
  897.     FillWithCrew(Tank2,1);
  898.     MakeInvulnerable(Tank2);
  899.     CmdWait( Tank2, Q_OVERRIDE, 1.0 );
  900.     TurnCW(Tank2, -90.0, Q_ENQUEUE);
  901.     UnitCallEvent(Tank2,"LeAVonatrol");
  902. }
  903.  
  904. public LeAVonatrol(DrID:IchDone)
  905. {
  906.     RemoveEntityEvent( "LeAVonatrol", IchDone );
  907.     static LAV_Count=0;
  908.     switch(LAV_Count)
  909.     {
  910.         case 0,1:
  911.              MoveForward(IchDone,12.0,Q_OVERRIDE,MF_DIRECT);
  912.         case 2,3:
  913.              MoveForward(IchDone,6.0,Q_OVERRIDE,MF_DIRECT);
  914.     }
  915.     LAV_Count++;
  916.     AddTimerEvent( "FloorHelyre", 4.5, "GameLogic", true);
  917.     UnitCallEvent(IchDone,"MoveDaTankToPos",Q_ENQUEUE);
  918. }
  919.  
  920. public Vonatelore()
  921. {
  922.     RemoveEvent( "Vonatelore" );
  923.     static bool:VonatMegegy=true;
  924.     if(GetDifficulty()==3&&VonatMegegy)
  925.     {
  926.         MoveForward(GetEntity( Wagonz[0] ), 15.0, _, MF_DIRECT);
  927.         AddAKEntityEvent( "Lecsereles", GetEntity( Wagonz[0] ), UNIT_STOPPED );        
  928.         VonatMegegy=false;
  929.     }        
  930.     else
  931.     {
  932.         MoveForward(GetEntity( Wagonz[0] ), 666.0, _, MF_DIRECT);
  933.     }
  934. }
  935.  
  936. public MoveDaTankToPos(DrID:UndWho)
  937. {
  938.     static Float:TankWaitTime=2.5;
  939.     MakeVulnerable(UndWho);
  940.     CmdWait( UndWho, Q_ENQUEUE, TankWaitTime );
  941.     CmdMoveToEnt( UndWho, GetEntity( "vontankout" ), Q_ENQUEUE, MF_NONE );
  942.     SetBehav2Ent( UndWho, _, FB_FIRE_AT_WILL, _, DB_WRECKSONLY);
  943.     if(IsAlive(GetEntity( "dasbridge" )))
  944.     {
  945. //konvok10->konvok1    
  946.         CmdMoveToEnt( UndWho, GetEntity( "konvok10" ), Q_ENQUEUE, MF_ATTACKMOVE );
  947.         CmdMoveToEnt( UndWho, GetEntity( "konvok9" ), Q_ENQUEUE, MF_ATTACKMOVE );
  948.         CmdMoveToEnt( UndWho, GetEntity( "konvok8" ), Q_ENQUEUE, MF_ATTACKMOVE );
  949.         CmdMoveToEnt( UndWho, GetEntity( "konvok7" ), Q_ENQUEUE, MF_ATTACKMOVE );
  950.         CmdMoveToEnt( UndWho, GetEntity( "konvok6" ), Q_ENQUEUE, MF_ATTACKMOVE );
  951.         CmdMoveToEnt( UndWho, GetEntity( "konvok5" ), Q_ENQUEUE, MF_ATTACKMOVE );
  952.         CmdMoveToEnt( UndWho, GetEntity( "konvok4" ), Q_ENQUEUE, MF_ATTACKMOVE );
  953.         CmdMoveToEnt( UndWho, GetEntity( "konvok3" ), Q_ENQUEUE, MF_ATTACKMOVE );
  954.         CmdMoveToEnt( UndWho, GetEntity( "konvok2" ), Q_ENQUEUE, MF_ATTACKMOVE );
  955.         CmdMoveToEnt( UndWho, GetEntity( "konvok1" ), Q_ENQUEUE, MF_ATTACKMOVE );
  956.     }
  957.     else
  958.     {
  959. //kongaz11->konvgaz1    
  960.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz11" ), Q_ENQUEUE, MF_ATTACKMOVE );
  961.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz10" ), Q_ENQUEUE, MF_ATTACKMOVE );
  962.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz9" ), Q_ENQUEUE, MF_ATTACKMOVE );
  963.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz8" ), Q_ENQUEUE, MF_ATTACKMOVE );
  964.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz7" ), Q_ENQUEUE, MF_ATTACKMOVE );
  965.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz6" ), Q_ENQUEUE, MF_ATTACKMOVE );
  966.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz5" ), Q_ENQUEUE, MF_ATTACKMOVE );
  967.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz4" ), Q_ENQUEUE, MF_ATTACKMOVE );
  968.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz3" ), Q_ENQUEUE, MF_ATTACKMOVE );
  969.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz2" ), Q_ENQUEUE, MF_ATTACKMOVE );
  970.         CmdMoveToEnt( UndWho, GetEntity( "konvgaz1" ), Q_ENQUEUE, MF_ATTACKMOVE );    
  971.     }
  972.     TankWaitTime+=5.0;
  973. }
  974. //============END=OF=OTHER IN GAME CUTSCENES=================================
  975.  
  976. public SeviAreabanVan(DrID:UndWho)
  977. {
  978.     new DrID:UndWhere=GetMsgParamObject();
  979.     if(UndWhere==GetEntity( "konvojarea" ))
  980.     {
  981.         if(IsAlive(GetEntity( "dasbridge" )))
  982.         {
  983.             gActConvoy=1;
  984.             ResetConvoy(0);
  985.             ResetConvoy(1);
  986.             ResetConvoy(2);
  987.             ConvoyGo(gActConvoy);
  988.         }    
  989.         else
  990.         {
  991.             gActConvoy=2;
  992.             ResetConvoy(0);
  993.             ResetConvoy(1);
  994.             ResetConvoy(2);
  995.             BridgeBoomCutScene()
  996.             ConvoyStop(0);
  997.         }            
  998.         DeActivateEntity( UndWhere );
  999.         RemoveEvent( "SeviAreabanVan" );
  1000.     }
  1001. }
  1002.  
  1003. public SeviEnemitLatott(DrID:UndWho)
  1004. {
  1005. //    ShowShortMessage( "Chevrolet Driver: ENEMY IN SIGHT!!!" );
  1006.     ConvoyStop(gActConvoy);
  1007.     gConvoyStartDelays[gActConvoy]=0.0;
  1008.     AddTimerEvent( "ContinueConvoy", gKonvoyHalt, "GameLogic", true );
  1009. }
  1010.  
  1011. public ContinueConvoy()
  1012. {
  1013.     RemoveEvent( "ContinueConvoy" );
  1014.     ConvoyGo(gActConvoy);
  1015. }
  1016.  
  1017. public MeghalszGeci(DrID:UndWho)
  1018. {
  1019.     RemoveEntityEvent( "MeghalszGeci", UndWho );
  1020.     if(IsAlive(UndWho))
  1021.         KillEntity(UndWho)
  1022. }
  1023.  
  1024. public KiertSevi(DrID:UndWho)
  1025. {
  1026.     RemoveEntityEvent( "KiertSevi", UndWho );
  1027.     gKintSevi++;
  1028.     DeActivateEntity( UndWho );
  1029.     MakeInvulnerable( UndWho );
  1030.     RemoveFromGroup( "sevizz", UndWho );
  1031.     new lTmpStr[66];
  1032.     Int2Str( gKintSevi, lTmpStr, 66, "" );
  1033.     ConcatString( lTmpStr, 66, "#iMS07_MSG001#", lTmpStr );
  1034.     SetShortInfo(lTmpStr);
  1035.     CheckOurPrimary();
  1036.     if(gKintSevi>=gMinSevi)
  1037.     {
  1038.         SetObjectiveState( "sevroz", OS_COMPLETED );
  1039.     }
  1040. }
  1041.  
  1042. public SevikOdakint()
  1043. {
  1044.     if(IsAlive(GetEntity( "dasbridge" )))
  1045.     {
  1046.         AddObjective( "BridgeHold", OT_PRIMARY, "#iMS07_PS02A#", "#iMS07_PL02A#", OS_IN_PROGRESS );
  1047.         Pofazz(04A);
  1048.         Pofazz(04B);
  1049.     }
  1050.     else
  1051.     {
  1052.         AddObjective( "BridgeHold", OT_PRIMARY, "#iMS07_PS02B#", "#iMS07_PL02B#", OS_IN_PROGRESS );
  1053.         Pofazz(05A);
  1054.         Pofazz(05B);
  1055.     }
  1056.     RemoveEvent( "SevikOdakint" );
  1057.     SendBigReinf2Playa();
  1058.     AddTimerEvent( "SendBigReinf2AI", gReinfTajm, "GameLogic", true );
  1059.     new KantDan=floatround(gReinfTajm+180.0);
  1060.     if(IsAlive(GetEntity( "dasbridge" )))
  1061.     {
  1062.         KantDan+=180;
  1063.     }
  1064.     SetCountDown( KantDan );
  1065.     AddAKEntityEvent( "GameIsAboutDone", ANY_ENTITY, COUNTDOWN_DONE );    
  1066. }
  1067.  
  1068. public CheckOurPrimary()
  1069. {
  1070.     new PalyanLevok=CountLivingInSelector( "sevizz" );
  1071.     if(PalyanLevok==0)
  1072.     {
  1073.         if(gKintSevi>=gMinSevi)
  1074.         {
  1075.             AddTimerEvent( "SevikOdakint", 2.0, "GameLogic", true );
  1076.         }
  1077.         else
  1078.         {
  1079.             AddTimerEvent( "GameOverMan", 2.0, "GameLogic", true );
  1080.             SetObjectiveState( "sevroz", OS_FAILED );
  1081.             SetCutScene(true);
  1082.         }
  1083.     }
  1084.     if((PalyanLevok+gKintSevi)<gMinSevi)
  1085.     {
  1086.             AddTimerEvent( "GameOverMan", 2.0, "GameLogic", true );
  1087.             SetObjectiveState( "sevroz", OS_FAILED );
  1088.             SetCutScene(true);    
  1089.     }
  1090. }
  1091.  
  1092. public GameIsAboutDone()
  1093. {
  1094.     SetCutScene(true);
  1095.     if(IsPlayer( GetEntity( "hq1" )))
  1096.     {
  1097.         Pofazz(06A);
  1098.         SetObjectiveState( "BridgeHold", OS_COMPLETED );
  1099.         AddAKEntityEvent( "GameDoneMan", ANY_ENTITY, MESSAGE_END,2.0 );
  1100.     }
  1101.     else
  1102.     {
  1103.         Pofazz(06B);
  1104.         SetObjectiveState( "BridgeHold", OS_FAILED );    
  1105.         AddAKEntityEvent( "GameOverMan", ANY_ENTITY, MESSAGE_END, 2.0 );
  1106.         SetCutScene(true);
  1107.     }
  1108. }
  1109.  
  1110. //======================================================================================================
  1111. public TeamElimSucceed()
  1112. {
  1113.     new Team=GetMsgParamInt();      
  1114. //    ShowShortMessageP1( "Teamelim: %d", Team );
  1115.     if(Team==123)
  1116.     {
  1117.         if(GetObjectiveState( "sevroz" )==OS_COMPLETED)
  1118.         {
  1119.             SetObjectiveState( "BridgeHold", OS_FAILED );
  1120.         }
  1121.         else
  1122.         {
  1123.             SetObjectiveState( "sevroz", OS_FAILED );        
  1124.         }
  1125.         SetCutScene(true);
  1126.         GameOverMan();
  1127.     }
  1128.     
  1129.     if(Team==666&&GetDifficulty()==0)
  1130.     {
  1131.         Reinforcement( "easyextra", GetEntity( "playad" ), GetEntity( "playaa" ) );
  1132.         new Iterator:iti=Iterate("iziextra");
  1133.         while(ItNext(iti))
  1134.         {
  1135.             SetPropertyString( ItEntity(iti), "Nationality", "French" );
  1136.         }
  1137.     }
  1138. }
  1139.  
  1140.  
  1141.  
  1142. //======================================================================================================
  1143. // Add your functions here:
  1144.  
  1145. public YouReDaRealNigger()
  1146. {
  1147.     static Float:Lofasz=1.0;
  1148.     new Float:lTmpVec3[vec3];
  1149.     GetPropertyVec3( GetEntity( "nigger0" ), "LogicalPos_", lTmpVec3 );
  1150.     lTmpVec3[vec3:x]+=Lofasz;
  1151.     SetPropertyVec3( GetEntity( "nigger0" ), "Pos", lTmpVec3 );
  1152.  
  1153.     if(Lofasz==1.0)
  1154.     {
  1155.         Lofasz=-1.0;
  1156.     }
  1157.     else
  1158.     {
  1159.         Lofasz=1.0;
  1160.     }
  1161.     
  1162.     new Iterator:iti=Iterate("nigger0");
  1163.     new DrID:Ureske;
  1164.     while(ItNext(iti))
  1165.     {
  1166.         Ureske=ItEntity(iti);
  1167.         if(IsInstanceOf( Ureske, GetClassID( "cVehicle" ) )&&!IsWreck(Ureske)&&(GetPropertyInt( Ureske, "Team" )==0))
  1168.         {
  1169.             DamageEntity( Ureske, 15.0, 49 );
  1170.         }
  1171.     }
  1172.  
  1173.     new Iterator:iti2;
  1174.     GetPropertyVec3( GetEntity( "nigger2" ), "LogicalPos_", lTmpVec3 );
  1175.     lTmpVec3[vec3:x]+=Lofasz;
  1176.     SetPropertyVec3( GetEntity( "nigger2" ), "Pos", lTmpVec3 );
  1177.     iti=Iterate("nigger2");
  1178.     iti2=Iterate("sevizz");
  1179.     new DrID:ActSevi;
  1180.     while(ItNext(iti2))
  1181.     {
  1182.         ActSevi=ItEntity(iti2)
  1183.         if(IsInSelector( ActSevi, "nigger2" ))
  1184.         {
  1185.             iti=Iterate("nigger2");
  1186.             while(ItNext(iti))
  1187.             {
  1188.                 Ureske=ItEntity(iti);
  1189.                 if(!IsInSelector( Ureske, "sevizz" )&&!IsMounted(Ureske))
  1190.                 {
  1191.                     if(OdebbDuma)
  1192.                     {
  1193.                         Pofazz(08);
  1194.                         OdebbDuma=false;
  1195.                     }
  1196.                     CmdDigout(Ureske, Q_OVERRIDE)
  1197.                     CmdMoveToEnt( Ureske, GetEntity( "odebb" ), Q_CYCLE, MF_NONE );
  1198.                 }
  1199.             }
  1200.         }
  1201.     }
  1202. }
  1203.  
  1204. public DeactivateMePlease(DrID:UndWho)
  1205. {
  1206.     RemoveEntityEvent("DeactivateMePlease",UndWho);
  1207.     DeActivateEntity( UndWho );
  1208. }    
  1209.  
  1210. public SendBigReinf2Playa()
  1211. {
  1212.     RemoveEvent( "SendBigReinf2Playa" );
  1213.     Reinforcement( "players", GetEntity( "playad" ), GetEntity( "playaa" ));
  1214.     new Iterator:iti=Iterate("players");
  1215.     while(ItNext(iti))
  1216.     {
  1217.         SetPropertyString( ItEntity(iti), "Nationality", "Canadian" );
  1218.     }
  1219.     DropPara2Ent(gPlayerTeam, "ejtosok", GetEntity( "seggbe7" ), ARF_DONT_CHECK_LIMIT);
  1220.     iti=Iterate("ejtosok");
  1221.     while(ItNext(iti))
  1222.     {
  1223.         SetPropertyString( ItEntity(iti), "Nationality", "Canadian" );
  1224.     }
  1225. }
  1226.  
  1227. public SendBigReinf2AI()
  1228. {
  1229.     RemoveEvent( "SendBigReinf2AI" );
  1230.     Reinforcement( "attack_felso", GetEntity( "hidinnend"), GetEntity( "hidinnena" ) );
  1231.     CmdGroupMoveToEnt( "attack_felso", GetEntity( "seggbe7" ), Q_ENQUEUE, MF_ATTACKMOVE );
  1232.     
  1233.     Reinforcement( "attack_also", GetEntity( "hidonnand" ), GetEntity( "hidonnand" ) );
  1234.     if(IsAlive(GetEntity( "dasbridge" )))
  1235.     {
  1236.         CmdGroupMoveToEnt( "attack_also", GetEntity( "seggbe7" ), Q_ENQUEUE, MF_ATTACKMOVE );        
  1237.     }
  1238.     else
  1239.     {
  1240.         CmdGroupMoveToEnt( "attack_also", GetEntity( "seggbe1" ), Q_ENQUEUE, MF_ATTACKMOVE );        
  1241.         CmdGroupMoveToEnt( "attack_also", GetEntity( "seggbe2" ), Q_ENQUEUE, MF_ATTACKMOVE );        
  1242.         CmdGroupMoveToEnt( "attack_also", GetEntity( "seggbe3" ), Q_ENQUEUE, MF_ATTACKMOVE );        
  1243.         CmdGroupMoveToEnt( "attack_also", GetEntity( "seggbe4" ), Q_ENQUEUE, MF_ATTACKMOVE );        
  1244.         CmdGroupMoveToEnt( "attack_also", GetEntity( "seggbe5" ), Q_ENQUEUE, MF_ATTACKMOVE );        
  1245.         CmdGroupMoveToEnt( "attack_also", GetEntity( "seggbe6" ), Q_ENQUEUE, MF_ATTACKMOVE );        
  1246.         CmdGroupMoveToEnt( "attack_also", GetEntity( "seggbe7" ), Q_ENQUEUE, MF_ATTACKMOVE );            
  1247.     }
  1248.     
  1249.     if(GetDifficulty()==3)
  1250.     {
  1251.         Reinforcement( "bigfuka", GetEntity( "tankzd"), GetEntity( "tankza" ) );
  1252.         CmdGroupMoveToEnt( "attack_felso", GetEntity( "seggbe7" ), Q_ENQUEUE, MF_ATTACKMOVE );    
  1253.     }
  1254.     static bool:ElsoTamadas=true;
  1255.     if(ElsoTamadas)
  1256.     {
  1257.         ActivateEntity( GetEntity( "sspanzer" ) );
  1258.         CmdMoveToEnt( GetEntity( "sspanzer" ) ,  GetEntity( "seggbe7" ), Q_ENQUEUE, MF_ATTACKMOVE );
  1259.         AddTimerEvent( "CheckForSecondWave", 200.0, "GameLogic", true);    
  1260.         ElsoTamadas=false;
  1261.     }
  1262. }
  1263.  
  1264.  
  1265. public CheckForSecondWave()
  1266. {
  1267.     RemoveEvent( "CheckForSecondWave" );
  1268.     if(IsPlayer( GetEntity( "hq1" )))
  1269.     {
  1270.         SendBigReinf2AI();
  1271.     }
  1272. }
  1273. //======================================================================================================
  1274. public ObjectiveChanged()
  1275. {
  1276.     // Check objectives here
  1277. }
  1278.  
  1279. public GameOverMan()
  1280. {
  1281.     RemoveEvent( "GameOverMan" );
  1282.     AddDebriefing("#iMISSION_DB_F#");
  1283.     EndMission( MS_FAILED );
  1284. }
  1285.  
  1286. public GameDoneMan()
  1287. {
  1288.     if(GetObjectiveState( "Vonatz" )==OS_COMPLETED)
  1289.     {
  1290.         SetGlobalVariable("gvMS07_TrainStop",1);                
  1291.     }
  1292.     else
  1293.     {
  1294.         SetGlobalVariable("gvMS07_TrainStop",0);                    
  1295.     }
  1296.     RemoveEvent( "GameDoneMan" );
  1297.     AddDebriefing("#iMISSION07_DB_P#");
  1298.     if(GetObjectiveState( "Vonatz" )==OS_COMPLETED)
  1299.     {
  1300.         AddDebriefing("#iMISSION07_DB_H#");
  1301.     }
  1302.     EndMission( MS_ACCOMPLISHED );
  1303. }
  1304.  
  1305. //======================================================================================================
  1306. public SzonyegBombazas()
  1307. {
  1308.     SetCutScene(true,false);
  1309.     CamPosStore(); 
  1310.     SetPropertyInt(GetEntity( "b17area" ), "Team", gPlayerTeam );
  1311.     TeleportCameraToEnt(GetEntity( "b17area" ));
  1312.     CameraSet(45,90,65, true)
  1313.  
  1314.     ActivateEntity( GetEntity( "as1" ) );
  1315.     ActivateEntity( GetEntity( "as2" ) );
  1316.     ActivateEntity( GetEntity( "as3" ) );
  1317.     ActivateEntity( GetEntity( "as4" ) );
  1318.     
  1319.     CmdAttack( GetEntity( "as1" ), Q_OVERRIDE, GetEntity( "astarget1" ), AF_FORCE );
  1320.     CmdAttack( GetEntity( "as2" ), Q_OVERRIDE, GetEntity( "astarget2" ), AF_FORCE );
  1321.     CmdAttack( GetEntity( "as3" ), Q_OVERRIDE, GetEntity( "astarget3" ), AF_FORCE );
  1322.     CmdAttack( GetEntity( "as4" ), Q_OVERRIDE, GetEntity( "astarget4" ), AF_FORCE );
  1323.     
  1324.     AddAKEntityEvent( "MenekuljetekBuzik", GetEntity( "as1" ), UNIT_AREA_ENTER);
  1325.     AddAKEntityEvent( "NaHolJar", GetEntity( "as1" ), UNIT_AREA_ENTER);
  1326.     AddAKEntityEvent( "NaHolJar", GetEntity( "as2" ), UNIT_AREA_ENTER);
  1327.     AddAKEntityEvent( "NaHolJar", GetEntity( "as3" ), UNIT_AREA_ENTER);
  1328.     AddAKEntityEvent( "NaHolJar", GetEntity( "as4" ), UNIT_AREA_ENTER);
  1329.  
  1330.     AddTimerEvent( "robajmiegymas", 2.0, "GameLogic", true);
  1331. }
  1332.  
  1333. public robajmiegymas()
  1334. {
  1335.     static Robaj=0;
  1336.     switch(Robaj)
  1337.     {
  1338.         case 0:
  1339.         {
  1340.             new DrID:Megrazo=CreateEntity2Ent("particle_camshake_slow", GetEntity( "b17area" ));
  1341.             SetPropertyString( Megrazo, "StringID", "megrazo1234" );
  1342.         }
  1343.         case 1:
  1344.         {
  1345.             PlaySound("Sounds\\Game\\Others\\B52 Planes 10sec.wav");
  1346.             RemoveEvent( "robajmiegymas" );
  1347.             Robaj=0;
  1348.         }    
  1349.     }
  1350.     Robaj++;
  1351. }
  1352.  
  1353. public NaHolJar(DrID:UndWho)
  1354. {
  1355.     new DrID:UndHova=GetMsgParamObject();
  1356.     if(UndHova==GetEntity( "repzifel" )&&IsInSelector( UndWho, "bombazok" ))
  1357.     {
  1358.         new DrID:cPC=GetComponent( UndWho, "cPlaneController");
  1359.         if(DrID:0==cPC)
  1360.         {
  1361.             return;            
  1362.         }
  1363.         SetPropertyFloat( cPC, "MinHeight", 56.0 );
  1364.         SetPropertyFloat( cPC, "MaxHeight", 56.0 );
  1365.         SetPropertyFloat( cPC, "DefaultHeight", 56.0 );
  1366.         SetPropertyFloat( cPC, "ZAcceleration", 60.0 );
  1367.          SetPropertyFloat( UndWho, "RelativeZ", 0.0 );
  1368. //          new Float:lTmpVec3[vec3];
  1369. //          GetPropertyVec3( UndWho, "LogicalPos_", lTmpVec3 );
  1370. //          lTmpVec3[vec3:z]=35.0;
  1371. //          GetPropertyVec3( UndWho, "Pos", lTmpVec3 );
  1372. //          CmdMove( UndWho, Q_OVERRIDE, lTmpVec3, MF_TELEPORT );
  1373. //          GetPropertyVec3( UndWho, "Pos", lTmpVec3 );
  1374. //         SetPropertyFloat( UndWho, "RelativeZ", 0.0 );
  1375. //          GetPropertyVec3( UndWho, "Pos", lTmpVec3 );
  1376.         if(UndWho==GetEntity( "as1" ))
  1377.         {
  1378.             CmdAttack( GetEntity( "as1" ), Q_ENQUEUE, GetEntity( "astarget1" ), AF_FORCE );
  1379.         }
  1380.         if(UndWho==GetEntity( "as2" ))
  1381.         {
  1382.             CmdAttack( GetEntity( "as2" ), Q_ENQUEUE, GetEntity( "astarget2" ), AF_FORCE );
  1383.         }
  1384.         if(UndWho==GetEntity( "as3" ))
  1385.         {
  1386.             CmdAttack( GetEntity( "as3" ), Q_ENQUEUE, GetEntity( "astarget3" ), AF_FORCE );
  1387.         }
  1388.         if(UndWho==GetEntity( "as4" ))
  1389.         {
  1390.             CmdAttack( GetEntity( "as4" ), Q_ENQUEUE, GetEntity( "astarget4" ), AF_FORCE );
  1391.         }
  1392.         AddAKEntityEvent( "ZSpeedZero", UndWho, UNIT_AREA_EXIT );
  1393.     }
  1394.     
  1395.     if(UndHova==GetEntity( "b17kint" )&&IsInSelector( UndWho, "bombazok" ))
  1396.     {
  1397.         HideEntity( UndWho );
  1398.         DeActivateEntity( UndWho );
  1399.         static bool:Pina=true;
  1400.         if(Pina)
  1401.         {
  1402.             SetObjectiveState( "AAKill", OS_COMPLETED );
  1403.             SetCutScene(false,false);
  1404.             DeActivateEntity(GetEntity( "megrazo2345" ) );
  1405.             AddTimerEvent( "CamPosRestoreLocal", 4.5,"GameLogic", true );
  1406.             Pina=false;    
  1407.         }
  1408.     }    
  1409. }
  1410.  
  1411. public ZSpeedZero(DrID:UndWho)
  1412. {
  1413.     new DrID:UndHova=GetMsgParamObject();
  1414.     if(UndHova==GetEntity( "repzifel" )&&IsInSelector( UndWho, "bombazok" ))
  1415.     {
  1416.         new DrID:cPC=GetComponent( UndWho, "cPlaneController");
  1417.         if(DrID:0==cPC)
  1418.         {
  1419.             return;            
  1420.         }
  1421.         SetPropertyFloat( cPC, "MinHeight", 56.0 );
  1422.         SetPropertyFloat( cPC, "MaxHeight", 56.0 );
  1423.         SetPropertyFloat( cPC, "DefaultHeight", 56.0 );
  1424.         SetPropertyFloat( cPC, "ZSpeed", 0.0 );
  1425.          SetPropertyFloat( cPC, "ZAcceleration", 0.0 );
  1426.         SetPropertyFloat( UndWho, "RelativeZ", 0.0 );
  1427.     }
  1428. }
  1429.  
  1430. public CamPosRestoreLocal()
  1431. {    
  1432.     SetPropertyInt(GetEntity( "b17area" ), "Team", 0 );
  1433.     RemoveEvent( "CamPosRestoreLocal" );
  1434.     CamPosStore(false);
  1435. }
  1436.  
  1437.  
  1438. public MenekuljetekBuzik(DrID:UndWho)
  1439. {
  1440.     new DrID:UndHova=GetMsgParamObject();
  1441.     if(UndHova==GetEntity( "mindenkimenekul" )&&IsInSelector( UndWho, "bombazok" ))
  1442.     {
  1443.         TeleportCameraToEnt(GetEntity( "astarget1" ));
  1444.         CameraSet(-45, 45,35, true)
  1445.         RemoveEvent( "MenekuljetekBuzik" );
  1446.         CmdGroupUnmount( "axismenekul", Q_OVERRIDE, UMTF_UNMOUNT_ALL );
  1447.         FormationMoveToEnt("axismenekul",GetEntity( "idemenekulj" ),Q_ENQUEUE,MF_NONE);    
  1448.         DestructEntity( GetEntity( "megrazo1234" ) );
  1449.  
  1450.         AddTimerEvent( "robajmiegymas",1.0, "GameLogic", true);
  1451.     }
  1452. }
  1453.  
  1454.