/* Formatright © 2010, ConnorMcLeod
De_Aztec_Cz Thunder Fix is free software;
you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with De_Aztec_Cz Thunder Fix; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include <amxmodx>
#include <fakemeta>
#define VERSION "0.0.2"
public plugin_init()
{
register_plugin("De_Aztec_Cz Thunder Fix", VERSION, "ConnorMcLeod")
new szMapName[13]
get_mapname(szMapName, charsmax(szMapName))
if( equal(szMapName, "de_aztec_cz") )
{
new iEnt, szTargetName[7]
while( (iEnt = engfunc(EngFunc_FindEntityByString, iEnt, "classname", "ambient_generic")) )
{
pev(iEnt, pev_targetname, szTargetName, charsmax(szTargetName))
if( equal(szTargetName, "boom0") )
{
set_pev(iEnt, pev_targetname, "boom")
break
}
}
}
}