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

Enable to draw the breath puffs only in certain map areas #223

Open
kai-li-wop opened this issue Nov 16, 2023 · 0 comments
Open

Enable to draw the breath puffs only in certain map areas #223

kai-li-wop opened this issue Nov 16, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@kai-li-wop
Copy link
Member

In order to simulate cold environments, the Q3TA breath puff feature was implemented. For this purpose, the cvar cg_enableBreath (1/0) was introduced to activate/deactivate the function on the client side. There is also the cvar g_enableBreath (1/0) to activate/deactivate the function on the server side. A level designer can use the key enableBreath (1/0) in the worldspawn of his map to decide whether the map should make use of this feature. This currently enables/disables the feature for the entire map, so there is currently no way to differentiate between map areas where this feature is desired or undesired. Additionally, the game mode Freezetag uses this feature, i.e. whenever this game mode is running and a player is frozen, breath puffs are drawn until the player is thawed out again.

In order to make better use of this function in maps with different "temperature" areas, it is necessary to be able to define these areas. For example, the FridgeWars map has two fridges as lolly bases, where the breath puffs could be activated, while in the middle part of the map, which is outside the fridges, the breath puffs should not be drawn. What would we need for this?

  • Create a "trigger_breathpuffs" entity that can be implemented in maps via a brush with the trigger texture. Each time a player enters (touches) this brush (area), the breaths are drawn.
  • Alternative: Use a surface parameter that can be added to the shader of a texture. This would basically do the same thing and could be added more easily to existing areas with fog, for example, by simply editing the shader without having to recompile the map.
  • When Freezetag is running, the activated areas with breath puffs must always override the treatment in Freezetag. So if a player is in a breath puff area, it doesn't matter if he is frozen or not, the breath puffs will always be drawn. Outside these areas it would be the other way around, the breath puffs would only be activated if the player is currently frozen, otherwise not.
  • This would also mean that the server-side cvar g_enableBreath, which can be activated by the key enableBreath in the worldspawn of the map, is no longer needed. This could then be removed.

I've looked at the source code for this, but it's too complex for me to implement. Therefore help is very welcome. The feature would be essential for the FridgeWars map.

@kai-li-wop kai-li-wop added enhancement New feature or request help wanted Extra attention is needed labels Nov 16, 2023
@kai-li-wop kai-li-wop added this to the v1.7.0 milestone Nov 16, 2023
@kai-li-wop kai-li-wop moved this to Todo in WoP 1.7.x Nov 16, 2023
@kai-li-wop kai-li-wop removed their assignment May 8, 2024
@kai-li-wop kai-li-wop moved this from Todo to Backlog in WoP 1.7.x Oct 25, 2024
@kai-li-wop kai-li-wop modified the milestones: v1.7.0, backlog Oct 25, 2024
@kai-li-wop kai-li-wop moved this from Backlog to Todo in WoP 1.7.x Dec 9, 2024
@kai-li-wop kai-li-wop modified the milestones: backlog, v1.7.1 Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

2 participants