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 |
//============================================================================= // Decal support for Unreal by Smirftsch. Partially ported from UT // BlastMark added for a BlastMark decal when using Rockets and Grenades // usage: // if the class uses the explode function (such as Rockets, Dispersionammo) // add in the selected class // ExplosionDecal=class'Unrealshare.BlastMark' into the default properties // otherwise (Grenades) put in function BlowUp(vector HitLocation) // if ( Level.NetMode != NM_DedicatedServer ) // Spawn(class'BlastMark',,,Location, rotator(HitNormal)); //============================================================================= class BlastMark expands Scorch; #exec TEXTURE IMPORT NAME=Blast FILE=Textures\Decals\Blast1_1.pcx LODSET=2 #exec TEXTURE IMPORT NAME=Blast2 FILE=Textures\Decals\Blast1_2.pcx LODSET=2 #exec TEXTURE IMPORT NAME=Blast3 FILE=Textures\Decals\Blast1_3.pcx LODSET=2 simulated function BeginPlay() { local float f; f = FRand(); if (f<0.33) Texture = texture'UnrealShare.Blast'; else if (f<0.66) Texture = texture'UnrealShare.Blast2'; else Texture = texture'UnrealShare.Blast3'; } defaultproperties { Texture=Texture'UnrealShare.Blast' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |