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 |
class TankGunnerWeapon extends TurretWeapon; var() float spread; protected function Projectile makeProjectile(Rotator fireRot, Vector fireLoc) { local Rotator r; local float spreadInRotUnits; spreadInRotUnits = spread * 65536 / 360; r.Yaw = spreadInRotUnits * (2.0f * FRand() - 1); r.Pitch = spreadInRotUnits * (2.0f * FRand() - 1); return Super.makeProjectile( fireRot + r, fireLoc ); } defaultproperties { spread = 0.078 firstPersonMesh = Mesh'Weapons.Chaingun' firstPersonOffset = (X=-23,Y=26,Z=-24) roundsPerSecond = 12 ammoCount = 150 ammoUsage = 0 projectileClass = class'ChaingunProjectile' projectileVelocity = 5500 projectileInheritedVelFactor = 1.0 aimClass = class'AimProjectileWeapons' animClass = class'CharacterEquippableAnimator' animPrefix = "Chaingun" fireState = FirePressed releaseFireState = FireReleased inventoryIcon = texture'GUITribes.InvButtonChaingun' hudIcon = texture'HUD.Tabs' hudIconCoords = (U=205,V=472,UL=80,VL=40) hudRefireIcon = texture'HUD.Tabs' hudRefireIconCoords = (U=205,V=421,UL=80,VL=40) } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |