Skip to content

Commit 53fee61

Browse files
authored
feat: Initial release (#1)
1 parent a136098 commit 53fee61

24 files changed

Lines changed: 295 additions & 1 deletion

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: CI
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
name: "Build"
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-24.04]
13+
include:
14+
- os: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build sourcemod plugin
18+
uses: maxime1907/action-sourceknight@v1
19+
with:
20+
cmd: build
21+
22+
- name: Create package
23+
run: |
24+
mkdir -p /tmp/package
25+
cp -R .sourceknight/package/* /tmp/package
26+
cp -R materials /tmp/package/common/
27+
cp -R models /tmp/package/common/
28+
29+
- name: Upload build archive for test runners
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: ${{ runner.os }}
33+
path: /tmp/package
34+
35+
tag:
36+
name: Tag
37+
needs: build
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
42+
43+
- uses: dev-drprasad/delete-tag-and-release@v1.1
44+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
45+
with:
46+
delete_release: true
47+
tag_name: latest
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
51+
- uses: rickstaa/action-create-tag@v1
52+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
53+
with:
54+
tag: "latest"
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
57+
release:
58+
name: Release
59+
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
60+
needs: [build, tag]
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Download artifacts
64+
uses: actions/download-artifact@v4
65+
66+
- name: Versioning
67+
run: |
68+
version="latest"
69+
if [[ "${{ github.ref_type }}" == 'tag' ]]; then
70+
version=`echo $GITHUB_REF | sed "s/refs\/tags\///"`;
71+
fi
72+
echo "RELEASE_VERSION=$version" >> $GITHUB_ENV
73+
74+
- name: Package
75+
run: |
76+
ls -Rall
77+
if [ -d "./Linux/" ]; then
78+
cd ./Linux/
79+
tar -czf ../${{ github.event.repository.name }}-${{ env.RELEASE_VERSION }}.tar.gz -T <(\ls -1)
80+
cd -
81+
fi
82+
83+
- name: Release
84+
uses: svenstaro/upload-release-action@v2
85+
with:
86+
repo_token: ${{ secrets.GITHUB_TOKEN }}
87+
file: '*.tar.gz'
88+
tag: ${{ env.RELEASE_VERSION }}
89+
file_glob: true
90+
overwrite: true

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
build/
2+
release/
3+
4+
.DS_Store
5+
.vscode
6+
7+
*.smx
8+
plugins/
9+
.sourceknight
10+
.venv

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,46 @@
11
# sm-plugins-FixMapFiles
2-
Download fixed files for multiple maps
2+
3+
A SourceMod plugin that automatically downloads and applies fixed files for specific maps in Counter-Strike: Source.
4+
5+
## Description
6+
7+
This plugin automatically applies necessary file fixes for specific maps when they are loaded. It handles two main types of fixes:
8+
9+
1. Paranoid Rezurrection specific fixes
10+
2. Gargantua model fixes (applies to multiple maps)
11+
12+
## Supported Maps
13+
14+
### Maps with Paranoid + Gargantua Fixes
15+
- `ze_paranoid_rezurrection_v11_9`
16+
17+
### Maps with Gargantua Fixes Only
18+
- `ze_avalanche_reboot_beta7`
19+
- `ze_l0v0l_v1_4`
20+
- `ze_mountain_escape_v5_zy`
21+
- `ze_Pidaras_v1_4fix3`
22+
- `ze_sandstorm_css_v1_5x3`
23+
- `ze_tyranny_v5fix`
24+
25+
## Features
26+
27+
### Paranoid Rezurrection Fixes
28+
- Adds fixed BSOD (Blue Screen of Death) textures
29+
- Fixes metal vent decals
30+
- Adds all items mode textures
31+
32+
### Gargantua Model Fixes
33+
- Applies fixed Gargantua model files
34+
- Includes all necessary model files and textures
35+
- Fixes model compatibility issues
36+
37+
## Installation
38+
39+
1. Place the compiled plugin in your server's `addons/sourcemod/plugins` directory
40+
2. Ensure all required files are present in your server's `cstrike/*` directory
41+
3. The plugin will automatically apply fixes when supported maps are loaded
42+
43+
## Requirements
44+
45+
- SourceMod 1.10 or higher
46+
- Counter-Strike: Source
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#pragma semicolon 1
2+
#pragma newdecls required
3+
4+
#include <sourcemod>
5+
#include <sdktools>
6+
7+
public Plugin myinfo =
8+
{
9+
name = "Maps files fixer",
10+
author = ".Rushaway",
11+
description = "Downloads fixed files for multiples map",
12+
version = "1.0.0",
13+
url = ""
14+
};
15+
16+
public void OnMapStart()
17+
{
18+
char sCurrentMap[256];
19+
GetCurrentMap(sCurrentMap, sizeof(sCurrentMap));
20+
if (strcmp(sCurrentMap, "ze_paranoid_rezurrection_v11_9", false) == 0)
21+
{
22+
ApplyParanoidFix();
23+
ApplyGargantuaFix();
24+
}
25+
else if (strcmp(sCurrentMap, "ze_avalanche_reboot_beta7", false) == 0 || strcmp(sCurrentMap, "ze_l0v0l_v1_4", false) == 0 ||
26+
strcmp(sCurrentMap, "ze_mountain_escape_v5_zy", false) == 0 || strcmp(sCurrentMap, "ze_Pidaras_v1_4fix3", false) == 0 ||
27+
strcmp(sCurrentMap, "ze_sandstorm_css_v1_5x3", false) == 0 || strcmp(sCurrentMap, "ze_tyranny_v5fix", false) == 0)
28+
{
29+
ApplyGargantuaFix();
30+
}
31+
}
32+
33+
stock void ApplyParanoidFix()
34+
{
35+
AddFileToDownloadsTable("materials/rafuron/paranoid/new_bsod.vmt");
36+
AddFileToDownloadsTable("materials/rafuron/paranoid/new_bsod.vtf");
37+
38+
AddFileToDownloadsTable("materials/rafuron/paranoid/new_bsod2.vmt");
39+
AddFileToDownloadsTable("materials/rafuron/paranoid/new_bsod2.vtf");
40+
41+
AddFileToDownloadsTable("materials/models/lotr/singularity/decalmetalvent004a.vmt");
42+
43+
AddFileToDownloadsTable("materials/berke1/zombieescape1/paranoidrezurrection1/allitemsmode1.vmt");
44+
AddFileToDownloadsTable("materials/berke1/zombieescape1/paranoidrezurrection1/allitemsmode1.vtf");
45+
}
46+
47+
// See: https://github.com/Moltard/CSS-ZE-Configs/commit/28793dbfa52fbdcdddf4af3f5d6bdc13c0439ace
48+
stock void ApplyGargantuaFix()
49+
{
50+
PrecacheModel("models/garg_fix_2025.mdl");
51+
52+
AddFileToDownloadsTable("materials/models/garg_fix_2025/garg_body.vmt");
53+
AddFileToDownloadsTable("materials/models/garg_fix_2025/garg_body.vtf");
54+
AddFileToDownloadsTable("materials/models/garg_fix_2025/garg_body_normal.vtf");
55+
AddFileToDownloadsTable("materials/models/garg_fix_2025/garg_eye_Chrome.vmt");
56+
AddFileToDownloadsTable("materials/models/garg_fix_2025/garg_eye_Chrome.vtf");
57+
58+
AddFileToDownloadsTable("models/garg_fix_2025.dx80.vtx");
59+
AddFileToDownloadsTable("models/garg_fix_2025.dx90.vtx");
60+
AddFileToDownloadsTable("models/garg_fix_2025.mdl");
61+
AddFileToDownloadsTable("models/garg_fix_2025.phy");
62+
AddFileToDownloadsTable("models/garg_fix_2025.sw.vtx");
63+
AddFileToDownloadsTable("models/garg_fix_2025.vvd");
64+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
UnlitGeneric
2+
{
3+
$basetexture "berke1/zombieescape1/paranoidrezurrection1/allitemsmode1"
4+
}
Binary file not shown.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"VertexLitGeneric"
2+
{
3+
"$baseTexture" "models/garg_fix_2025/garg_body"
4+
"$bumpmap" "models/garg_fix_2025/garg_body_normal"
5+
// "$detail" "detail/detail_noise1"
6+
"$detailscale" 2.5
7+
"$surfaceprop" "alienflesh"
8+
"$model" 1
9+
10+
// "$evnmapcontrast" "0.5"
11+
"$envmap" "env_cubemap"
12+
"$envmapcontrast" 1
13+
"$envmapsaturation" 1
14+
// "$envmaptint" "[.56 .67 .75]"
15+
"$normalmapalphaenvmapmask" "1"
16+
17+
"VertexLitGeneric_DX9_hdr"
18+
{
19+
// put HDR override stuff here
20+
"$envmaptint" "[ .39 .39 .62]"
21+
}
22+
23+
24+
}
171 KB
Binary file not shown.
85.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)