C# Class Questor.Modules.Combat

The combat class will target and kill any NPC that is targeting the questor. It will also kill any NPC that is targeted but not agressing the questor.
Afficher le fichier Open project: rixim/Questor

Private Properties

Свойство Type Description
ActivateWeapons void
GetTarget EntityCache
TargetCombatants void

Méthodes publiques

Méthode Description
ActivateNos ( EntityCache target ) : void

Activate Nos

ActivateStasisWeb ( EntityCache target ) : void

Activate StasisWeb

ActivateTargetPainters ( EntityCache target ) : void

Activate target painters

CanActivate ( Questor.Modules.ModuleCache module, EntityCache entity, bool isWeapon ) : bool

Returns true if it can activate the weapon on the target

The idea behind this function is that a target that explodes isnt being fired on within 5 seconds

ProcessState ( ) : void
ReloadAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool

Reload correct (tm) ammo for the NPC

ReloadEnergyWeaponAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool
ReloadNormalAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool

Reload correct (tm) ammo for the NPC

Private Methods

Méthode Description
ActivateWeapons ( EntityCache target ) : void

Activate weapons

GetTarget ( ) : EntityCache

Returns the target we need to activate everything on

TargetCombatants ( ) : void

Target combatants

This only targets ships that are targeting you

Method Details

ActivateNos() public méthode

Activate Nos
public ActivateNos ( EntityCache target ) : void
target EntityCache
Résultat void

ActivateStasisWeb() public méthode

Activate StasisWeb
public ActivateStasisWeb ( EntityCache target ) : void
target EntityCache
Résultat void

ActivateTargetPainters() public méthode

Activate target painters
public ActivateTargetPainters ( EntityCache target ) : void
target EntityCache
Résultat void

CanActivate() public méthode

Returns true if it can activate the weapon on the target
The idea behind this function is that a target that explodes isnt being fired on within 5 seconds
public CanActivate ( Questor.Modules.ModuleCache module, EntityCache entity, bool isWeapon ) : bool
module Questor.Modules.ModuleCache
entity EntityCache
isWeapon bool
Résultat bool

ProcessState() public méthode

public ProcessState ( ) : void
Résultat void

ReloadAmmo() public méthode

Reload correct (tm) ammo for the NPC
public ReloadAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool
weapon Questor.Modules.ModuleCache
entity EntityCache
Résultat bool

ReloadEnergyWeaponAmmo() public méthode

public ReloadEnergyWeaponAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool
weapon Questor.Modules.ModuleCache
entity EntityCache
Résultat bool

ReloadNormalAmmo() public méthode

Reload correct (tm) ammo for the NPC
public ReloadNormalAmmo ( Questor.Modules.ModuleCache weapon, EntityCache entity ) : bool
weapon Questor.Modules.ModuleCache
entity EntityCache
Résultat bool