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

Disable usage of classes abilities during build time #1195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

165135
Copy link
Contributor

@165135 165135 commented Aug 3, 2023

Disable all abilities for classes instead of just paxel usage
From suggestion: https://discord.com/channels/447819017391046687/448136308108296213/1135607133661044788

@@ -151,7 +151,7 @@ ctf_melee.simple_register_sword("ctf_mode_classes:knight_sword", {

local pname = user:get_player_name()

if itemstack:get_wear() == 0 then
if itemstack:get_wear() == 0 and ctf_modebase.match_started then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way the player will get the "Can't use during build time" message even when match has started but item's wear is 0.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not fixed

@@ -222,15 +229,22 @@ ctf_ranged.simple_register_gun("ctf_mode_classes:ranged_rifle", {
return
end

if itemstack:get_wear() == 0 then
if itemstack:get_wear() == 0 and ctf_modebase.match_started then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as L154

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants