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 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 |
//============================================================================= // BloodSpurt. //============================================================================= class BloodSpurt extends xEmitter; #exec TEXTURE IMPORT NAME=pcl_Blooda FILE=TEXTURES\Blooda.tga GROUP=Skins Alpha=1 DXT=5 #exec TEXTURE IMPORT NAME=BloodSplat1 FILE=TEXTURES\DECALS\BloodSplat1.tga LODSET=2 MODULATED=1 UCLAMPMODE=CLAMP VCLAMPMODE=CLAMP #exec TEXTURE IMPORT NAME=BloodSplat2 FILE=TEXTURES\DECALS\BloodSplat2.tga LODSET=2 MODULATED=1 UCLAMPMODE=CLAMP VCLAMPMODE=CLAMP #exec TEXTURE IMPORT NAME=BloodSplat3 FILE=TEXTURES\DECALS\BloodSplat3.tga LODSET=2 MODULATED=1 UCLAMPMODE=CLAMP VCLAMPMODE=CLAMP var Class<Actor> BloodDecalClass; var texture Splats[3]; var vector HitDir; var bool bMustShow; replication { unreliable if ( bNetInitial && (Role==ROLE_Authority) ) bMustShow,HitDir; } simulated function PostNetBeginPlay() { if ( Level.NetMode != NM_DedicatedServer ) WallSplat(); else LifeSpan = 0.2; } simulated function WallSplat() { local vector WallHit, WallNormal; local Actor WallActor; if ( Level.bDropDetail || (!bMustShow && (FRand() > 0.8)) || (BloodDecalClass == None) ) return; if ( HitDir == vect(0,0,0) ) { if ( Owner != None ) HitDir = Location - Owner.Location; else HitDir.Z = -1; } HitDir = Normal(HitDir); WallActor = Trace(WallHit, WallNormal, Location + 350 * HitDir, Location, false); if ( WallActor != None ) spawn(BloodDecalClass,,,WallHit + 20 * (WallNormal + VRand()), rotator(-WallNormal)); } static function PrecacheContent(LevelInfo Level) { local int i; Super.PrecacheContent(Level); if ( Default.BloodDecalClass != None ) { for ( i=0; i<3; i++ ) Level.AddPrecacheMaterial(Default.splats[i]); } } defaultproperties { BloodDecalClass=Class'XEffects.BloodSplatter' Splats(0)=Texture'XEffects.BloodSplat1' Splats(1)=Texture'XEffects.BloodSplat2' Splats(2)=Texture'XEffects.BloodSplat3' mRegen=Falsch mStartParticles=13 mMaxParticles=13 mLifeRange(0)=1.000000 mLifeRange(1)=2.000000 mRegenRange(0)=0.000000 mRegenRange(1)=0.000000 mDirDev=(X=0.100000,Y=0.100000,Z=0.100000) mSpeedRange(0)=0.000000 mSpeedRange(1)=85.000000 mMassRange(0)=0.020000 mMassRange(1)=0.040000 mAirResistance=0.600000 mRandOrient=Wahr mSizeRange(0)=5.500000 mSizeRange(1)=9.500000 mGrowthRate=3.000000 mRandTextures=Wahr mNumTileColumns=4 mNumTileRows=4 bOnlyRelevantToOwner=Wahr RemoteRole=ROLE_SimulatedProxy LifeSpan=3.500000 Skins(0)=Texture'XEffects.Skins.pcl_Blooda' Style=STY_Alpha } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |