Skip to content

Fix: ammo/weapons respawn behavior#982

Merged
wopox1337 merged 5 commits intomasterfrom
fix/items-berhavior-restore
Aug 3, 2024
Merged

Fix: ammo/weapons respawn behavior#982
wopox1337 merged 5 commits intomasterfrom
fix/items-berhavior-restore

Conversation

@wopox1337
Copy link
Member

@wopox1337 wopox1337 commented Aug 2, 2024

Items that were created without the SF_NORESPAWN flag can work normally (like HL: Deathmatch items)
video: https://www.youtube.com/watch?v=TsfiMZ0RuPU

@wopox1337 wopox1337 added Type: 🧬 bug in original GameDLL An error that could not be fixed by GameDLL. Type: 🚀 enhancement Improvement or addition of a new feature. Status: ✅ done The issue done and closed. labels Aug 2, 2024
@wopox1337 wopox1337 requested a review from s1lentq August 2, 2024 21:38
@wopox1337 wopox1337 self-assigned this Aug 2, 2024
@wopox1337 wopox1337 merged commit a202425 into master Aug 3, 2024
@wopox1337 wopox1337 deleted the fix/items-berhavior-restore branch August 3, 2024 17:11
jonathan-up added a commit to jonathan-up/ReGameDLL_CS that referenced this pull request Aug 4, 2024
* Fix: `ammo`/`weapons` respawn behavior (rehlds#982)

* `CBasePlayerAmmo`: check spawnflags on `Spawn()`

* `CBasePlayerItem`: check spawnflags on `Materialize()`

* `CBasePlayerItem`: Add `Respawn()` item when hasn't specific spawnflags

* `CBasePlayerItem`: remove `SF_NORESPAWN` flag on `Respawn()`

* Use forgotten `AMMO_RESPAWN_TIME`

* Feature: ConVars for `weapon`/`item`/`ammo` respawn time (rehlds#983)

* `CBasePlayerAmmo`: check spawnflags on `Spawn()`

* `CBasePlayerItem`: check spawnflags on `Materialize()`

* `CBasePlayerItem`: Add `Respawn()` item when hasn't specific spawnflags

* `CBasePlayerItem`: remove `SF_NORESPAWN` flag on `Respawn()`

* Use forgotten `AMMO_RESPAWN_TIME`

* new ConVars: `mp_item_respawn_time`, `mp_weapon_respawn_time`, `mp_ammo_respawn_time`

---------

Co-authored-by: Sergey Shorokhov <[email protected]>
yohimik pushed a commit to yohimik/ReGameDLL_CS that referenced this pull request Jun 5, 2025
* `CBasePlayerAmmo`: check spawnflags on `Spawn()`

* `CBasePlayerItem`: check spawnflags on `Materialize()`

* `CBasePlayerItem`: Add `Respawn()` item when hasn't specific spawnflags

* `CBasePlayerItem`: remove `SF_NORESPAWN` flag on `Respawn()`

* Use forgotten `AMMO_RESPAWN_TIME`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: ✅ done The issue done and closed. Type: 🧬 bug in original GameDLL An error that could not be fixed by GameDLL. Type: 🚀 enhancement Improvement or addition of a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant