Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# Tyrion.AI_Duel

Extends
  AI_CharacterAction
Modifiers
  implements IWeaponSelectionFunction editinlinenew

    Core.Object
    |
    +-- Core.RefCount
       |
       +-- Engine.Tyrion_ActionBase
          |
          +-- Tyrion.ActionBase
             |
             +-- Tyrion.AI_RunnableAction
                |
                +-- Tyrion.AI_Action
                   |
                   +-- Tyrion.AI_CharacterAction
                      |
                      +-- Tyrion.AI_Duel

Constants Summary
JETPACK_BEHIND_DIST | = | 2000.0f
MAX_TAKECOVER_DIST | = | 3000.0f

Variables Summary
BaseAICharacter | ai
vector | destination
AI_Goal | gainHeightGoal
float | jetpackBehindDistance
AI_Goal | takeCoverGoal
Character | targetCharacter
AI_TargetMemorySensor | targetMemorySensor
AI_Duel
float | idealBucklerRange
float | idealGrenadeLauncherRange
float | idealSpinfusorRange
float | maxBucklerRange
float | maxEnergyBladeRange
float | maxSpinfusorRange
InternalParameters
IFollowFunction | followFunction
Pawn | target
IWeaponSelectionFunction | weaponSelection
Parameters
class<Weapon> | preferredWeaponClass
int | rank
Name | targetName

Inherited Variables from Tyrion.AI_CharacterAction
DummyHeadGoal, DummyMovementGoal, DummyWeaponGoal, headResourceStorage, movementResourceStorage, pawn, weaponResourceStorage

Inherited Variables from Tyrion.AI_Action
achievingGoal, childGoals, heuristicValue, nsChild, resourceUsage, satisfiesGoal, waitingForGoalsN

Functions Summary
| Weapon | bestWeapon (Character ai, Pawn target, class preferredWeaponClass ))
| bool | bShouldFire (BaseAICharacter ai, Weapon weapon ))
|  | cleanup ()))
|  | clearGoals (AI_Goal goal ))
| float | firingRange (class weaponClass ))
|  | goalAchievedCB (AI_Goal goal, AI_Action child ))
|  | goalNotAchievedCB (AI_Goal goal, AI_Action child, ACT_ErrorCodes errorCode ))
| float | selectionHeuristic (AI_Goal goal ))

Inherited Functions from Tyrion.AI_CharacterAction
baseAIcharacter, character, characterResource, classConstruct, cleanup, clearDummyGoals, clearDummyHeadGoal, clearDummyMovementGoal, clearDummyWeaponGoal, findResource, getResourceClass, headResource, initAction, movementResource, rook, useResources, weaponResource

Inherited Functions from Tyrion.AI_Action
fail, getChildReference, getResource, goalAchievedCB, goalNotAchievedCB, initAction, instantFail, instantSucceed, interruptAction, interruptGoalIf, myAddRef, OnSensorMessage, removeAction, removeChildReference, resourceStolenCB, runAction, selectionHeuristic, setChildReference, succeed, waitForAllGoals, waitForAllGoalsConsidered, waitForAllGoalsInList, waitForAnyGoal, waitForGoal, waitForResourcesAvailable

States Summary

Running Source code
state Running

Constants Detail

#### JETPACK_BEHIND_DIST Source code

const JETPACK_BEHIND_DIST = 2000.0f;

#### MAX_TAKECOVER_DIST Source code

const MAX_TAKECOVER_DIST = 3000.0f;

Variables Detail

#### ai Source code

var BaseAICharacter ai;

#### destination Source code

var vector destination;

#### gainHeightGoal Source code

var AI_Goal gainHeightGoal;

#### jetpackBehindDistance Source code

var float jetpackBehindDistance;

#### takeCoverGoal Source code

var AI_Goal takeCoverGoal;

#### targetCharacter Source code

var Character targetCharacter;

#### targetMemorySensor Source code

var AI_TargetMemorySensor targetMemorySensor;

### AI_Duel

#### idealBucklerRange Source code

var(AI_Duel) float idealBucklerRange;

> preferred distance for using the buckler

#### idealGrenadeLauncherRange Source code

var(AI_Duel) float idealGrenadeLauncherRange;

> preferred distance for using the grenade launcher

#### idealSpinfusorRange Source code

var(AI_Duel) float idealSpinfusorRange;

> preferred distance for using the spinfusor

#### maxBucklerRange Source code

var(AI_Duel) float maxBucklerRange;

> maximum distance at which the Duelist uses the buckler

#### maxEnergyBladeRange Source code

var(AI_Duel) float maxEnergyBladeRange;

> Maximum distance at which to use the energy blade

#### maxSpinfusorRange Source code

var(AI_Duel) float maxSpinfusorRange;

> maximum distance at which the Duelist uses the spinfusor

### InternalParameters

#### followFunction Source code

var(InternalParameters) editconst IFollowFunction followFunction;

#### target Source code

var(InternalParameters) editconst Pawn target;

#### weaponSelection Source code

var(InternalParameters) editconst IWeaponSelectionFunction weaponSelection;

### Parameters

#### preferredWeaponClass Source code

var(Parameters) class<Weapon> preferredWeaponClass;

> AI will use this weapon if at all possible

#### rank Source code

var(Parameters) int rank;

> Rank of the duelist (1, 2, or 3)

#### targetName Source code

var(Parameters) editinline Name targetName;

> Label of target (any Pawn)

Functions Detail

#### bestWeapon Source code

function Weapon bestWeapon ( Character ai, Pawn target, class<Weapon> preferredWeaponClass ) )

#### bShouldFire Source code

function bool bShouldFire ( BaseAICharacter ai, Weapon weapon ) )

#### cleanup Source code

function cleanup ( ) )

#### clearGoals Source code

final function clearGoals ( AI_Goal goal ) )

#### firingRange Source code

function float firingRange ( class<Weapon> weaponClass ) )

#### goalAchievedCB Source code

function goalAchievedCB ( AI_Goal goal, AI_Action child ) )

#### goalNotAchievedCB Source code

function goalNotAchievedCB ( AI_Goal goal, AI_Action child, ACT_ErrorCodes errorCode ) )

#### selectionHeuristic Source code

static function float selectionHeuristic ( AI_Goal goal ) )

Defaultproperties

    defaultproperties
    {
    	satisfiesGoal = class'AI_AttackGoal'

    	maxSpinfusorRange			= 3000
    	maxBucklerRange				= 1800
    	maxEnergyBladeRange			= 750

    	idealSpinfusorRange			= 2000
    	idealGrenadelauncherRange	= 3000
    	idealBucklerRange			= 1200
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Creation time: st 23.5.2018 00:10:26.718 - Created with UnCodeX