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 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 |
//============================================================================= // plays lightning sound // put this actor where you want to hear thunder // intended to be used with UILightningEffect //============================================================================= // by Raven class UILightningSound extends UIWeather_Lightning; #exec TEXTURE IMPORT NAME=LightningS FILE="Textures\Icons\LightningS.bmp" GROUP=Icons LODSET=2 var() sound LightningSound; //lightning sound var() byte LightningVolume; //lightning volume var() bool LightningbNoOverride; //lightning Nooverride var() byte LightningRadius; //lightning radius var() bool bPlayRandomSound; //lightning will play 'LightningSound' or random sound from array 'LightningSounds[16]' var() sound LightningSounds[16]; //lightning sounds (random play) var() int numSounds; replication { // Variables the server should send to the client. reliable if ( Role==ROLE_Authority ) PlayThunder; } function PlayThunder() { local int i; if (bPlayRandomSound) { i = Rand(numSounds); PlaySound(LightningSounds[i], SLOT_None, float(LightningVolume)/15, LightningbNoOverride, float(LightningRadius)*25); } else if (!bPlayRandomSound) { PlaySound(LightningSound, SLOT_None, float(LightningVolume)/15, LightningbNoOverride, float(LightningRadius)*25); } } defaultproperties { LightningSound=Sound'UnrealShare.Rain.Thunder' LightningVolume=255 LightningRadius=255 Texture=Texture'UnrealShare.Icons.LightningS' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |