Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UT2k4Assault.Weapon_Turret_Minigun


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
//=============================================================================
// Weapon_Turret
//=============================================================================

class Weapon_Turret_Minigun extends Weapon
    config(user)
    HideDropDown
    CacheExempt;

#exec OBJ LOAD FILE=..\Animations\AS_Vehicles_M.ukx

simulated function ClientStartFire(int mode)
{
    local PlayerController PC;
    if ( mode == 1 )
    {
        PC = PlayerController(Instigator.Controller);
        if ( PC.DesiredFOV == PC.DefaultFOV )
            PC.DesiredFOV = ASTurret(Instigator).MinPlayerFOV;
        else
            PC.DesiredFOV = PC.DefaultFOV;
        PlayerController(Instigator.Controller).bAltFire = 0;
    }
    else
        super.ClientStartFire( mode );
}


simulated function PawnUnpossessed()
{
    if ( (Instigator != None) && (PlayerController(Instigator.Controller) != None) )
        PlayerController(Instigator.Controller).DesiredFOV = PlayerController(Instigator.Controller).DefaultFOV;
}

/* BestMode() choose between regular or alt-fire */
function byte BestMode()
{
    return 0;
}

simulated function bool HasAmmo()
{
    return true;
}

//=============================================================================
// defaultproperties
//=============================================================================

defaultproperties
{
     FireModeClass(0)=Class'UT2k4Assault.FM_Turret_Minigun_Fire'
     FireModeClass(1)=Class'UT2k4Assault.FM_Turret_Minigun_AltFire'
     AIRating=0.680000
     CurrentRating=0.680000
     bCanThrow=False
     bNoInstagibReplace=True
     DisplayFOV=60.000000
     Priority=1
     SmallViewOffset=(Z=-40.000000)
     CenteredRoll=0
     PlayerViewOffset=(Z=-40.000000)
     AttachmentClass=Class'UT2k4Assault.WA_Turret_Minigun'
     ItemName="Turret weapon"
     DrawType=DT_None
     DrawScale=3.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Tue 24/10/2006 17:00:14.000 - Creation time: Wed 7/2/2007 19:16:58.921 - Created with UnCodeX