Compare commits

...

5 commits

Author SHA1 Message Date
f2e2de6ca9 Merge branch 'master' of github.com:Jackzmc/sourcemod-plugins 2025-01-07 09:41:32 -06:00
fac3d5031e Clear game state 2025-01-07 09:41:28 -06:00
cb071178c0 Update README 2025-01-07 09:39:03 -06:00
b9f2d9eb07 Mark end of transitions 2024-12-10 16:06:54 -06:00
7f5aa6a014 Fix getting survivor set too early 2024-12-10 16:06:48 -06:00
5 changed files with 9 additions and 2 deletions

View file

@ -6,6 +6,8 @@ Please note that these plugins are only guaranteed to work on Left 4 Dead **2**.
Not always the latest versions. If you have any interest with a plugin, I can make sure to upload the latest. Not always the latest versions. If you have any interest with a plugin, I can make sure to upload the latest.
Currently plugins are only compiled and tested with SM 1.11-6964
Useful things: Useful things:
1. **Netprop Viewer** [L4D2 Netprops](https://jackz.me/netprops/l4d2) and [L4D2 Datamaps](https://jackz.me/netprops/l4d2-data) 1. **Netprop Viewer** [L4D2 Netprops](https://jackz.me/netprops/l4d2) and [L4D2 Datamaps](https://jackz.me/netprops/l4d2-data)
@ -371,6 +373,7 @@ _This plugin is not perfect, sometimes it may trigger early, or not trigger at a
### l4d2_vocalize_control ### l4d2_vocalize_control
A very small plugin that simply allows a player to mute another player's vocalizations only for them. A very small plugin that simply allows a player to mute another player's vocalizations only for them.
It only blocks the actual sounds, captions still show, and any follow-up vocalizations continue to play.
* **Commands:** * **Commands:**
* `sm_vgag <player(s)>` - Vocalize gag or ungags selected player(s) for the command activator only * `sm_vgag <player(s)>` - Vocalize gag or ungags selected player(s) for the command activator only

Binary file not shown.

View file

@ -823,6 +823,7 @@ void Event_GameEnd(Event event, const char[] name, bool dontBroadcast) {
// Resend all players // Resend all players
SendPlayers(); SendPlayers();
} }
g_gameState = State_None;
} }
void Event_MapTransition(Event event, const char[] name, bool dontBroadcast) { void Event_MapTransition(Event event, const char[] name, bool dontBroadcast) {
@ -954,7 +955,7 @@ public void OnClientAuthorized(int client, const char[] auth) {
public void OnClientPutInServer(int client) { public void OnClientPutInServer(int client) {
if(g_gameState == State_Transitioning) { if(g_gameState == State_Transitioning) {
g_gameState = State_None; g_gameState = State_None;
if(StartPayload()) { if(StartPayload(true)) {
AddGameRecord(); AddGameRecord();
SendPayload(); SendPayload();
} }

View file

@ -299,7 +299,6 @@ public void OnClientCookiesCached(int client) {
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
//Prevent issues with L4D1 characters being TP'd and stuck in brain dead form //Prevent issues with L4D1 characters being TP'd and stuck in brain dead form
public void OnMapStart() { public void OnMapStart() {
isL4D1Survivors = L4D2_GetSurvivorSetMap() == 1;
survivors = 0; survivors = 0;
@ -308,6 +307,10 @@ public void OnMapStart() {
} }
GetCurrentMap(currentMap, sizeof(currentMap)); GetCurrentMap(currentMap, sizeof(currentMap));
RequestFrame(Frame_MapStart);
}
void Frame_MapStart() {
isL4D1Survivors = L4D2_GetSurvivorSetMap() == 1;
} }
//Either use preferred model OR find the least-used. //Either use preferred model OR find the least-used.