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] Expose Hexen spawn classes to ZScript #2861

Open
WoolieWool opened this issue Dec 16, 2024 · 0 comments
Open

[Feature] Expose Hexen spawn classes to ZScript #2861

WoolieWool opened this issue Dec 16, 2024 · 0 comments

Comments

@WoolieWool
Copy link

WoolieWool commented Dec 16, 2024

GZDoom version

Git 4.14pre-76-gccd38afbc

Which game are you running with GZDoom?

Hexen

Is your feature request related to a problem? Please describe.

For my Hexen gameplay mod Hecatomb, I have six weapons per player class, and use Jekyll Grim Payne's class dependent spawners to replace weapon pickups from multiple Hexen classes (e.g. the Fighter's new yellow and red mana weapons replace CWeapStaff and MWeapLightning), but this requires that all player classes have their Player.SpawnClass set to Any so that the other classes' weapons spawn and can be replaced. However, this breaks balance for some Hexen map packs (notably Deathkings' first hub and the Cyrgoth series) because ammo is spawned for all three original classes, leading to a surplus of ammo and sometimes multiple pickups being spawned in the same position.

I hope that was clear, it is rather difficult to explain this when there are three totally different things--actor classes in ZScript, player classes in Hexen, and Hexen spawn classes in Hexen maps--that are all called "classes".

Describe the solution you'd like

This could be fixed if the Hexen spawn class assigned to items in the map editor can be exposed to ZScript, so I can prevent the spawners from spawning ammo (but not weapons!) if the in-map actor has a spawn class other than one attached to the actor (using a custom property HecatombPlayer.SpawnClass which would take Fighter, Cleric, or Mage, while Player.SpawnClass remains Any)

Describe alternatives you've considered

I have considered having the yellow and red mana weapons replace the first and second pieces of the ultimate weapon, but this has its own balancing problems (e.g. in base Hexen you will pick up yellow mana for the entire first hub without being able to use it, and likewise for red mana in the second hub), plus it removes the weapon piece mechanic, which is a cool feature I would like to preserve.

Add any other context or screenshots about the feature request here.

No response

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

No branches or pull requests

1 participant