Skip to content

Class-dependent pickups 3.0

Choose a tag to compare

@jekyllgrim jekyllgrim released this 14 Jun 18:21
· 1 commit to main since this release

Changelog

  • Refactored and streamlined the process of receiving the final item from the class-dependent pickup. The pickup will now properly call Touch() when the item is received from world, or CallTryPickup() when received directly. This means:
    • Any behavir in the final item's Touch() override will work as intended.
    • The mugshot will properly use its "grin" state if the pickup is a weapon.
    • The class-dependent pickup can be give directly through scripts or cheats, and the correct pickup will be given to the player depending on their playerclass.
    • The class-dependent pickup will not be picked up when not supposed to (for example, if you already have maximum amount of it).
  • Restructured the library. Example classes are now in a separate file, and all of the main code is now in a CDP_ZScript directory.
  • Added MIT License (see LICENSE.txt).