Use Weapon Package

From GECK
Jump to: navigation, search

The Use Weapon Package governs the behavior for an actor using weapons.

Package Specific Data

  • Weapon: Choose a specific weapon or weapon type.
  • Target:
    • If checked, select a reference to shoot at.
    • If not checked, actor will fire weapon in the air in the direction they are facing.
  • Target Location: Standard Location data. If checked, actor will wait at the Location (not firing) until target is within target location.
  • Flags:
    • Hold Fire When Blocked: Will not shoot if shot is blocked by a movable object.
    • Crouch to Reload: Self explanatory.
    • Always Hit: Shots will be treated as having hit the target, even if they hit something else.
    • Do No Damage: Shots may hit target, but will not deal any damage.
  • Fire Rate:
    • Auto fire: Actor will fire full clips as fast as he can.
    • Volley fire: Actor will fire volleys (randomly choosing volley size between Min and Max each time), with the specified pause (randomly choosing between min and max, in seconds).
  • Fire Count:
    • Repeat fire: Actor will continue to fire as specified in Fire Rate. With this selection, package has no "Done" state.
    • Number of bursts: Actor will fire the specified number of bursts (defined according to Fire Rate), and then stop firing and be considered "Done".

Flags

  • Pretend In Combat: Invalid.
  • Continue During Combat: Actor will continue to fire and stand at the designated position, even during Combat. Great for setting up immobile enemies.

Behavior

  1. Actor will move to the specified Location.
  2. The actor will then shoot at the Target using the rules specified by the Flags, Fire Rate, and Fire Count.
    • If Target Location is specified, the actor will wait for the Target to enter the target location before firing.

Notes

  • If a melee weapon is used, the actor will not obey the "Reach" setting on the weapon form and thus can attack from extremely long distances. To keep normal melee weapon behavior ensure the Location target is set to the same target as the Target setting on the package.
  • Package behavior is inhibited by SetRestrained but NOT inhibited by SetCombatDisabled.
  • If Weapons: Melee is used as the Object Type but the only weapon the actor has is a ranged weapon the actor will not used unarmed attacks but will instead equip the ranged weapon but do nothing with it.
  • Attacks cannot be made unless the actor currently possesses the correct ammo for the weapon (regardless of package flags set), if the actor runs a ranged weapon package and does not have ammo or they run out of ammo before firing all shots (weapon has "NPCs Use Ammo" flagged) the actor will be stuck running the package and aiming their weapon until the package is forcibly terminated with various commands. So in most cases it may be a good idea to condition the package to check if enough ammo is available to fire all shots needed.

See Also