Commit 3a77a67
committed
Add map history and history-based exclusions
Add support for history-based map/group exclusions and a map-history command.
- Introduces two ConVars: multimode_vote_default_groupexclude and multimode_vote_default_mapexclude to provide default behavior when vote calls pass -1.
- Adds utility helpers in utils.inc: MMC_KeyIsSubgroupOfBase, MMC_ResolveVoteGroupExclude, MMC_ResolveVoteMapExclude.
- Adds vote-history helpers in multimode_core.sp: VoteHistory_IsGroupRecentlyPlayed, VoteHistory_IsMapRecentlyPlayed, VoteHistory_MapEverPlayed and integrates them into native checks and vote preparation routines so maps/groups are correctly excluded based on recent play history and resolved ConVar defaults.
- Adds console commands multimode_maphistory and sm_maphistory to list played maps per group/subgroup.
- Fixes include documentation text for groupexclude/mapexclude.
- Compiled plugin binary (multimode_core.smx) updated.
These changes ensure votes respect configurable recent-play exclusions and provide an admin-visible history of played maps.1 parent 4828c43 commit 3a77a67
4 files changed
Lines changed: 246 additions & 65 deletions
File tree
- addons/sourcemod
- plugins
- scripting
- include
- multimode
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
72 | 103 | | |
73 | 104 | | |
74 | 105 | | |
| |||
0 commit comments