Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class lindvior_for_mb extends LineagePawn;
- var Emitter Effect1;
- var Emitter Effect2;
- var int FirstAnimBegin;
- var rotator rotat;
- simulated function Destroyed()
- {
- FirstAnimBegin = 1;
- super.Destroyed();
- ClearEffect();
- }
- simulated event ClearEffect()
- {
- if(Effect1 != None) { Effect1.NDestroy(); Effect1 = None; }
- if(Effect2 != None) { Effect2.NDestroy(); Effect2 = None; }
- }
- simulated function Tick(float DeltaTime)
- {
- if ( FirstAnimBegin == 1 )
- {
- ClearEffect();
- FirstAnimBegin = 0;
- Effect1 = Spawn(class'u_lind_eyeglow_right', Self, '', Location, Rotation);
- if(Effect1 != None)
- {
- AttachToBone(Effect1, 'dummy_L_eye');
- rotat.Pitch = 0;
- rotat.Roll = 0;
- rotat.Yaw = 0;
- Effect1.SetRelativeLocation(vect(-1,0,0));
- }
- Effect2 = Spawn(class'u_lind_eyeglow_right', Self, '', Location, Rotation);
- if(Effect2 != None)
- {
- AttachToBone(Effect2, 'dummy_R_eye');
- rotat.Pitch = 0;
- rotat.Roll = 0;
- rotat.Yaw = 0;
- Effect2.SetRelativeLocation(vect(-2,0,0));
- }
- }
- }
- defaultproperties
- {
- FirstAnimBegin=1
- HeadBone=Bip01 Neck3
- GroundMaxSpeed=100
- GroundMinSpeed=120
- ControllerClass=Class'HerdMonster'
- NameOffset=140.00
- ProjectedTargetEffectName="target_region_decal_lind"
- fProjectedTargetEffectScale=0.50
- bAlwaysVisible=True
- bActorShadows=False
- bIgnoredRange=True
- CollisionRadius=350.00
- CollisionHeight=210.00
- RotationRate=(Pitch=0,Yaw=10000,Roll=0),
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement