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

Add Option to use Bumpmines as Innocent #466

Merged
merged 4 commits into from Apr 13, 2020

Conversation

Saueee
Copy link
Contributor

@Saueee Saueee commented Apr 13, 2020

Add Option to use Bumpmines as Innocent

Add Option to use Bumpmines as Innocent
@Mrkl21full
Copy link
Member

Mrkl21full commented Apr 13, 2020

Well... If you want to do such a thing, you should add usages per role and then register it depending on the usages (0 means disabled, higher then 0 means enabled for specific role).

EDIT:
After some "thinking" this should be okay for know but idk if you should check the team when client buys item depending on the configuration you just provided.

@Saueee
Copy link
Contributor Author

Saueee commented Apr 13, 2020

I couldn't find out why some Items got 2 Vars like this:
HAMMER_D_ITEM_SHORT
HAMMER_T_ITEM_SHORT
But I don't think this is neccessary for this change. (?)

Also I forgot to set default for bumpmine.type to 2 for Traitor only

@Mrkl21full
Copy link
Member

Mrkl21full commented Apr 13, 2020

Because when you buys something it has a "short name" and "forward event" will pass that thing you just bought to others plugins and that plugins can check if this is from t shop, or d shop and do some actions if necessary.

Your change don't have it, you should add it.

@Saueee
Copy link
Contributor Author

Saueee commented Apr 13, 2020

Added T/D Versions. Please review :)

@Mrkl21full
Copy link
Member

Mrkl21full commented Apr 13, 2020

Good work, but it can be optimized.

I can't edit it for you (i don't have the perms :D) but I did it small changes for you (just copy&paste it) PR-466

EDIT:
We don't need too much code if it will do the same

@Mrkl21full
Copy link
Member

We only need to let @Bara decide whether "bumpmine_type" should be 1 or 2.

@Bara
Copy link
Member

Bara commented Apr 13, 2020

@Saueee I did't played with bumpmines yet, does make it any damages to (other) players?

@Saueee
Copy link
Contributor Author

Saueee commented Apr 13, 2020

@Bara They don't do direct damage but fall damage if players walk over it and can't land anywhere.
They open up some maps because you can jump on towers and houses with them.
Should be traitor only in default in my opinion but option for all would be nice.

@Bara Bara merged commit bf696f1 into TroubleInTerroristTown:master Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants