Advertisement
Guest User

lindvior_mb

a guest
Jan 26th, 2018
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.50 KB | None | 0 0
  1. class lindvior_for_mb extends LineagePawn;
  2.  
  3.  
  4. var Emitter Effect1;
  5. var Emitter Effect2;
  6. var int FirstAnimBegin;
  7. var rotator rotat;
  8.  
  9. simulated function Destroyed()
  10. {
  11.     FirstAnimBegin = 1;
  12.     super.Destroyed();
  13.     ClearEffect();
  14. }
  15.  
  16. simulated event ClearEffect()
  17. {
  18.     if(Effect1 != None) {       Effect1.NDestroy();     Effect1 = None; }
  19.  
  20.     if(Effect2 != None) {       Effect2.NDestroy();     Effect2 = None; }
  21. }
  22.  
  23. simulated function Tick(float DeltaTime)
  24. {
  25.     if ( FirstAnimBegin == 1 )  
  26.     {
  27.         ClearEffect();
  28.         FirstAnimBegin = 0;
  29.  
  30.         Effect1 = Spawn(class'u_lind_eyeglow_right', Self, '', Location, Rotation);
  31.         if(Effect1 != None)
  32.     {
  33.             AttachToBone(Effect1, 'dummy_L_eye');
  34.        
  35.             rotat.Pitch = 0;
  36.             rotat.Roll = 0;
  37.             rotat.Yaw = 0;
  38.             Effect1.SetRelativeLocation(vect(-1,0,0)); 
  39.         }
  40.        
  41.                 Effect2 = Spawn(class'u_lind_eyeglow_right', Self, '', Location, Rotation);
  42.         if(Effect2 != None)
  43.     {
  44.             AttachToBone(Effect2, 'dummy_R_eye');
  45.        
  46.             rotat.Pitch = 0;
  47.             rotat.Roll = 0;
  48.             rotat.Yaw = 0;
  49.             Effect2.SetRelativeLocation(vect(-2,0,0)); 
  50.         }
  51.     }      
  52. }
  53.  
  54. defaultproperties
  55. {
  56.     FirstAnimBegin=1
  57.     HeadBone=Bip01 Neck3
  58.     GroundMaxSpeed=100
  59.     GroundMinSpeed=120
  60.     ControllerClass=Class'HerdMonster'
  61.     NameOffset=140.00
  62.     ProjectedTargetEffectName="target_region_decal_lind"
  63.     fProjectedTargetEffectScale=0.50
  64.     bAlwaysVisible=True
  65.     bActorShadows=False
  66.     bIgnoredRange=True
  67.     CollisionRadius=350.00
  68.     CollisionHeight=210.00
  69.     RotationRate=(Pitch=0,Yaw=10000,Roll=0),
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement