Skip to content

New ConVars: mp_item_respawn_time, mp_weapon_respawn_time, mp_ammo_respawn_time#983

Merged
wopox1337 merged 7 commits intomasterfrom
feature/convars-respawn-time
Aug 3, 2024
Merged

New ConVars: mp_item_respawn_time, mp_weapon_respawn_time, mp_ammo_respawn_time#983
wopox1337 merged 7 commits intomasterfrom
feature/convars-respawn-time

Conversation

@wopox1337
Copy link
Member

@wopox1337 wopox1337 commented Aug 2, 2024

// The respawn time for items (such as health packs, armor, etc.).
// 0 - disable delay
//
// Default value: "30"
mp_item_respawn_time "30"

// The respawn time for weapons.
// 0 - disable delay
//
// Default value: "20"
mp_weapon_respawn_time "20"

// The respawn time for ammunition.
// 0 - disable delay
//
// Default value: "20"
mp_ammo_respawn_time "20"

@wopox1337 wopox1337 added the Type: 🚀 enhancement Improvement or addition of a new feature. label Aug 2, 2024
@wopox1337 wopox1337 requested a review from s1lentq August 2, 2024 22:21
@wopox1337 wopox1337 self-assigned this Aug 2, 2024
@wopox1337 wopox1337 merged commit 9d9c2de into master Aug 3, 2024
@wopox1337 wopox1337 deleted the feature/convars-respawn-time branch August 3, 2024 17:17
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]>
@wopox1337 wopox1337 changed the title Feature: ConVars for weapon/item/ammo respawn time New ConVars: mp_<weapon/item/ammo>_time Dec 12, 2024
@wopox1337 wopox1337 changed the title New ConVars: mp_<weapon/item/ammo>_time New ConVars: mp_<weapon/item/ammo>_respawn_time Dec 12, 2024
@wopox1337 wopox1337 added Priority: 🕒 low Low priority tasks that can be postponed for the future. Status: 🎮 testing Issue in testing stage. Difficulty: 🟢 easy Easy task that can be completed quickly. labels Dec 12, 2024
@wopox1337 wopox1337 changed the title New ConVars: mp_<weapon/item/ammo>_respawn_time New ConVars: mp_<weapon/item/ammo>_respawn_time Dec 12, 2024
@wopox1337 wopox1337 changed the title New ConVars: mp_<weapon/item/ammo>_respawn_time New ConVars: mp_item_respawn_time, mp_weapon_respawn_time, mp_ammo_respawn_time Dec 12, 2024
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`

* new ConVars: `mp_item_respawn_time`, `mp_weapon_respawn_time`, `mp_ammo_respawn_time`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Difficulty: 🟢 easy Easy task that can be completed quickly. Priority: 🕒 low Low priority tasks that can be postponed for the future. Status: 🎮 testing Issue in testing stage. Type: 🚀 enhancement Improvement or addition of a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant