Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend weapon functionality #2683

Merged
merged 5 commits into from
Jul 27, 2023
Merged

Extend weapon functionality #2683

merged 5 commits into from
Jul 27, 2023

Commits on Jul 16, 2023

  1. Configuration menu
    Copy the full SHA
    a1b917f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ce3524 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Configuration menu
    Copy the full SHA
    7f5064b View commit details
    Browse the repository at this point in the history
  2. Fixed lint

    aske02 committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    fcea000 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Change perm checks and add weapon/ammo checks

    Added check to stripWeapon to throw a runtime error in case the weapon class is invalid.
    
    Changed logic for permissions to AND, so you could be either a friend or have cppi perms rather than needing both to access the functions.
    
    Added check to the ammo functions to ensure the ammo type is valid, or else throw a runtime error
    
    self.entity.player -> self.player
    
    Changed invalid weapon error message for giveWeapon functions
    
    Fix checkGive using incorrect variable (this) instead of (target)
    Vurv78 committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    9904f12 View commit details
    Browse the repository at this point in the history