Skip to content

Commit

Permalink
1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MK99MA committed Jan 25, 2022
1 parent 0f0db38 commit 0f0d08c
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 12 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [So]ccer [Mo]d [E]dit [-] [2019] (Current Version: 1.3.2 | Latest Tested Version: 1.3.2)
# [So]ccer [Mo]d [E]dit [-] [2019] (Current Version: 1.3.2 | Latest Tested Version: 1.3.3)

An edited Version of Marco Boogers SourceMod plugin aimed at Counter-Strike:Source soccer servers.
I merely edited and added stuff without any prior knowledge, so expect some heavily improvable code.
Expand Down Expand Up @@ -27,7 +27,9 @@ I incorporated parts of the following plugins and only modified them partially t

If the problem / question remains feel free to create an issue [here](https://github.com/MK99MA/soccermod-2019edit/issues)

## [>>Grass Replacer<<](https://github.com/MK99MA/SoMoE-19/raw/master/Grassreplacer.zip)
## [>>Mostly accurate CHANGELOG<<](https://somoe-19.readthedocs.io/en/latest/changelogs/changes.html).

Use this file & follow it's readme to automatically replace the grass for maps using Lolobubus original grass texture!
## [>>Related map background for the main menu<<](https://github.com/MK99MA/SoMoE-19/raw/master/MainMenuBackground.zip)

Could be used to force cstrike to cache its grass texture right after starting. Obsolete since 1.3.2 and the addition of server-sided grass replacer options.

Binary file not shown.
Binary file modified addons/sourcemod/plugins/soccer_mod.smx
Binary file not shown.
12 changes: 11 additions & 1 deletion addons/sourcemod/scripting/soccer_mod.sp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// **************************************************************************************************************
// ************************************************** DEFINES ***************************************************
// **************************************************************************************************************
#define PLUGIN_VERSION "1.3.2"
#define PLUGIN_VERSION "1.3.3"
#define UPDATE_URL "https://raw.githubusercontent.com/MK99MA/SoMoE-19/master/addons/sourcemod/updatefile.txt"
#define MAX_NAMES 10
#define MAXCONES_DYN 15
Expand Down Expand Up @@ -878,6 +878,16 @@ public Action cmd_jointeam(int client, const char[] command, int iArgs)
if (ImportJoinNumber(steamid) > 12) CPrintToChatAll("{%s}[%s] {%s}NOTICE: %N joined on position %i.", prefixcolor, prefix, textcolor, client, ImportJoinNumber(steamid));
}
}
if((first12Set == 2) && CapPrep)
{
if(team == 2 || team == 3)
{
char steamid[32]
GetClientAuthId(client, AuthId_Engine, steamid, sizeof(steamid));

if (ImportJoinNumber(steamid) > capnr) CPrintToChatAll("{%s}[%s] {%s}NOTICE: %N joined on position %i.", prefixcolor, prefix, textcolor, client, ImportJoinNumber(steamid));
}
}

return Plugin_Continue;
}
Expand Down
6 changes: 5 additions & 1 deletion addons/sourcemod/scripting/soccer_mod/modules/cap.sp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,11 @@ public void CapAddRandomPlayer(int client)

if((first12Set == 1) && CapPrep)
{
if (ImportJoinNumber(targetSteamid) > 12) CPrintToChatAll("{%s}[%s] {%s}NOTICE: %N joined on position %i.", prefixcolor, prefixcolor, textcolor, randomPlayer, ImportJoinNumber(targetSteamid));
if (ImportJoinNumber(targetSteamid) > 12) CPrintToChatAll("{%s}[%s] {%s}NOTICE: %N joined on position %i.", prefixcolor, prefix, textcolor, randomPlayer, ImportJoinNumber(targetSteamid));
}
if((first12Set == 2) && CapPrep)
{
if (ImportJoinNumber(targetSteamid) > capnr) CPrintToChatAll("{%s}[%s] {%s}NOTICE: %N joined on position %i.", prefixcolor, prefix, textcolor, randomPlayer, ImportJoinNumber(targetSteamid));
}
}
else CPrintToChat(client, "{%s}[%s] {%s}No players in spectator", prefixcolor, prefix, textcolor);
Expand Down
8 changes: 3 additions & 5 deletions addons/sourcemod/updatefile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
{
"Version"
{
"Latest" "1.3.2"
"Previous" "1.3.1"
"Latest" "1.3.3"
"Previous" "1.3.2"
}

"Notes" "More Fixes to joinlist"
"Notes" "Added pre-cap-join option to first 12 rule"
"Notes" "Added !aim command"
"Notes" "Minor changes & fixes"
}

"Files"
Expand Down
4 changes: 3 additions & 1 deletion docs/changelogs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ Changelog
=========

-----
1.3.2
1.3.2 & 1.3.3
-----

***
New
***

- Added Pre-Cap-Join option to First12 Toggle
- Added notification if a player that shouldn't be allowed to play joins a team / gets forced
- Added !aim command to find out coordinates to use with replacer configs

*******
Changes
*******

- Removed match reset at mapstart - sm_maprr;sm_start combination should work again

*****
Fixes
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Welcome to the `SoMoE-19 <https://github.com/MK99MA/SoMoE-19>`_ documentation!
======================================

.. toctree::
:caption: Current Version: 1.3.2:
:caption: Current Version: 1.3.3:

credits
features
Expand Down

0 comments on commit 0f0d08c

Please sign in to comment.