This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.0.4 release, new features and fixes (#38) * Uppdate credits * Change ambuild config setting * Coach tweaking * Add `.noflash` command * Add player damaged info * Fix parse chat command function * Add team select through chat command (`.ct`, `.t`, `.spec`, `side`) * Remove unused sound block * Clean up * Hook say command, from `CS2Fixes` Source2ZE/CS2Fixes@2808f35 * Fix build script * Coach not taking player spawn * Add `.rcon` * 2nd iteration coach spawn * Flash info fix * Add map on demo name * Coach 2nd iteration * Coach choose side on spec * bump version * Spawn side can be chosen Command optional addition `!spawn <spawn number> <ct/t>` * Coach can choose side Optional addition `.coach <ct/t>` * Coach does dont block player spawns anymore Now the coach is not blocking the competitive spawns from players. On round pre-start the coach is switched to spectator, the players are spawned, once all the players are on the competitive spawns, the coach is moved to its target team. * Add modularity to enable/disable features Now the features of the plugin are configurable from the cs2scrim .cfg file, all enabled by default (if the cfg is not present) * Fix flash crash The crash was happening casued by null pointer not being checked * Added `CCSPlayerPawnBase` Needed class to remove flash effect * Add `.last` command .last command will teleport you to the latest grenade thrown, individual for each player. fix * Fix admin not being loaded Fixing #36 * Block `.noclip` command only for practice * Change plugin description and author * Update readme * Fix compile action * Fix include * Bump version `1.0.4-beta` * Remove grenade thrown debug info * Add `.unban` command (#20) Co-authored-by: marqdevx <[email protected]> * Comment * Clean cvar * Add description * Improve performance * Enable by cvar * Mark and clean * Fix `.setteam` * Add CFGs * create subfolder * Bump version `1.0.4` * Add control by cvar * Remove tests * Fix `.noflash` command * Add control by cvars * Clean description * Update command list and description * Update command list * Clean and update credits * Marqdevx/rebase/cs2fixes 1.5.0 (#43) * Rebase from @CS2Fixes 1.5.0 * Remove unused functions * Fix addresses * Fix addresses namespace * Fix changelevel crash * add credits and warmup end * Remove unused `Playerpawnbase` header Now the `CCSPlayerPawnBase` is inside `CCSPlayerPawn` class header * Fix client crash onTransmit * Dont install ambuild when its already done * Cleared get slots APis * Re-add new features after rebase --------- Co-authored-by: marqdevx <[email protected]> * Add mapname to .dem file --------- Co-authored-by: marqdevx <[email protected]> * Bump version * Update roadmap and metamod version * Update gamedata txt `d51c978` * coach kill after spawn * Remove spawn priority output * Remove CS2Fixes patches * Enable no flash due to typo * Fix cvar descriptions * Move organize command * Bump version * Clean feedback chat and colors * Remove coach on disconnect * Last grenade only teleports if exists * Update readme * Fix spawns teleport Fixing #45 * Add gotv folder --------- Co-authored-by: marqdevx <[email protected]>
- Loading branch information
Showing
133 changed files
with
30,327 additions
and
1,759 deletions.
There are no files selected for viewing
This file contains 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,109 @@ | ||
#Original at https://github.com/Source2ZE/CS2Fixes/blob/main/.github/workflows/build.yml | ||
name: CI | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
branches: | ||
- main | ||
paths-ignore: | ||
- LICENSE | ||
- README.md | ||
- 'configs**' | ||
- '**.sln' | ||
- '**.vcxproj**' | ||
pull_request: | ||
paths-ignore: | ||
- LICENSE | ||
- README.md | ||
- 'configs**' | ||
- '**.sln' | ||
- '**.vcxproj**' | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
HL2SDKCS2: ${{ github.workspace }}/mm-cs2-scrim/sdk | ||
container: ${{ matrix.container }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
include: | ||
- os: windows-latest | ||
- os: ubuntu-latest | ||
container: registry.gitlab.steamos.cloud/steamrt/sniper/sdk | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: mm-cs2-scrim | ||
submodules: recursive | ||
|
||
- name: Checkout Metamod | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: alliedmodders/metamod-source | ||
ref: master | ||
path: mmsource-2.0 | ||
submodules: recursive | ||
|
||
- name: Checkout AMBuild | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: alliedmodders/ambuild | ||
path: ambuild | ||
|
||
- name: Install AMBuild | ||
run: | | ||
cd ambuild && python setup.py install && cd .. | ||
- name: Build | ||
working-directory: mm-cs2-scrim | ||
shell: bash | ||
run: | | ||
mkdir build && cd build | ||
python ../configure.py --enable-optimize --symbol-files --sdks cs2 | ||
ambuild | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ runner.os }} | ||
path: mm-cs2-scrim/build/package | ||
|
||
release: | ||
name: Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Package | ||
run: | | ||
version=`echo $GITHUB_REF | sed "s/refs\/tags\///"` | ||
ls -Rall | ||
if [ -d "./Linux/" ]; then | ||
cd ./Linux/ | ||
tar -czf ../${{ github.event.repository.name }}-${version}-linux.tar.gz * | ||
cd - | ||
fi | ||
if [ -d "./Windows/" ]; then | ||
cd ./Windows/ | ||
zip -r ../${{ github.event.repository.name }}-${version}-windows.zip * | ||
cd - | ||
fi | ||
- name: Release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ github.event.repository.name }}-* | ||
tag: ${{ github.ref }} | ||
file_glob: true |
This file contains 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 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[Dd]ebug/ | ||
/[Dd]ebug/ | ||
[Dd]ebugPublic/ | ||
[Rr]elease/ | ||
/[Rr]elease/ | ||
[Rr]eleases/ | ||
[Pp]ublish/ | ||
[Pp]roperties/ | ||
|
This file contains 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 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 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,19 @@ | ||
// cvars for cs2scrim plugin | ||
// you can enable/disable features from this config file | ||
// by default all the features are enabled internally | ||
|
||
//console command | Value | Chat command | ||
cs2scrim_coach 1 //.coach | ||
cs2scrim_pracc 1 //.pracc | ||
cs2scrim_scrim 1 //.scrim | ||
cs2scrim_demo 1 //.record .stoprecord | ||
cs2scrim_restore 1 //.restore | ||
cs2scrim_rcon 1 //.rcon | ||
cs2scrim_pause 1 //.pause .unpause | ||
cs2scrim_practice_spawn 1 //.spawn | ||
cs2scrim_admin_ban 1 //.ban | ||
cs2scrim_admin_kick 1 //.kick | ||
cs2scrim_admin_gag 1 //.gag | ||
cs2scrim_admin_slay 1 //.slay | ||
cs2scrim_admin_teleport 1 //.goto | ||
cs2scrim_admin_team 1 //.setteam |
This file contains 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 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 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.