Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
dp88_AI_Tank_Offensive Class Reference

Offensive Tank AI. More...

#include <dp88_customAI.h>

Protected Member Functions

virtual int GetPreferredAttackRange (GameObject *obj, GameObject *target)
 
virtual bool IsValidTarget (GameObject *obj, GameObject *target)
 
virtual dp88_AI_ObjectiveChooseNewObjective (GameObject *obj)
 
- Protected Member Functions inherited from dp88_AI_Unit
void ResetAllActions (GameObject *obj)
 
virtual bool ShouldPursueTarget (GameObject *obj, GameObject *target)
 
- Protected Attributes inherited from dp88_AI_Unit
bool m_bMovingToObjective
 
bool m_bMovingToTarget
 

Additional Inherited Members

Detailed Description

Author
Daniel Paul (danpa.nosp@m.ul88.nosp@m.@yaho.nosp@m.o.co.nosp@m..uk)

This is a somewhat experimental AI for vehicles which can track targets over a predefined distance and attack them. This script is not yet suitable for use in maps or mods and is subject to change.

Member Function Documentation

◆ ChooseNewObjective()

dp88_AI_Objective * dp88_AI_Tank_Offensive::ChooseNewObjective ( GameObject * obj)
protectedvirtual

Select a new objective

Implements dp88_AI_Unit.

◆ GetPreferredAttackRange()

int dp88_AI_Tank_Offensive::GetPreferredAttackRange ( GameObject * obj,
GameObject * target )
protectedvirtual

Get the preferred attack range for the specified target

Implements dp88_AI_Unit.

◆ IsValidTarget()

bool dp88_AI_Tank_Offensive::IsValidTarget ( GameObject * obj,
GameObject * target )
protectedvirtual

Check if the specified object is a valid target at this time

Implements dp88_AI_Unit.