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

UT2k4AssaultFull.FM_LinkTurret_AltFire


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
//=============================================================================
// FM_LinkTurret_AltFire
//=============================================================================
// Created by Laurent Delayen
// © 2003, Epic Games, Inc.  All Rights Reserved
//=============================================================================

class FM_LinkTurret_AltFire extends LinkFire;

var float VehicleDamageMult;

function PlayFiring()
{
    if ( LinkGun(Weapon).Links <= 0 )
        ClientPlayForceFeedback("BLinkGunBeam1");

    super(WeaponFire).PlayFiring();
}

simulated function vector GetFireStart(vector X, vector Y, vector Z)
{
    return ASVehicle(Instigator).GetFireStart();
}

simulated function bool AllowFire()
{
    return true;
}

simulated function bool myHasAmmo( LinkGun LinkGun )
{
    return true;
}

simulated function Rotator  GetPlayerAim( vector StartTrace, float InAimError )
{
    local vector HL, HN;
    ASVehicle(Instigator).CalcWeaponFire( HL, HN );
    return Rotator( HL - StartTrace );
}

simulated function float AdjustLinkDamage( LinkGun LinkGun, Actor Other, float Damage )
{
    Damage = Damage * (1.5*Linkgun.Links+1);

    if ( Other.IsA('Vehicle') )
        Damage *= VehicleDamageMult;

    return Damage;
}

defaultproperties
{
     VehicleDamageMult=2.500000
     BeamEffectClass=Class'UT2k4AssaultFull.FX_LinkTurret_BeamEffect'
     DamageType=Class'UT2k4AssaultFull.DamTypeLinkTurretBeam'
     Damage=15
     TraceRange=5000.000000
     FireAnim="Fire"
     AmmoClass=Class'UT2k4Assault.Ammo_Dummy'
     AmmoPerFire=0
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:44:00.000 - Creation time: Mo 16.4.2007 11:20:47.203 - Created with UnCodeX