New const zombie_idle_sound2 = "zombie_plague/zombie_breathing. No funcciona, ademas le quita la habilidad, ya no se hace invisible al agacharse Set_pev ( id, pev_renderamt, get_pcvar_float ( g_ai_zombie_invisible )) Set_pev ( id, pev_rendermode, kRenderTransAlpha ) Set_pev ( id, pev_renderfx, kRenderFxGlowShell ) New iRandomNum = random_num ( zisA, zisB )Įmit_sound ( id, CHAN_VOICE, zombie_idle_sound1, VOL_NORM, ATTN_NORM, 0, PITCH_NORM )Įmit_sound ( id, CHAN_VOICE, zombie_idle_sound2, VOL_NORM, ATTN_NORM, 0, PITCH_NORM ) Set_pev ( id, pev_rendermode, kRenderNormal ) Set_pev ( id, pev_renderfx, kRenderFxNone ) If (!( pev ( id, pev_flags ) & FL_DUCKING )) If ( zp_get_user_zombie_class ( id ) != g_zclass_ai_zombie ) If (! is_user_alive ( id ) || ! zp_get_user_zombie ( id ) || ! zp_get_user_nemesis ( id )) Set_pev ( player, pev_renderamt, get_pcvar_float ( g_ai_zombie_invisible )) Set_pev ( player, pev_rendermode, kRenderTransAlpha ) Set_pev ( player, pev_renderfx, kRenderFxGlowShell ) If (( pev ( player, pev_flags ) & FL_DUCKING )) If ( zp_get_user_zombie_class ( player ) = g_zclass_ai_zombie ) Public zp_user_infected_post ( player, infector ) Lysis is a sourcepawn/pawn plugin decompiler which attempts to convert binary files to human-readable source code. ZisB = engfunc ( EngFunc_PrecacheSound, zombie_idle_sound2 ) ZisA = engfunc ( EngFunc_PrecacheSound, zombie_idle_sound1 ) G_zclass_ai_zombie = zpxp_register_zombie_class ( zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback, zclass_level ) Register_forward ( FM_PlayerPreThink, "fm_PlayerPreThink" ) G_ai_zombie_invisible = register_cvar ( "zp_ai_zombie_invisibility", "0" ) Register_cvar ( "zp_zclass_advanced_invisble_zombie", VERSION, FCVAR_SERVER | FCVAR_EXTDLL | FCVAR_UNLOGGED | FCVAR_SPONLY ) GitHub - Frenzoid/TF2InvisibleWeaponsFix: A plugin that fixes invisible weapons (visual effect bug) on tf2 servers running sourcemod +v1.9. The plugin doesnt rely on playerspawn event, so its safe to use on ff2 servers. Register_plugin ( PLUGIN, VERSION, AUTHOR ) A plugin that fixes invisible weapons (visual effect bug) on tf2 servers running sourcemod +v1.9. New g_zclass_ai_zombie, g_ai_zombie_invisible New const zombie_idle_sound2 = "zombie_plague/zombie_breathing.wav" New const zombie_idle_sound1 = "zombie_plague/zombie_moan.wav" New const zclass_clawmodel = "v_stalker_clause.mdl" New const zclass_model = "stalker_clause" New const zclass_info = "Si se agacha es Invisible!" #define PLUGIN " Class : dvanced nvisible Zombie" v1.0.8 - changing else instead of if in second flag check, removed stock, added 2 sounds while zombie is ducking to know if he is near you.
v1.0.5 - removed if player is connected or disconnected, dropped death event, fixed minor bug, removed player flag if he is on ground, optimized code. Zp_ai_zombie_invisibility "0" - Amount of invisibility (0 max invisible - 255 max visible) Zombie has a weird feature when you will duck you will breathe out some sounds. Invisible can change by cvar.