-
Notifications
You must be signed in to change notification settings - Fork 2
refactor(v3): simplify notifications, translations support #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Rushaway
wants to merge
11
commits into
srcdslab:master
Choose a base branch
from
Rushaway:v3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
63811f4
refactor(v3): simplify notifications, translations support
Rushaway 469f367
Merge branch 'master' into v3
Rushaway 6a4cda2
Adjust log position
Rushaway a40e877
Update French translations for knife and boost phrases
Rushaway d81eb48
Refactor BoostAlert plugin code structure
Rushaway fa3ca68
README typo
Rushaway a906098
Refactor BoostAlert plugin for improved functionality
Rushaway aa7dfd8
Fix French translations in BoostAlert phrases
Rushaway 7bb292d
Avoid unless check
Rushaway 33b976e
Increase buffer
Rushaway b98561c
improved clarity
Rushaway File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| # BoostAlert | ||
|
|
||
| BoostAlert is a SourceMod plugin for ZombieReloaded servers that detects CT -> ZM boost patterns and knife follow-up interactions, then notifies admins with: | ||
|
|
||
| - concise chat messages (localized) | ||
| - detailed console lines (localized) | ||
|
|
||
| ## Features | ||
|
|
||
| - Detects high-impact boost hits from CT to T/ZM (shotguns/snipers). | ||
| - Detects knife hits from CT to T/ZM with configurable minimum damage. | ||
| - Detects follow-up infection/kill events after a recent knife hit. | ||
| - Detects boost-assisted infection chains in ZR. | ||
| - Sends notifications only to admins (or SourceTV). | ||
| - Logs relevant events to SourceMod logs. | ||
| - Exposes forwards for integrations with other plugins. | ||
| - Includes multilingual phrases: English, French, Spanish, Russian, Simplified Chinese. | ||
|
|
||
| Optional: | ||
|
|
||
| - `knifemode` (if present, alerts can be suppressed via cvar) | ||
|
|
||
| ## Installation | ||
|
|
||
| 1. Compile `addons/sourcemod/scripting/BoostAlert.sp` or download latest release. | ||
| 2. Copy `BoostAlert.smx` to `addons/sourcemod/plugins/`. | ||
| 3. Copy `addons/sourcemod/translations/BoostAlert.phrases.txt` to your server. | ||
| 4. Restart map/server (or reload plugin). | ||
|
|
||
| ## Configuration (ConVars) | ||
|
|
||
| ### Knife | ||
|
|
||
| - `sm_knifenotifytime` (default: `5`) | ||
| - Time window (seconds) where a recently knifed zombie is tracked for follow-up events. | ||
| - `sm_knifemod_blocked` (default: `1`) | ||
| - If KnifeMode is loaded: `1` blocks alerts, `0` allows alerts. | ||
| - `sm_knifemin_damage` (default: `15`) | ||
| - Minimum knife damage to trigger a knife alert. | ||
|
|
||
| ### Boost | ||
|
|
||
| - `sm_boostalert_hitgroup` (default: `1`) | ||
| - `0` = any hitgroup, `1` = head-only (event hitgroup match). | ||
| - `sm_boostalert_spam` (default: `3`) | ||
| - Anti-spam delay before another boost warning can be sent for the same target. | ||
| - `sm_boostalert_delay` (default: `15`) | ||
| - Time window where a boosted target can still trigger follow-up infection warning. | ||
| - `sm_boostalert_min_damage` (default: `80`) | ||
| - Minimum damage to trigger boost warning. | ||
|
|
||
| ### Auth ID | ||
|
|
||
| - `sm_boostalert_authid` (default: `1`) | ||
| - Auth ID type in detailed output: | ||
| - `0` = Engine | ||
| - `1` = Steam2 | ||
| - `2` = Steam3 | ||
| - `3` = Steam64 | ||
|
|
||
| ## Notifications | ||
|
|
||
| ### Chat | ||
|
|
||
| Chat notifications are compact and intended for quick admin awareness. | ||
|
|
||
| Examples: | ||
|
|
||
| - `[BA] Wyatt boosted Yahn (awp, -84 HP)` | ||
| - `[BA] Wyatt infected Yahn (Recently knifed by Rushaway)` | ||
|
|
||
| ### Console | ||
|
|
||
| Console notifications are detailed and include userid/auth details. | ||
|
|
||
| Examples: | ||
|
|
||
| - `[BA] Wyatt (#1390|U:1:...) boosted Yahn (#1391|U:1:...) with awp (-84 HP)` | ||
| - `[BA] Wyatt (#...) infected Yahn (#...) (Recently knifed by Rushaway (#...))` | ||
|
|
||
| ## Forwards | ||
|
|
||
| BoostAlert exposes two global forwards: | ||
|
|
||
| ```pawn | ||
| BoostAlert_OnBoost(int attacker, int victim, int damage, const char[] weapon) | ||
| BoostAlert_OnBoostedKill(int attacker, int victim, int initialAttacker, int damage, const char[] weapon) | ||
| ``` | ||
|
|
||
| ## Translation | ||
|
|
||
| Translation file: | ||
|
|
||
| - `addons/sourcemod/translations/BoostAlert.phrases.txt` | ||
|
|
||
| Supported language keys: | ||
|
|
||
| - `en` | ||
| - `fr` | ||
| - `es` | ||
| - `ru` | ||
| - `chi` (Simplified Chinese) | ||
|
|
||
| ## Notes | ||
|
|
||
| - Boost detection weapon list is currently: `m3`, `xm1014`, `awp`, `scout`, `sg550`, `g3sg1`. | ||
| - Admin notification target is: SourceTV or users with `Admin_Generic`. | ||
| - Config is auto-generated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.