NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
https://neotokyorebuild.github.io/
Other
23 stars 13 forks source link

[FEATURE] Players who have active spawn protection in DM should have a glow/effect applied to them #802

Open kassibuss opened 1 week ago

kassibuss commented 1 week ago

Description

When we tried the deathmatch mode, it was hard to know who was just afking or who had the spawn protection, this caused confusion.

Proposed Solution

Add an effect to the players when they have spawn protection, also maybe some sort of text on the hud that notifies about the amount of spawn protection left

Alternatives Considered

No response

Additional Context

9km0c3hoommb1 In cs, the players are transparent when they have spawn protection on

AdamTadeusz commented 1 week ago

could probably repurpose the glow effect we have in spectator xray, maybe with the option to only draw the effect when unobstructed

Rainyan commented 1 week ago

The engine also comes with some RenderFx_t enumerations for the m_nRenderFX BaseEntity property - I recall these should work out of the box (at least they did in SDK06), and had some kind of highlight enum in there that may be worth trying.

Perhaps the custom xray mode would be even worth refactoring as a RenderFx_t, so that mappers/modders could set it on any objects(?)

edit: Sorry, I think it was perhaps RenderMode_t instead

AdamTadeusz commented 1 week ago

The engine also comes with some RenderFx_t enumerations for the m_nRenderFX BaseEntity property - I recall these should work out of the box (at least they did in SDK06), and had some kind of highlight enum in there that may be worth trying.

Perhaps the custom xray mode would be even worth refactoring as a RenderFx_t, so that mappers/modders could set it on any objects(?)

edit: Sorry, I think it was perhaps RenderMode_t instead

to be fair the xray idea might be a bit overkill, what you suggested or even a simple material override would work just as fine

AdamTadeusz commented 1 week ago

https://github.com/user-attachments/assets/00801d99-e111-41b2-b8ab-3aadf05a9073

Making the models transparent isn't the greatest, since parts of the models like the vest and mask show up really dark suddenly, I guess probably because they have a very dark texture underneath where they aren't normally visible, but kRenderFxDistort gives a cool cyberpunky effect