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

Expand g_only_weapon #35

Open
deggieq2 opened this issue Sep 5, 2023 · 3 comments
Open

Expand g_only_weapon #35

deggieq2 opened this issue Sep 5, 2023 · 3 comments

Comments

@deggieq2
Copy link

deggieq2 commented Sep 5, 2023

Hi

Is it possible to use something similar but to be able to give a selection of weapons - ie Rocket + Railgun with infinite ammo.

Cheers!

@ceeeKay
Copy link
Owner

ceeeKay commented Sep 5, 2023

This particular combo might already be possible (albeit awkward) via g_only_weapon "Rocket Launcher" plus g_instagib 1 or with something added to g_starting_items.

g_starting_items is an existing/vanilla Q2 cvar which takes a semicolon-separated list. Q2Eaks' cvars g_start_with_chainfist and g_start_with_shotgun actually just append appropriate weapons and ammo (shotgun e.g. needs at least 1 shell) to g_starting_items. I think even with g_infinite_ammo on you need at least one shot's worth of ammunition added to your inventory (to avoid "out of ammo" checks when changing weapons).

While the above could certainly make it possible, I could see a friendlier option being nice. However, I'm not sure how easy/painful implementing a list-format (e.g. semicolon seperated) cvar is. Most likely could follow some of the g_starting_items code as an example.

@ceeeKay
Copy link
Owner

ceeeKay commented Sep 6, 2023

Confirmed that g_only_wepaon "Rocket Launcher" plus g_start_items "weapon_railgun;ammo_slugs" does work as-is for now.

@ceeeKay
Copy link
Owner

ceeeKay commented Sep 6, 2023

g_instagib 1 plus g_only_weapon "Rocket Launcher" also works, but it's worth noting that instagib tweaks a few other rules including making rail damage even higher (to ensure a one-hit kill)

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

No branches or pull requests

2 participants