You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

32 lines
837 B

#pragma semicolon 1
#include <sourcemod>
#include <sdkhooks>
#define nigga_bomb "tf_projectile_pipe_remote"
public Plugin:myinfo =
{
name = "Pipe remover",
author = "gsd",
description = "i hate bugs",
version = "1.0",
url = "https://tf2.pblr-nyk.pro/"
}
public OnEntityCreated (entity, const String:classname[]) {
if(StrEqual(classname, nigga_bomb))
{
//PrintToChatAll("%d place pipe", GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity"));
SDKHook(entity, SDKHook_Touch, OnPipeTouch);
}
}
public OnPipeTouch(entity, place) {
char place_name[64];
GetEdictClassname(place, place_name, 64);
//PrintToChatAll("pipe touch, %d, %d, %s", entity, place, place_name);
if (StrEqual(place_name, "prop_dynamic")) {
//PrintToChatAll("pipe need dead");
RemoveEntity(entity);
}
}