XIDPawn
Class Prock03_GenEffects

source: C:\XIII\XIDPawn\Classes\Prock03_GenEffects.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Keypoint
         |
         +--XIDPawn.GenFRD
            |
            +--XIDPawn.Prock03_GenEffects
Direct Known Subclasses:None

class Prock03_GenEffects
extends XIDPawn.GenFRD

//============================================================================= // Prock03_GenEffects. //=============================================================================
Variables
 int NbDegats
 XIIIPlayerController PC
 int iAutoaim
 XIIIPlayerPawn xiii


Function Summary
 void XIIIBurned()
     


 void XIIIPoisoned()
     
//fin effet
    if (NbDegats<3)
    {
       settimer(1,false);
       NbDegats++;
    }
}   */
 void timer()
     
//effet
    NbDegats=1;
    settimer(1,false);
}

 void timer2()



Source Code


00001	//=============================================================================
00002	// Prock03_GenEffects.
00003	//=============================================================================
00004	class Prock03_GenEffects extends GenFRD;
00005	
00006	var xiiiplayerpawn xiii;
00007	VAR TRANSIENT XIIIPlayerController PC;
00008	var int iAutoaim;
00009	
00010	
00011	/*
00012	var int NbDegats;
00013	
00014	
00015	
00016	function XIIIBurned()
00017	{
00018	    //effet
00019	    NbDegats=1;
00020	    settimer(1,false);
00021	}
00022	
00023	function timer()
00024	{
00025	    //degats
00026	    //xiii.TakeDamage(70, Instigator, Hitlocation, -MomentumTransfer * normal(velocity), MyDamageType);
00027	    xiii.TakeDamage(50, Instigator, xiii.location, vect(0,0,0), class'DTRocketed');
00028	    //fin effet
00029	    if (NbDegats<3)
00030	    {
00031	       settimer(1,false);
00032	       NbDegats++;
00033	    }
00034	}   */
00035	
00036	
00037	function XIIIPoisoned()
00038	{
00039		local Johansson JoJo;
00040	
00041		 Level.Game.SetGameSpeed(0.4);
00042	    level.SetPoisonEffect(true,2);
00043	    iAutoaim=PC.iAutoAimMode;
00044	    PC.iAutoAimMode=0;
00045	    PC.ThrowWeapon();
00046	    PC.switchweapon(0);
00047		 JoJo=Johansson(instigator);
00048	    JoJo.bxiiipoisoned=true;
00049		 if (rand(4)==0)
00050		 {
00051			 triggerevent('dial_serum',self,instigator);
00052			 JoJo.timersound=level.timeseconds;
00053			 JoJo.bSerumSound=true;
00054			 JoJo.bPlayedSound=true;
00055		 }
00056	    xiii.playsound(Sound'XIIIsound.XIIIPerso__XIIIPaf.XIIIPaf__hTrip');
00057	    settimer2(3,false);
00058	}
00059	
00060	function timer2()
00061	{
00062		 Level.Game.SetGameSpeed(1);
00063	    level.SetPoisonEffect(false,2);
00064	    xiii.playsound(Sound'XIIIsound.XIIIPerso__XIIIPaf.XIIIPaf__hTrip');
00065	    PC.iAutoAimMode=iAutoaim;
00066	    Johansson(instigator).bxiiipoisoned=false;
00067	}
00068	
00069	
00070	
00071	
00072	defaultproperties
00073	{
00074	}

End Source Code