Overview | Package | Class | Source | Class tree | Glossary | Deus Ex 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 |
//============================================================================= // AmmoSabot. //============================================================================= class AmmoSabot extends DeusExAmmo; function bool UseAmmo(int AmountNeeded) { local vector offset, tempvec, X, Y, Z; local ShellCasing2 shell; if (Super.UseAmmo(AmountNeeded)) { GetAxes(Pawn(Owner).ViewRotation, X, Y, Z); offset = Owner.CollisionRadius * X + 0.3 * Owner.CollisionRadius * Y; tempvec = 0.8 * Owner.CollisionHeight * Z; offset.Z += tempvec.Z; if ((DeusExMPGame(Level.Game) != None) && (!DeusExMPGame(Level.Game).bSpawnEffects)) { shell = None; } else { shell = spawn(class'ShellCasing2',,, Owner.Location + offset); } if (shell != None) { shell.Velocity = (FRand()*20+90) * Y + (10-FRand()*20) * X; shell.Velocity.Z = 0; } return True; } return False; } defaultproperties { bShowInfo=True AmmoAmount=12 MaxAmmo=96 ItemName="12 Gauge Sabot Shells" ItemArticle="some" PickupViewMesh=LodMesh'DeusExItems.AmmoShell' Icon=Texture'DeusExUI.Icons.BeltIconAmmoSabot' largeIcon=Texture'DeusExUI.Icons.LargeIconAmmoSabot' largeIconWidth=35 largeIconHeight=46 Description="A 12 gauge shotgun shell surrounding a solid core of tungsten that can punch through all but the thickest hardened steel armor at close range; however, its ballistic profile will result in minimal damage to soft targets." beltDescription="SABOT" Skin=Texture'DeusExItems.Skins.AmmoShellTex2' Mesh=LodMesh'DeusExItems.AmmoShell' CollisionRadius=9.300000 CollisionHeight=10.210000 bCollideActors=True } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |