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

[Feature] g_elimination_enableItems #86

Open
NeonKnightOA opened this issue Jan 30, 2020 · 5 comments
Open

[Feature] g_elimination_enableItems #86

NeonKnightOA opened this issue Jan 30, 2020 · 5 comments
Labels
enhancement Things to spice up our game. help wanted I can't do this alone. I need help. In the form of a pull-request, preferably.

Comments

@NeonKnightOA
Copy link
Contributor

NeonKnightOA commented Jan 30, 2020

Idea taken from this post on the OA forums. After getting used to the code, it shouldn't be that different, plus we have already an antecedent of a similar gamemode working, and it's Unreal Tournament 4's (Team) Showdown mode. I've also opened a similar thread however I'm not sure about picking up a spawnpoint before the round begins.

Implementation would be similar to Sago's suggestion: a single bitflag cvar.
g_elimination_enableItems & 1 (ELIMINATION_ITEMS_ENABLEWEAPONS) = enable weapons
g_elimination_enableItems & 2 (ELIMINATION_ITEMS_ENABLEHEALTHARMOR) = enable health/armor
g_elimination_enableItems & 4 (ELIMINATION_ITEMS_ENABLEPOWERUPS) = enable powerups/holdables

@The-Gig
Copy link
Contributor

The-Gig commented Feb 1, 2020

But in that case, what would a value of 5 do?

If it will be a bitflag variable, then maybe each value may add something instead, allowing maximum customization?
Example:
1=add weapons/ammo boxes
2=add health/armor bonuses
4=add powerups (also runes in case of g_runes 1?)

So to have everything one would set it to 7 (1+2+4)?

(On a side note, wondering if ui3 may allow to manage bit field settings in a way more comfortable than "cycle between all possible combinations by repeatedly clicking").

UPDATE: Oops, I forgot holdable items. I guess they should be either included with one of the values above, or have their own value.

@NeonKnightOA

This comment was marked as abuse.

@The-Gig
Copy link
Contributor

The-Gig commented Feb 1, 2020

Just a small nitpicking... IIRC all elimination* tuning options do not have the initial "g_", probably to save some chars considering that "elimination" itself is quite a long word.
So, the cvar might be something like elimination_enableItems, elimination_keepItems, or something similar (elimination_withStuff? ^_^), without the g_.

@Danil-Dm
Copy link

In my mod there is cvar elimination_items it includes items.
You can take ideas from my mod
https://github.com/Danil-Dm/openarena

@The-Gig The-Gig mentioned this issue Feb 21, 2020
@NeonKnightOA NeonKnightOA added the enhancement Things to spice up our game. label Mar 14, 2024
@NeonKnightOA

This comment was marked as abuse.

@NeonKnightOA NeonKnightOA added the help wanted I can't do this alone. I need help. In the form of a pull-request, preferably. label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Things to spice up our game. help wanted I can't do this alone. I need help. In the form of a pull-request, preferably.
Projects
None yet
Development

No branches or pull requests

3 participants