alliedmodders / hl2sdk

Half-Life 2 SDK Mirrors
https://github.com/valvesoftware
341 stars 158 forks source link

S2: Add spawn group declarations #175

Closed Wend4r closed 5 months ago

Wend4r commented 8 months ago

Imported from Entity Manager project (for @Poggicek and @GAMMACASE needs) Requires #174

GAMMACASE commented 6 months ago

I assume this is ready to be merged at this point in time? Also can you give a quick insight to point of interests in here, with maybe code to actually use/test on practice? Or is it mostly just class/struct/etc declarations without direct usage as of rn?

Wend4r commented 6 months ago

I assume this is ready to be merged at this point in time? Also can you give a quick insight to point of interests in here, with maybe code to actually use/test on practice? Or is it mostly just class/struct/etc declarations without direct usage as of rn?

Everything is ready. If there are new needs, I will create a new PR. The current functionality is enough for the next one:

I used it to create entities by embedding them into the loading spawn group (mapload) and respawn them each round by cs_respawn - it was done in the game by getting an entities from worldrenderer and entity lump. I also studied the creation of spawngroups (how maps are loads) - used it to group precache ones into the JustInTime manifest and merge it (by transfer ownership of built resources by resourcesystem) into a main map for new players.

I added all these points to the PR

GAMMACASE commented 6 months ago

Do you have any code examples for these? Since the explanation is great, but it's not much without the specifics.

GAMMACASE commented 5 months ago

Even though you haven't provided the code examples that this pr could help with or what functionality you could have with this (and from the looks of it you don't plan to, so don't see the reason in keeping this stalled), it's still may be valuable for future works of others, so thanks for your contribution nonetheless!