mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 02:33:21 +00:00
Minor tweaks
This commit is contained in:
parent
33c8be2317
commit
68583745ed
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
|
||||||
#define PLUGIN_VERSION "1.0"
|
#define PLUGIN_VERSION "1.0"
|
||||||
#define BILE_NO_HORDE_THRESHOLD 20
|
#define BILE_NO_HORDE_THRESHOLD 5
|
||||||
#define DOOR_CLOSE_THRESHOLD 5000.0
|
#define DOOR_CLOSE_THRESHOLD 5000.0
|
||||||
|
|
||||||
#include <sourcemod>
|
#include <sourcemod>
|
||||||
|
@ -162,7 +162,7 @@ public void OnEntityDestroyed(int entity) {
|
||||||
static char classname[16];
|
static char classname[16];
|
||||||
if(IsValidEntity(entity) && entity <= 4096) {
|
if(IsValidEntity(entity) && entity <= 4096) {
|
||||||
GetEntityClassname(entity, classname, sizeof(classname));
|
GetEntityClassname(entity, classname, sizeof(classname));
|
||||||
if(StrEqual(classname, "vomitjar_projec")) {
|
if(StrEqual(classname, "vomitjar_projec")) { //t cut off by classname size
|
||||||
int thrower = GetEntPropEnt(entity, Prop_Send, "m_hThrower");
|
int thrower = GetEntPropEnt(entity, Prop_Send, "m_hThrower");
|
||||||
if(thrower > 0 && thrower <= MaxClients && IsClientConnected(thrower) && IsClientInGame(thrower)) {
|
if(thrower > 0 && thrower <= MaxClients && IsClientConnected(thrower) && IsClientInGame(thrower)) {
|
||||||
static float src[3];
|
static float src[3];
|
||||||
|
@ -183,7 +183,7 @@ public void OnEntityDestroyed(int entity) {
|
||||||
|
|
||||||
if(result == Plugin_Stop) {
|
if(result == Plugin_Stop) {
|
||||||
AcceptEntityInput(entity, "kill");
|
AcceptEntityInput(entity, "kill");
|
||||||
GiveClientWeapon(thrower, "vomitjar");
|
// GiveClientWeapon(thrower, "vomitjar");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue