|
Third Person Cover Shooter
1.6
|
Controls the equipment of weapons and their fire. More...
Public Member Functions | |
| void | OnEnterCover (Cover cover) |
| Notified by the actor that a cover was entered. More... | |
| void | OnLeaveCover () |
| Notified by the actor that a cover was left. More... | |
| void | ToAimAt (Vector3 position) |
| Told by the brains to aim the gun at a position. More... | |
| void | ToAimTo (Vector3 direction) |
| Told by the brains to aim the gun to a direction. More... | |
| void | ToTarget (ActorTarget target) |
| Told by the brains to aim the gun at a target actor. More... | |
| void | ToOpenFire () |
| Told by the brains to start aiming and firing. More... | |
| void | ToCloseFire () |
| Told by the brains to stop firing. More... | |
| void | ToStartAiming () |
| Told by the brains to start aiming, doesn't start firing. More... | |
| void | ToStopAiming () |
| Told by the brains to stop both aiming and firing. More... | |
| void | ToArm () |
| Told by the brains to take a weapon to arms. More... | |
| void | ToDisarm () |
| Told by the brains to disarm any weapon. More... | |
Public Member Functions inherited from CoverShooter.AIBase | |
| void | Message (string name) |
| Sends a message to other components. More... | |
| void | Message (string name, object value) |
| Sends a message to other components. More... | |
Public Attributes | |
| WeaponType | AutoFindType = WeaponType.Pistol |
| Weapon type to look for, if not present any other weapon will be picked. More... | |
| bool | AlwaysAim |
| Should the AI always be aiming. More... | |
| Bursts | Bursts = Bursts.Default() |
| Settings for bursts of fire when in a cover. More... | |
| CoverBursts | CoverBursts = CoverBursts.Default() |
| Settings for bursts of fire when in a cover. More... | |
Public Attributes inherited from CoverShooter.AIItemBase | |
| InventoryUsage | InventoryUsage = InventoryUsage.autoFind |
| How should the character inventory (if there is one) be used. More... | |
| int | InventoryIndex = 0 |
| Weapon index inside the inventory to use when usage is set to 'index'. More... | |
Protected Member Functions | |
| override void | Awake () |
Protected Member Functions inherited from CoverShooter.AIItemBase | |
| bool | EquipWeapon (CharacterMotor motor) |
| Equips any weapon if possible. More... | |
| bool | Equip (CharacterMotor motor, WeaponType type) |
| Equips a weapon of specific kind if possible. More... | |
| bool | Equip (CharacterMotor motor, ToolType tool) |
| Equips a specific tool if possible. More... | |
| bool | UnequipWeapon (CharacterMotor motor) |
| Unequips the item if it is currently used. More... | |
| bool | Unequip (CharacterMotor motor, WeaponType type) |
| Unequips the item if it is currently used. More... | |
| bool | Unequip (CharacterMotor motor, ToolType tool) |
| Unequips the item if it is currently used. More... | |
Properties | |
| bool | IsFiring [get] |
| Is the AI currently firing. More... | |
Controls the equipment of weapons and their fire.
Makes the AI take a peek from a cover if they are covered.
|
protectedvirtual |
Reimplemented from CoverShooter.AIItemBase.
| void CoverShooter.AIFire.OnEnterCover | ( | Cover | cover | ) |
Notified by the actor that a cover was entered.
Implements CoverShooter.ICharacterCoverListener.
| void CoverShooter.AIFire.OnLeaveCover | ( | ) |
Notified by the actor that a cover was left.
Implements CoverShooter.ICharacterCoverListener.
| void CoverShooter.AIFire.ToAimAt | ( | Vector3 | position | ) |
Told by the brains to aim the gun at a position.
| void CoverShooter.AIFire.ToAimTo | ( | Vector3 | direction | ) |
Told by the brains to aim the gun to a direction.
| void CoverShooter.AIFire.ToArm | ( | ) |
Told by the brains to take a weapon to arms.
| void CoverShooter.AIFire.ToCloseFire | ( | ) |
Told by the brains to stop firing.
| void CoverShooter.AIFire.ToDisarm | ( | ) |
Told by the brains to disarm any weapon.
| void CoverShooter.AIFire.ToOpenFire | ( | ) |
Told by the brains to start aiming and firing.
| void CoverShooter.AIFire.ToStartAiming | ( | ) |
Told by the brains to start aiming, doesn't start firing.
| void CoverShooter.AIFire.ToStopAiming | ( | ) |
Told by the brains to stop both aiming and firing.
| void CoverShooter.AIFire.ToTarget | ( | ActorTarget | target | ) |
Told by the brains to aim the gun at a target actor.
| bool CoverShooter.AIFire.AlwaysAim |
Should the AI always be aiming.
| WeaponType CoverShooter.AIFire.AutoFindType = WeaponType.Pistol |
Weapon type to look for, if not present any other weapon will be picked.
Used only when AutoFindIndex is enabled.
| Bursts CoverShooter.AIFire.Bursts = Bursts.Default() |
Settings for bursts of fire when in a cover.
| CoverBursts CoverShooter.AIFire.CoverBursts = CoverBursts.Default() |
Settings for bursts of fire when in a cover.
|
get |
Is the AI currently firing.