Using this one should work, as it cycles through the entities
(The other one I posted wouldn't have worked anyway)
#include <sourcemod>
#include <sdktools>
//Plugin Info
public Plugin:myinfo =
{
name = "Remove Entity",
author = "Bottswana",
description = "Removes console spam from recent update",
version = "1.0.0",
url = "http://asbogaming.com <http://asbogaming.com/>"
}
//Plugin Init
public OnPluginStart()
{
HookEvent("teamplay_round_start", Event_Hook, EventHookMode_Pre);
}
//Event
public Action:Event_Hook(Handle:event, const String:name[],
bool:dontBroadcast)
{
new index = -1;
while ((index = FindEntityByClassname2(index, "upper_dish_spin")) != -1)
{
AcceptEntityInput(index, "kill");
}
}
stock FindEntityByClassname2(startEnt, const String:classname[])
{
while (startEnt > -1 && !IsValidEntity(startEnt)) startEnt--;
return FindEntityByClassname(startEnt, classname);
}
On 30/07/2011 20:03, "Saul Rennison" <[email protected]> wrote:
>Try it several times, there may be more than one (re: the *ent_fire*
>method)
>
>
>Kind regards,
>*Saul Rennison*
>
>
>On 30 July 2011 18:54, Info <[email protected]> wrote:
>
>> Tried both the sv_cheats kill method and the plugin, but neither seems
>>to
>> halt the console spam on maps with the satellite (e.g., frontier).
>>
>> On Sat, Jul 30, 2011 at 10:09, James Botting <[email protected]
>> >wrote:
>>
>> > I wrote this quickly in sourcepawn that should achieve the same thing.
>> > Can't try it here because were not getting the console spew.
>> >
>> > #include <sourcemod>
>> > #include <sdktools>
>> >
>> > //Plugin Info
>> > public Plugin:myinfo =
>> > {
>> > name = "Remove Entity",
>> > author = "Bottswana",
>> > description = "Removes console spam from recent update",
>> > version = "1.0.0",
>> > url = "http://asbogaming.com"
>> > }
>> >
>> > //Plugin Init
>> > public OnMapLoad()
>> > {
>> > new index = -1;
>> > while ((index = FindEntityByClassname2(index, "upper_dish_spin")) !=
>>-1)
>> > {
>> > AcceptEntityInput(index, "kill");
>> > }
>> > }
>> >
>> > stock FindEntityByClassname2(startEnt, const String:classname[])
>> > {
>> > while (startEnt > -1 && !IsValidEntity(startEnt)) startEnt--;
>> > return FindEntityByClassname(startEnt, classname);
>> > }
>> >
>> >
>> >
>> > On 30/07/2011 18:02, "Saul Rennison" <[email protected]> wrote:
>> >
>> > >sv_cheats 1
>> > >ent_fire upper_dish_spin Kill
>> > >sv_cheats 0
>> > >
>> > >On Saturday, 30 July 2011, Info <[email protected]> wrote:
>> > >> perhaps there is a way we can freeze/remove the entities resulting
>>in
>> > >>this
>> > >> spam, until a patch is released?
>> > >>
>> > >> On Sat, Jul 30, 2011 at 08:16, ics <[email protected]> wrote:
>> > >>
>> > >>> Both Steel and Gravelpit have them. Take a closer look next time.
>> > >>>
>> > >>> -ics
>> > >>>
>> > >>> 30.7.2011 17:49, Ross Bemrose kirjoitti:
>> > >>>
>> > >>> One of the server I was retiring yesterday afternoon was giving
>>me
>> an
>> > >>>> error similar to this one with upper_dish_spin on cp_gravelpit.
>> > >>>>
>> > >>>> I assume it's not related to the map at all due to this. After
>>all,
>> > >>>> neither Steel or Gravelpit have radar dishes, do they? I know
>>some
>> > >>>>maps
>> > >>>> have them (frontier and hightower, for example).
>> > >>>>
>> > >>>> On 7/30/2011 2:43 AM, Tyler Schwend wrote:
>> > >>>>
>> > >>>>> This also happens on an empty server (replay bot only) on
>>CP_Steel.
>> > >>>>>
>> > >>>>> Bad SetLocalAngles(0.000000,-3601.**083740,0.000000) on
>> > >>>>>upper_dish_spin
>> > >>>>>
>> > >>>>> ______________________________**_________________
>> > >>>>> To unsubscribe, edit your list preferences, or view the list
>> > >>>>>archives,
>> > >>>>> please visit:
>> > >>>>> http://list.valvesoftware.com/**mailman/listinfo/hlds_linux<
>> > >http://list.valvesoftware.com/mailman/listinfo/hlds_linux>
>> > >>>>>
>> > >>>>
>> > >>>>
>> > >>>> ______________________________**_________________
>> > >>>> To unsubscribe, edit your list preferences, or view the list
>> archives,
>> > >>>> please visit:
>> > >>>> http://list.valvesoftware.com/**mailman/listinfo/hlds_linux<
>> > >http://list.valvesoftware.com/mailman/listinfo/hlds_linux>
>> > >>>>
>> > >>>
>> > >>>
>> > >>> ______________________________**_________________
>> > >>> To unsubscribe, edit your list preferences, or view the list
>> archives,
>> > >>> please visit:
>> > >>> http://list.valvesoftware.com/**mailman/listinfo/hlds_linux<
>> > >http://list.valvesoftware.com/mailman/listinfo/hlds_linux>
>> > >>>
>> > >> _______________________________________________
>> > >> To unsubscribe, edit your list preferences, or view the list
>>archives,
>> > >please visit:
>> > >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>> > >>
>> > >
>> > >--
>> > >
>> > >
>> > >Kind regards,
>> > >*Saul Rennison*
>> > >_______________________________________________
>> > >To unsubscribe, edit your list preferences, or view the list
>>archives,
>> > >please visit:
>> > >http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>> >
>> >
>> >
>> > _______________________________________________
>> > To unsubscribe, edit your list preferences, or view the list archives,
>> > please visit:
>> > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>> >
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>
>_______________________________________________
>To unsubscribe, edit your list preferences, or view the list archives,
>please visit:
>http://list.valvesoftware.com/mailman/listinfo/hlds_linux
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux