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 00048 00049 00050 |
//============================================================================= // Decal support for Unreal by Smirftsch. Partially ported from UT // BigWallCrack added for a BigRock decal // usage: add in the selected class // in simulated function HitWall // if ( Level.NetMode != NM_DedicatedServer ) // Spawn(class'BigWallCrack',,,Location, rotator(HitNormal)); //============================================================================= class BigWallCrack expands Scorch; #exec TEXTURE IMPORT NAME=BigWallCrack FILE=Textures\Decals\big_crk.pcx LODSET=2 #exec TEXTURE IMPORT NAME=BigWallCrack2 FILE=Textures\Decals\big_crk2.pcx LODSET=2 #exec TEXTURE IMPORT NAME=BigWallCrack3 FILE=Textures\Decals\big_crk3.pcx LODSET=2 #exec TEXTURE IMPORT NAME=BigWallCrack4 FILE=Textures\Decals\big_crk4.pcx LODSET=2 #exec TEXTURE IMPORT NAME=BigWallCrack5 FILE=Textures\Decals\big_crk5.pcx LODSET=2 #exec TEXTURE IMPORT NAME=BigWallCrack6 FILE=Textures\Decals\big_crk6.pcx LODSET=2 #exec TEXTURE IMPORT NAME=BigWallCrack7 FILE=Textures\Decals\big_crk7.pcx LODSET=2 #exec TEXTURE IMPORT NAME=BigWallCrack8 FILE=Textures\Decals\big_crk8.pcx LODSET=2 #exec TEXTURE IMPORT NAME=BigWallCrack9 FILE=Textures\Decals\big_crk9.pcx LODSET=2 var() texture CrackTextures[9]; simulated function PostBeginPlay() { if (Class'Scorch'.Default.DecalLifeSpan<0) SetTimer(1.0, false); //Default else LifeSpan=fmax(0,Class'Scorch'.Default.DecalLifeSpan); //Stay around as long as the user wants in seconds. 0 = Forever. Texture = CrackTextures[Rand(ArrayCount(CrackTextures))]; Super.PostBeginPlay(); } defaultproperties { CrackTextures(0)=Texture'UnrealShare.BigWallCrack' CrackTextures(1)=Texture'UnrealShare.BigWallCrack2' CrackTextures(2)=Texture'UnrealShare.BigWallCrack3' CrackTextures(3)=Texture'UnrealShare.BigWallCrack4' CrackTextures(4)=Texture'UnrealShare.BigWallCrack5' CrackTextures(5)=Texture'UnrealShare.BigWallCrack6' CrackTextures(6)=Texture'UnrealShare.BigWallCrack7' CrackTextures(7)=Texture'UnrealShare.BigWallCrack8' CrackTextures(8)=Texture'UnrealShare.BigWallCrack9' bImportant=False MultiDecalLevel=0 Texture=Texture'UnrealShare.BigWallCrack' DrawScale=0.400000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |