Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 |
//============================================================================= // Bubble1. //============================================================================= class Bubble1 expands Effects; #exec Texture Import File=models\bubble1.pcx Name=S_bubble1 Mips=Off Flags=2 #exec Texture Import File=models\bubble2.pcx Name=S_bubble2 Mips=Off Flags=2 #exec Texture Import File=models\bubble3.pcx Name=S_bubble3 Mips=Off Flags=2 simulated function ZoneChange( ZoneInfo NewZone ) { if ( !NewZone.bWaterZone && (Role == ROLE_Authority) ) { Destroy(); PlaySound (EffectSound1); } } simulated function BeginPlay() { Super.BeginPlay(); PlaySound(EffectSound2); //Spawned Sound LifeSpan = 3 + 4 * FRand(); Buoyancy = Mass + FRand()+0.1; if (FRand()<0.3) Texture = texture'S_Bubble2'; else if (FRand()<0.3) Texture = texture'S_Bubble3'; DrawScale += FRand()*DrawScale/2; } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |