Add some minor checks

This commit is contained in:
Jackzie 2021-09-23 14:38:14 -05:00
parent d5a4f2224f
commit 3f5959ec71
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
8 changed files with 138 additions and 59 deletions

View file

@ -1,15 +0,0 @@
public void MarkPlayer(int client, int marker) {
}
public void UnmarkPlayer(int client) {
}
public void IsPlayerMarked(int client) {
}
public void ToggleMarkPlayer(int client, marker) {
}

View file

@ -40,6 +40,7 @@ bool ToggleMarkPlayer(int client, int target) {
Call_PushCell(target);
Call_Finish();
g_PendingBanTroll[target] = true;
EnableTroll(target, "NoProfanity");
ShowActivity(client, "marked %N as troll", target);
return true;
}else{

View file

@ -37,6 +37,7 @@ float GetIdealMinDistance(int specialType) {
}
bool SpawnSpecialInFace(int target, int specialType) {
if(specialType >= sizeof(SPECIAL_NAMES)) return false;
static float pos[3], ang[3];
static float testPos[3];
testPos = pos;
@ -68,6 +69,7 @@ bool SpawnSpecialInFace(int target, int specialType) {
}
bool SpawnSpecialNear(int target, int specialType) {
if(specialType >= sizeof(SPECIAL_NAMES)) return false;
static float pos[3];
if(L4D_GetRandomPZSpawnPosition(target, specialType, 10, pos)) {
int special = (specialType == 7) ? L4D2_SpawnWitch(pos, ZERO_VECTOR) : L4D2_SpawnSpecial(specialType, pos, ZERO_VECTOR);

View file

@ -36,4 +36,4 @@ float ZERO_VECTOR[3] = {0.0, 0.0, 0.0};
#include <feedthetrolls/commands>
#include <feedthetrolls/events>
#include <feedthetrolls/timers>
#include <feedthetrolls/menus>
#include <feedthetrolls/menus>