Wikis / Unreal Wiki / Legacy:How UT Weapons Work/Picking Up A Weapon

For now just a list of function calls:

(let's see how inventive your browser is with multiple bullet lists... ;))

  • Inventory (UT).Pickup.Touch
    • Inventory (UT).Pickup.ValidTouch
      • GameInfo (UT).PickupQuery
        • Mutator.HandlePickupQuery → recursively called for all mutators
        • Inventory (UT).HandlePickupQuery → recursively called for the player's inventory items
    • Weapon (UT).SpawnCopy
      • Inventory (UT).GiveTo
        • TournamentWeapon.BecomeItem
        • Pawn (UT).AddInventory
        • (weapon goes to state 'Idle2')
      • Weapon (UT).GiveAmmo
      • Weapon (UT).SetSwitchPriority
      • Weapon (UT).WeaponSet (if player's bNeverSwitchOnPickup is False) → compares player's weapon with this one and switches to this weapon if it's better

To be cleaned up...

Page Categories

Page Information

2022-11-18T16:12:54.214583Z 2002-07-19T13:00Z Wormbo * https://wiki.beyondunreal.com/Legacy:How UT Weapons Work/Picking Up A Weapon Attribution-NonCommercial-ShareAlike 3.0