# SFVehicle.SFTurret

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 |
    //=============================================================================
    // Spatial Fear
    // Name: SFTurret
    // Description: A stationary vehicle class
    //
    // Author: Gert Jen Peltenburg
    //=============================================================================
    class SFTurret expands SFVehicle;

    // turrets don't move, but they do rotate
    simulated function DoPhysics(float DeltaTime)
    {
    }

    simulated function InterpretControls(bool bJustFired,bool bFire,bool bJustAltFired,bool bAltFire,
                               float aVehicleSpeedControl,float aTurretTurn,float aVehicleTurn,
                               float aVehicleUp,float aTurretUp,bool bJustJumped,bool bJustDucked)
    {
     local float NewDesiredSpeed;

     if(aTurretTurn<0)
      controlinputYaw = (aTurretTurn/16384.0)*YawLeftRate;
     else
      controlinputYaw = (aTurretTurn/16384.0)*YawRightRate;

     if(aTurretUp<0)
      controlinputPitch = (aTurretUp/16384.0)*PitchUpRate;
     else
      controlinputPitch = (aTurretUp/16384.0)*PitchDownRate;

     NewDesiredSpeed = 0;
    }

    defaultproperties
    {
         Armor=100
         InitialHitPoints=1000
         FullHitPoints=1000
         PhysicalRotationRate=(Pitch=16384,Yaw=16384,Roll=16384)
         Elasticity=0.000000
         bRepairable=False
         RepairTime=0.000000
         bIndependent=True
         bCriticalComponent=True
         bDamageTriggered=True
    }

class file time: 12/7/2003 3:58:26 PM - creation time: 12/7/2003 4:03:45 PM
Created with UnCodeX