-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rewrite the entire thing * Add convar to allow enabling teleporters * Fix VGUI screens not being hidden * Let server operators decide on tracktrains * Make the button prevention configurable And disabled by default * Make the code styling consistent * Allow disabling WFP * Add hideplayers to menu * Display chat hints * Add activator health kit convar * Allow adding more hints with no code changes * Open class menu on join * Assume 0 queue points if not loaded * Add replacement weapons system * Overhaul README * Copy replacement defindex from prefab * Replace GRU with MvM GRU * Fix messed up translation phrase * Revert "Replace GRU with MvM GRU" This reverts commit e1cbfcd. * Add preference to disable activator speed boost * Wrong way! * Fix waiting for players restarting or getting stuck * Pre mode for player_death * Add admin command * Add various convars and preferences * Few convar changes * Remove unused defines * Only use alive activator in kill feed * How did I never catch that before * Add actions file * Make script ready for master * Add health bar convar * Update convar names and descriptions * Add credits * Add messages for toggling visibility * Keep convars mostly the same * Add license headers * Move a function from util to player
- Loading branch information
Showing
28 changed files
with
2,076 additions
and
3,599 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,80 @@ | ||
name: Compile and release | ||
|
||
on: | ||
push: | ||
branches: | ||
master | ||
|
||
env: | ||
PLUGIN_NAME: deathrun | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
sm-version: [ '1.12.x' ] | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set environment variables | ||
run: echo SCRIPTS_PATH=$(pwd) >> $GITHUB_ENV | ||
|
||
- name: Download includes | ||
run: | | ||
wget -P ${{ env.SCRIPTS_PATH }}/addons/sourcemod/scripting/include https://raw.githubusercontent.com/FlaminSarge/tf2attributes/master/scripting/include/tf2attributes.inc | ||
wget -P ${{ env.SCRIPTS_PATH }}/addons/sourcemod/scripting/include https://raw.githubusercontent.com/asherkin/TF2Items/master/pawn/tf2items.inc | ||
wget -P ${{ env.SCRIPTS_PATH }}/addons/sourcemod/scripting/include https://raw.githubusercontent.com/nosoop/SM-TFUtils/master/scripting/include/tf2utils.inc | ||
wget -P ${{ env.SCRIPTS_PATH }}/addons/sourcemod/scripting/include https://raw.githubusercontent.com/nosoop/SM-TFEconData/master/scripting/include/tf_econ_data.inc | ||
wget -P ${{ env.SCRIPTS_PATH }}/addons/sourcemod/scripting/include https://raw.githubusercontent.com/Mikusch/PluginStateManager/refs/heads/master/addons/sourcemod/scripting/include/pluginstatemanager.inc | ||
wget -P ${{ env.SCRIPTS_PATH }}/addons/sourcemod/scripting/include https://raw.githubusercontent.com/DoctorMcKay/sourcemod-plugins/master/scripting/include/morecolors.inc | ||
- name: Setup SourcePawn Compiler ${{ matrix.sm-version }} | ||
id: setup_sp | ||
uses: rumblefrog/setup-sp@master | ||
with: | ||
version: ${{ matrix.sm-version }} | ||
version-file: ./addons/sourcemod/scripting/${{ env.PLUGIN_NAME }}.sp | ||
define-name: "PLUGIN_VERSION" | ||
|
||
- name: Compile plugins | ||
run: | | ||
mkdir ../plugins | ||
spcomp -v2 -E -i "include" -o"../plugins/${{ env.PLUGIN_NAME }}.smx" ${{ env.PLUGIN_NAME }}.sp | ||
echo "===OUT FILES===" | ||
ls ../plugins | ||
echo "===VERSION===" | ||
echo ${{ steps.setup_sp.outputs.plugin-version }} | ||
working-directory: ${{ env.SCRIPTS_PATH }}/addons/sourcemod/scripting | ||
|
||
- name: Install zip | ||
uses: montudor/action-zip@v1 | ||
|
||
- name: Zip output | ||
run: | | ||
zip -qq -y -r ${{ github.event.repository.name }}.zip addons scripts | ||
working-directory: ${{ env.SCRIPTS_PATH }} | ||
|
||
- name: List files in the directory | ||
run: ls -R | ||
working-directory: ${{ env.SCRIPTS_PATH }} | ||
|
||
- name: List files in the zip | ||
run: unzip -l ${{ github.event.repository.name }}.zip | ||
working-directory: ${{ env.SCRIPTS_PATH }} | ||
|
||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.setup_sp.outputs.plugin-version }} | ||
artifacts: ${{ github.event.repository.name }}.zip | ||
draft: true | ||
allowUpdates: true | ||
updateOnlyUnreleased: true | ||
skipIfReleaseExists: 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
Oops, something went wrong.