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 |
// ==================================================================== // A land mine. Blows up players who touch it and chucks their bodies into the air // // Written by Matt Oelfke // (C) 2003, Epic Games, Inc. All Rights Reserved // ==================================================================== class LandMine extends Triggers placeable; var() vector ChuckVelocity; var() class<DamageType> DamageType; var() class<Emitter> BlowupEffect; var() Sound BlowupSound; function Touch(Actor Other) { if (Pawn(Other) != None) { Other.PendingTouch = self; PendingTouch = Other; } } function PostTouch(Actor Other) { local Pawn P; P = Pawn(Other); if (P != None) { PlaySound(BlowupSound,,3.0*TransientSoundVolume); spawn(BlowupEffect,,,P.Location - P.CollisionHeight * vect(0,0,1)); P.AddVelocity(ChuckVelocity); P.Died(None, DamageType, P.Location); } } defaultproperties { ChuckVelocity=(Z=1000.000000) DamageType=Class'Engine.DamageType' BlowupEffect=Class'XEffects.LandMineExplosion' BlowupSound=Sound'WeaponSounds.BaseImpactAndExplosions.BExplosion3' CollisionRadius=100.000000 CollisionHeight=50.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |