Commit 6507f41
Feature: ConVars for weapon/item/ammo respawn time (#13)
* 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 <wopox1337@ya.ru>1 parent cbffd9d commit 6507f41
7 files changed
Lines changed: 65 additions & 4 deletions
File tree
- dist
- regamedll/dlls
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
592 | 610 | | |
593 | 611 | | |
594 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
448 | 452 | | |
449 | 453 | | |
450 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
451 | 459 | | |
452 | 460 | | |
453 | 461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4221 | 4221 | | |
4222 | 4222 | | |
4223 | 4223 | | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
4224 | 4227 | | |
| 4228 | + | |
4225 | 4229 | | |
4226 | 4230 | | |
4227 | 4231 | | |
| |||
4289 | 4293 | | |
4290 | 4294 | | |
4291 | 4295 | | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
4292 | 4299 | | |
| 4300 | + | |
4293 | 4301 | | |
4294 | 4302 | | |
4295 | 4303 | | |
| |||
4321 | 4329 | | |
4322 | 4330 | | |
4323 | 4331 | | |
4324 | | - | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
4325 | 4337 | | |
4326 | 4338 | | |
4327 | 4339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
522 | 526 | | |
523 | 527 | | |
524 | 528 | | |
| |||
555 | 559 | | |
556 | 560 | | |
557 | 561 | | |
558 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
559 | 566 | | |
| 567 | + | |
560 | 568 | | |
561 | 569 | | |
562 | 570 | | |
| |||
575 | 583 | | |
576 | 584 | | |
577 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
578 | 590 | | |
579 | 591 | | |
580 | 592 | | |
| |||
0 commit comments