Core.Object | +--Engine.Actor | +--Engine.Inventory | +--XIIIMP.MarioSuperBonus | +--XIIIMP.SuperBoost
Pawn
MyPawn
simulated
GiveTo(Pawn Other)
//__________________________________________________________________________
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class SuperBoost extends MarioSuperBonus; 00005 00006 var Pawn MyPawn; 00007 00008 //__________________________________________________________________________ 00009 00010 simulated event Destroyed() 00011 { 00012 MyPawn.SpeedFactorLimit = 1.0; 00013 RemoveIconInPlayerHud(); 00014 super.Destroyed(); 00015 } 00016 00017 //__________________________________________________________________________ 00018 00019 simulated function GiveTo( pawn Other ) 00020 { 00021 Super.GiveTo(other); 00022 MyPawn = Other; 00023 MyPawn.SpeedFactorLimit = 2.0; 00024 AddIconInPlayerHud( Other ); 00025 SetTimer2(15.0,false); 00026 } 00027 00028 //__________________________________________________________________________ 00029 00030 event Timer2() 00031 { 00032 SetTimer2( 0.0,false ); 00033 Destroy(); 00034 } 00035 00036 //__________________________________________________________________________ 00037 00038 00039 00040 00041 defaultproperties 00042 { 00043 BonusIconId=32 00044 }