HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /* Formatright © 2010, ConnorMcLeod
  2.  
  3. De_Aztec_Cz Thunder Fix is free software;
  4. you can redistribute it and/or modify it under the terms of the
  5. GNU General Public License as published by the Free Software Foundation.
  6.  
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11.  
  12. You should have received a copy of the GNU General Public License
  13. along with De_Aztec_Cz Thunder Fix; if not, write to the
  14. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA.
  16. */
  17.  
  18. #include <amxmodx>
  19. #include <fakemeta>
  20.  
  21. #define VERSION "0.0.2"
  22.  
  23. public plugin_init()
  24. {
  25. register_plugin("De_Aztec_Cz Thunder Fix", VERSION, "ConnorMcLeod")
  26.  
  27. new szMapName[13]
  28. get_mapname(szMapName, charsmax(szMapName))
  29.  
  30. if( equal(szMapName, "de_aztec_cz") )
  31. {
  32. new iEnt, szTargetName[7]
  33. while( (iEnt = engfunc(EngFunc_FindEntityByString, iEnt, "classname", "ambient_generic")) )
  34. {
  35. pev(iEnt, pev_targetname, szTargetName, charsmax(szTargetName))
  36. if( equal(szTargetName, "boom0") )
  37. {
  38. set_pev(iEnt, pev_targetname, "boom")
  39. break
  40. }
  41. }
  42. }
  43. }