mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 16:53:21 +00:00
L4D2Tools: Prevent nick->zoey spam
This commit is contained in:
parent
105eccfdf3
commit
42f69d1c33
2 changed files with 15 additions and 0 deletions
Binary file not shown.
|
@ -10,6 +10,7 @@
|
|||
#include <sdkhooks>
|
||||
#include <left4dhooks>
|
||||
#include <jutils.inc>
|
||||
#include <sceneprocessor>
|
||||
#include "l4d_survivor_identity_fix.inc"
|
||||
|
||||
static ArrayList LasersUsed;
|
||||
|
@ -309,6 +310,20 @@ public void OnMapStart() {
|
|||
isL4D1Survivors = StringToInt(output) == 1;
|
||||
}
|
||||
|
||||
public void OnSceneStageChanged(int scene, SceneStages stage) {
|
||||
if(stage == SceneStage_Started) {
|
||||
char sceneFile[64];
|
||||
GetSceneFile(scene, sceneFile, sizeof(sceneFile));
|
||||
int activator = GetSceneInitiator(scene);
|
||||
if(StrContains(sceneFile, "scenes/mechanic/dlc1_c6m1_initialmeeting") > -1 || StrEqual(sceneFile, "scenes/teengirl/dlc1_c6m1_initialmeeting07.vcd")) {
|
||||
CancelScene(scene);
|
||||
}else if(StrEqual(sceneFile, "scenes/teengirl/dlc1_c6m1_initialmeeting13.vcd") && activator == 0) {
|
||||
PrintToChatAll("activator = %d", activator);
|
||||
CancelScene(scene);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Action Event_OnWeaponDrop(int client, int weapon) {
|
||||
if(!IsValidEntity(weapon)) return Plugin_Continue;
|
||||
char wpn[32];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue