UE2:U2Weapon instance functions (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
U2XMP Object >> Actor >> Inventory >> Weapon >> U2Weapon (instance functions)

;Other member categories for this class::

Instance functions

AdjustAim

function bool AdjustAim (bool bAltFire, bool bInstant, float FireSpread, class<ProjectileProjClass, bool bWarnTarget, bool bTrySplash)


AdjustProjectileAim

function bool AdjustProjectileAim (bool bAltFire, class<ProjectileProjectileClass, Object.Vector projStart, float FireSpread, bool bLeadTarget, bool bWarnTarget, bool bTossed, bool bTrySplash)


AdjustTraceAim

function bool AdjustTraceAim (float projSpeed, Object.Vector projStart, float FireSpread, bool bLeadTarget, bool bWarnTarget, bool bTossed, bool bTrySplash)


AdjustTraceFireHit

function AdjustTraceFireHit (out Actor.CheckResult Hit)


AltFire

simulated function AltFire ()

Overrides: Weapon.AltFire


AuthorityAltFire

function AuthorityAltFire ()


AuthorityFire

function AuthorityFire ()


CalcDrawOffset

simulated function Object.Vector CalcDrawOffset ()


CalcFireOffset

simulated function Object.Vector CalcFireOffset (Object.Vector X, Object.Vector Y, Object.Vector Z)


CalcShellOffset

simulated function Object.Vector CalcShellOffset (Object.Vector X, Object.Vector Y, Object.Vector Z)


ClearWeaponEffects

simulated function ClearWeaponEffects ()

Overrides: Weapon.ClearWeaponEffects


ClientFinish

simulated function ClientFinish ()


ClientTraceImpact

simulated function ClientTraceImpact (Actor.CheckResult Hit)


ClientWeaponSet

simulated function ClientWeaponSet (bool bOptionalSet)

Overrides: Weapon.ClientWeaponSet


ConstructDeco

simulated function ConstructDeco (int i)


DefaultRating

function float DefaultRating (Actor Target, bool bUseAltMode)


DestructDeco

simulated function DestructDeco (int i)


DispatchWeaponNotifies

function DispatchWeaponNotifies (out Actor.CheckResult Hit)


DMW

function final DMW (coerce string Msg)


DrawDecos

simulated function DrawDecos (Canvas Canvas)


DrawWeapon

simulated function DrawWeapon (Canvas Canvas)


DropFrom

function DropFrom (Object.Vector StartLocation)

Overrides: Weapon.DropFrom


EjectShell

simulated function EjectShell (class<U2ShellCaseShellClass)


EverywhereAltFire

simulated function EverywhereAltFire ()


EverywhereFire

simulated function EverywhereFire ()


FindBestTarget

function Actor FindBestTarget (Object.Vector Loc, Object.Rotator ViewRot, float MaxAngleInDegrees)


FindTraceTarget

function Actor FindTraceTarget (Object.Vector Loc, Object.Rotator ViewRot)


Finish

simulated function Finish ()


Fire

simulated function Fire ()

Overrides: Weapon.Fire


GetAltFireAmmoUsed

simulated function int GetAltFireAmmoUsed ()


GetAttitudeTo

simulated function Controller.EAttitude GetAttitudeTo (Actor A)


GetClipAmount

simulated function int GetClipAmount ()

Overrides: Weapon.GetClipAmount


GetClipSize

simulated function int GetClipSize ()

Overrides: Weapon.GetClipSize


GetConsole

simulated function UIConsole GetConsole ()


GetFireAmmoUsed

simulated function int GetFireAmmoUsed ()


GetGunButtSound

function Sound GetGunButtSound ()


GetModeRating

function float GetModeRating (Actor Target, float DistanceToEnemy, float RangeMin, float RangeIdeal, float RangeMax, float RangeLimit, float RatingInsideMin, float RatingRangeMin, float RatingRangeIdeal, float RatingRangeMax, float RatingRangeLimit, float RatingBase, bool bUseAltMode)


GetWeaponAnimationType

simulated function LicenseePawn.EWeaponAnimationType GetWeaponAnimationType ()


GetWeaponDistanceToEnemy

function float GetWeaponDistanceToEnemy (Actor Target)


GetWeaponRating

function float GetWeaponRating (Actor Target, out byte bUseAltMode, bool bSupportsFire, bool bSupportsAltFire)


GiveAmmo

function GiveAmmo (Pawn Other)

Overrides: Weapon.GiveAmmo


GiveTo

function GiveTo (Pawn Other, optional bool bDontTryToSwitch)

Overrides: Weapon.GiveTo


GreaterThan

simulated function bool GreaterThan (Weapon Other)


HandleCrosshairGlow

simulated function HandleCrosshairGlow (Canvas Canvas)


HandlePickupQuery

function bool HandlePickupQuery (Pickup Item)

Overrides: Weapon.HandlePickupQuery


HandleTargetDetails

simulated function HandleTargetDetails (Actor A, Canvas Canvas, Object.Vector ViewLoc, Object.Rotator ViewRot)


HandleWaterShot

function HandleWaterShot (Object.Vector HitLocation, Object.Vector Start, Object.Vector End)


HasEnoughAmmo

function bool HasEnoughAmmo (int MinUses)

Overrides: Weapon.HasEnoughAmmo


HasEnoughModeAmmo

function bool HasEnoughModeAmmo (int AmmoUsed, int NumUses)


IsTargetable

function bool IsTargetable (Actor A)


LessThan

simulated function bool LessThan (Weapon Other)


MaybePixieReload

function MaybePixieReload ()


MeleeAttack

function MeleeAttack ()


MeshAgentCallActionEx

simulated function MeshAgentCallActionEx (name Sequence)


MeshAgentSetInputCurValueEx

simulated function MeshAgentSetInputCurValueEx (name Input, name Value)


MouseMove

function bool MouseMove (Console.EInputKey Key, Console.EInputAction Action, float Delta)


NextWeapon

simulated function Weapon NextWeapon (Weapon aChoice, Weapon aWeapon)

Overrides: Inventory.NextWeapon


NoEnemyRating

function float NoEnemyRating (bool bUseAltMode)


NotifyCutsceneBegin

simulated function NotifyCutsceneBegin ()


NotifyPlaySoundSlot

simulated function NotifyPlaySoundSlot (string Slot)


NotUsingRangeRating

function float NotUsingRangeRating (Actor Target, bool bUseAltMode)


PawnAgentEvent

simulated function PawnAgentEvent (name InEventName)


PlayAltFiring

simulated function PlayAltFiring ()

Overrides: Weapon.PlayAltFiring


PlayAnimEx

simulated function PlayAnimEx (name Sequence)


PlayFiring

simulated function PlayFiring ()

Overrides: Weapon.PlayFiring


PlayPostSelect

simulated function PlayPostSelect ()


PlaySelect

simulated function PlaySelect ()

Overrides: Weapon.PlaySelect


PostModifyRatings

function PostModifyRatings (Actor Target, float DistanceToEnemy, out float PriFireRating, out float AltFireRating)


PostRecvOwner

simulated function PostRecvOwner ()

Overrides: Weapon.PostRecvOwner


PostSetAimingParameters

function PostSetAimingParameters (bool bAltFire, bool bInstant, float FireSpread, class<ProjectileProjClass, bool bWarnTarget, bool bTrySplash)


PreModifyRatings

function PreModifyRatings (Actor Target, float DistanceToEnemy, out float PriFireRating, out float AltFireRating, out byte bGetFireRating, out byte bGetAltFireRating)


PreSetAimingParameters

function bool PreSetAimingParameters (bool bAltFire, bool bInstant, float FireSpread, class<ProjectileProjClass, bool bWarnTarget, bool bTrySplash)


PrevWeapon

simulated function Weapon PrevWeapon (Weapon aChoice, Weapon aWeapon)

Overrides: Inventory.PrevWeapon


ProcessTraceHitEx

function ProcessTraceHitEx (Object.Vector HitDirection, Actor.CheckResult Hit, float EffectiveDamage)


ProjectileFire

function Projectile ProjectileFire (class<ProjectileProjClass)

Overrides: Weapon.ProjectileFire


RateSelf

function float RateSelf (Actor Target, out byte bUseAltMode)

Overrides: Weapon.RateSelf


RecommendWeapon

simulated function Weapon RecommendWeapon (Actor Target, out float Rating, out byte bUseAltMode)

Overrides: Weapon.RecommendWeapon


Refresh

function Refresh ()


Reload

simulated function Reload ()


SelectFiringMode

function byte SelectFiringMode (Actor Target)


SetCrosshair

simulated function SetCrosshair ()


SetFireSkin

simulated function SetFireSkin ()


SetFireStartLocations

function SetFireStartLocations ()


ShouldSwitchWeapon

function bool ShouldSwitchWeapon (Weapon CurrentWeapon, bool bOptionalSet)

Overrides: Weapon.ShouldSwitchWeapon


StartAdjust

function StartAdjust ()


SuggestAttackStyle

function float SuggestAttackStyle (Actor Target)

Overrides: Weapon.SuggestAttackStyle


SuggestAttackStyleMode

function float SuggestAttackStyleMode (Actor Target, float RangeMin, float RangeIdeal, float RangeMax, bool bUseAltMode)


SuggestAttackStyleNoEnemy

function float SuggestAttackStyleNoEnemy (bool bUseAltMode)


SuggestAttackStyleNoRange

function float SuggestAttackStyleNoRange (bool bUseAltMode)


SuggestDefenseStyle

function float SuggestDefenseStyle (Actor Target)

Overrides: Weapon.SuggestDefenseStyle


SwitchAway

simulated function SwitchAway ()


SwitchPriority

simulated function float SwitchPriority ()

Overrides: Weapon.SwitchPriority


TraceFire

function TraceFire (float TraceSpread)

Overrides: Weapon.TraceFire


TraceFireFailed

function TraceFireFailed (Object.Vector EndPoint)


UnSetCrosshair

simulated function UnSetCrosshair ()


UnsetFireSkin

simulated function UnsetFireSkin ()


UpdateAltRanges

function UpdateAltRanges ()


UpdateCrosshair

simulated function UpdateCrosshair (Canvas Canvas)


UpdatePriRanges

function UpdatePriRanges ()


UpdateRanges

function UpdateRanges (float Speed, float DamageRadius, out float RangeIdeal, out float RangeMax, out float RangeLimit)


WeaponChange

simulated function Weapon WeaponChange (byte F, Weapon aChoice)

Overrides: Weapon.WeaponChange