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 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 |
//============================================================================= // 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 { splats(0)=Texture'BloodSplat1' splats(1)=Texture'BloodSplat2' splats(2)=Texture'BloodSplat3' BloodDecalClass=class'BloodSplatter' Style=STY_Alpha mParticleType=PT_Sprite mDirDev=(X=0.1000000,Y=0.100000,Z=0.100000) mPosDev=(X=0.00000,Y=0.00000,Z=0.00000) mDelayRange(0)=0.000000 mDelayRange(1)=0.00000 mLifeRange(0)=1.00000 mLifeRange(1)=2.000000 mSpeedRange(0)=0.000000 mSpeedRange(1)=85.000000 mSizeRange(0)=5.500000 mSizeRange(1)=9.500000 mMassRange(0)=0.02000 mMassRange(1)=0.040000 mGrowthRate=3.0 mRegenRange(0)=0.000000 mRegenRange(1)=0.000000 mRegenDist=0.000000 mMaxParticles=13 mStartParticles=13 DrawScale=1.000000 ScaleGlow=1.000000 mAirResistance=0.6 mAttenuate=True mRegen=False Skins(0)=Texture'pcl_Blooda' CollisionRadius=0.000000 CollisionHeight=0.000000 mColorRange(0)=(R=255,G=255,B=255,A=255) mColorRange(1)=(R=255,G=255,B=255,A=255) mCollision=False mRandOrient=True bForceAffected=False mRandTextures=True mNumTileColumns=4 mNumTileRows=4 bUnlit=True LifeSpan=3.5 bOnlyRelevantToOwner=true RemoteRole=ROLE_SimulatedProxy bNetTemporary=true } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |