Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ansible Lint # feel free to pick your own name
name: Ansible Lint # feel free to pick your own name

on: [push, pull_request]

Expand All @@ -7,10 +7,10 @@ jobs:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Run ansible-lint
uses: ansible/ansible-lint@main
# # optional (see below):
# # optional (see below):
with:
args: "--exclude sm_plugins watcher"
setup_python: "true"
Expand All @@ -21,12 +21,12 @@ jobs:
name: Build Plugins
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Setup SourcePawn Compiler
uses: rumblefrog/setup-sp@master
with:
version: "1.12.x"
version: "1.13.x"

- name: Ensure plugin builds
working-directory: ./roles/sourcemod/files/addons/sourcemod/scripting
Expand All @@ -36,7 +36,7 @@ jobs:
echo -e "\nCompiling $file... to ../plugins/${f}.smx"
spcomp -w234 -O2 -v2 -i include $file -o ../plugins/$f.smx
done

echo "===OUT FILES==="
ls
echo version = ${{ steps.setup_sp.outputs.plugin-version }}
echo version = ${{ steps.setup_sp.outputs.plugin-version }}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@
[submodule "sm_plugins/HalloweenCosmeticEnabler"]
path = sm_plugins/HalloweenCosmeticEnabler
url = https://github.com/Mikusch/HalloweenCosmeticEnabler
[submodule "sm_plugins/TF2-Dodgeball-Modified"]
path = sm_plugins/TF2-Dodgeball-Modified
url = https://github.com/Silorak/TF2-Dodgeball-Modified.git
68 changes: 0 additions & 68 deletions Makefile

This file was deleted.

64 changes: 64 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
PLAYBOOK_PATH := "./"
HOSTS := "hosts.yml"
USER := "tf2server"
FORKS := "20"
inventory := "prod.hosts"

all: site

#format:
# @find ./roles/sourcemod/files/addons/sourcemod/scripting -regex '.*\.\(sp\)' -exec clang-format -style=file -i {} \;

lint:
@ansible-lint --exclude sm_plugins watcher

deps:
@ansible-galaxy collection install -r collections/requirements.yml

adduser:
@ansible-playbook -u root -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/adduser.yml

srcds:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/srcds.yml

web:
ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/web.yml --limit metrics

vpn:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/vpn.yml

system:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/system.yml

site:
ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) site.yml

ping:
@ansible tf2 -m ping $(ARGS)

update:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/update.yml

game_engine:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) --tags game_engine $(PLAYBOOK_PATH)/srcds.yml

game_config:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) --tags game_config $(PLAYBOOK_PATH)/srcds.yml

uncledane:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/uncledane.yml

bdapi:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/bdapi.yml

demostats:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/demostats.yml

tf2bdd:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/tf2bdd.yml

sentry:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/sentry.yml

srcds-test:
@ansible-playbook -u $(USER) -i $(inventory) --forks $(FORKS) $(PLAYBOOK_PATH)/srcds.yml
65 changes: 65 additions & 0 deletions roles/sourcemod/files/addons/sourcemod/gamedata/fov.games.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
"Games"
{
"tf"
{
"Functions"
{
"CBasePlayer::SetFOV"
{
"signature" "CBasePlayer::SetFOV"
"callconv" "thiscall"
"return" "bool"
"this" "entity"

"arguments"
{
"pRequester"
{
"type" "cbaseentity"
}
"FOV"
{
"type" "int"
}
"zoomRate"
{
"type" "float"
}
"iZoomStart"
{
"type" "int"
}
}
}
"CBasePlayer::SetDefaultFOV"
{
"signature" "CBasePlayer::SetDefaultFOV"
"callconv" "thiscall"
"return" "void"
"this" "entity"

"arguments"
{
"fov"
{
"type" "int"
}
}
}
}

"Signatures"
{
"CBasePlayer::SetFOV"
{
"library" "server"
"linux" "@_ZN11CBasePlayer6SetFOVEP11CBaseEntityifi"
}
"CBasePlayer::SetDefaultFOV"
{
"library" "server"
"linux" "@_ZN11CBasePlayer13SetDefaultFOVEi"
}
}
}
}
Loading
Loading