Forum: PogamutUT2004

WeaponyShoooting, something nice for you all

Hey folks,

I created a Pogamut UT2004 addon that is able to handle the basic UT2004 weapons in a sensible way. Feel free to use it and improve it!

Some examples:

* In Secondary mode the shield gun will selectively use it's shield when threatened and bounce back energy projectiles.

  • ShockRifleShooting is able to to pull shock combos and won't shoot a shielded player. (Aims above instead).

  • In Secondary mode the BioRifle will charge up till full, then when a target becomes visible, unload the full charge. After which it will pelt its target with primary mode.

  • When a player disappears RockeetLauncherShooting will unload its loaded rocket on his last seen position. The target might be caught in splash damage.

The weapons are collectively handled by WeaponryShooting which uses WeaponPrefs to select which weapon should be used and honors the weapon change rate set by Shooting.

Each standard weapons has its own shooting module that handles charging up and shooting in an intelligent fashion. For non standard weapons a generic handler is used that shoots the primary at a visible target. For all weapons it is possible to create your own shooting.

For examples of how to set up this module in your own agent check out the WeaponShootingTestController.

Not covered by this addon is intelligent running or smart dodging (some one please write that, the info is all there). However to make cooperation with movement systems simple WeaponryShooting and all WeaponShootings provide a focus locution. This focus location can be requested once and will then update itself with the current focus of the bot.