Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ZP Class Stealh Zombie ( Gorunmez Zm )
BEYLER BURAYA DİKKAT SMA SININ KODUNU BULMUŞ BULUNMAKTAYIM ELIMDE ELMAS DEGERİNDE AMXX KODU AÇAN PROGRAM WAR İŞTE SMASI TEŞEKKÜRÜ ESİRGEMEYİN ÇOK VAKTİMİ ALDI BU CS SENELERİMİ ADADIM PLUGİNLERE AMA TARİHE GÖMÜLMEK ÜZERE Big Grin

/*
[ZP] Class : [A]dvanced nvisible Zombie
( special Zombie class )
by Fry!


Description :

AI zombie in full name ( Advanced Invisible ) have ability when you duck you will be invisible.
Zombie has a weird feature when you will duck you will breathe out some sounds. Invisible can change by cvar.


Cvars :

zp_ai_zombie_invisibility "0" - Amount of invisibility (0 max invisible - 255 max visible)


Changelog :

16/06/2009 - v1.0 - First release
28/06/2009 - 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.
12/07/2009 - 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.
*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

#define PLUGIN "[ZP] Class : [A]dvanced nvisible Zombie"
#define VERSION "1.0.8"
#define AUTHOR "Fry!"

new const zclass_name[] = "Gorunmez Zombi"
new const zclass_info[] = "Egilince Gorunmez Olur"
new const zclass_model[] = "gorunmez_zombi"
new const zclass_clawmodel[] = "gorunmez_zombi_el.mdl"
const zclass_health = 5000
const zclass_speed = 190
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 1.35

new const zombie_idle_sound1[] = "zombie_plague/zombie_moan.wav"
new const zombie_idle_sound2[] = "zombie_plague/zombie_breathing.wav"

new zisA, zisB
new g_zclass_ai_zombie, g_ai_zombie_invisible

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_cvar("zp_zclass_advanced_invisble_zombie",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)

g_ai_zombie_invisible = register_cvar("zp_ai_zombie_invisibility", "0")

register_forward(FM_PlayerPreThink, "fm_PlayerPreThink")
}

public
plugin_precache()
{
g_zclass_ai_zombie = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)

zisA = engfunc(EngFunc_PrecacheSound, zombie_idle_sound1)
zisB = engfunc(EngFunc_PrecacheSound, zombie_idle_sound2)
}

public
zp_user_infected_post(player, infector)
{
if (
zp_get_user_zombie_class(player) == g_zclass_ai_zombie)
{
if ((
pev(player, pev_flags) & FL_DUCKING))
{
set_pev(player, pev_rendermode, kRenderTransAlpha)
set_pev(player, pev_renderamt, get_pcvar_float(g_ai_zombie_invisible))
}
}
return
PLUGIN_CONTINUE
}

public
fm_PlayerPreThink(player)
{
if (!
is_user_alive(player) || !zp_get_user_zombie(id))
return
FMRES_IGNORED

if (zp_get_user_zombie_class(player) != g_zclass_ai_zombie)
return
FMRES_IGNORED

if (!(pev(id, pev_flags) & FL_DUCKING))
{
set_pev(id, pev_rendermode, kRenderNormal)
set_pev(id, pev_renderamt, 255.0)

new
iRandomNum = random_num(zisA, zisB)

if (
iRandomNum == zisA)
{
emit_sound(player, CHAN_VOICE, zombie_idle_sound1, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
}

else if (
iRandomNum == zisB)
{
emit_sound(player, CHAN_VOICE, zombie_idle_sound2, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
}
}

else
{
set_pev(player, pev_rendermode, kRenderTransAlpha)
set_pev(player, pev_renderamt, get_pcvar_float(g_ai_zombie_invisible))
}

return
FMRES_IGNORED
}
[/i]
Reply


Messages In This Thread
[No subject] - by ScineLy - 08-01-12, 14:41
[No subject] - by saw911 - 08-01-12, 20:08
[No subject] - by gonak26 - 14-01-12, 01:16
[No subject] - by smt287 - 15-01-12, 01:07
[No subject] - by freezmen - 15-01-12, 04:26
[No subject] - by TagaL - 15-01-12, 23:20
[No subject] - by smua - 16-01-12, 02:50
[No subject] - by mici23 - 16-01-12, 21:02
[No subject] - by mehmetmert33 - 19-01-12, 12:36
[No subject] - by enesxs - 25-01-12, 01:23
[No subject] - by DeaDB0YS - 25-01-12, 18:31
[No subject] - by dwane - 26-01-12, 11:07
[No subject] - by eryaman - 26-01-12, 17:02
[No subject] - by qweqweqwe - 27-01-12, 01:15
[No subject] - by bloker1130 - 28-01-12, 02:21
[No subject] - by kademli882 - 28-01-12, 03:42
[No subject] - by hasandural99 - 28-01-12, 12:46
[No subject] - by kademli882 - 28-01-12, 15:11
[No subject] - by canavar30 - 28-01-12, 18:26
[No subject] - by MMTHackers - 02-02-12, 10:48
[No subject] - by istanblue - 02-02-12, 20:20
[No subject] - by Poyraz - 05-02-12, 14:36
[No subject] - by pRoBela - 07-02-12, 17:14
[No subject] - by BmwBerk - 09-02-12, 18:01
[No subject] - by menderes88 - 11-02-12, 20:11
[No subject] - by itsmyjob - 13-02-12, 20:07
[No subject] - by culpable06 - 17-02-12, 00:24
[No subject] - by cs111 - 18-02-12, 19:30
[No subject] - by dlopwere - 19-02-12, 23:01
[No subject] - by KankaGaming - 22-02-12, 21:44
[No subject] - by lucky131 - 23-02-12, 15:40
[No subject] - by DeaDB0Y - 23-02-12, 19:52
[No subject] - by mstfykvn - 24-02-12, 23:29
[No subject] - by blacqd3ath - 29-02-12, 01:07
Cevap: ZP Class Stealh Zombie ( Gorunmez Zm ) - by crunch98 - 09-04-14, 00:29
[No subject] - by maviturna - 30-01-12, 23:33

Possibly Related Threads…
Thread Author Replies Views Last Post
  ZP Class Maymun Zombi (Ard Arda Zıplar) SeCkIn 22 13,560 10-08-18, 21:15
Last Post: dangarma16
  ZP Class Frank Zombie ( Kancali Zm ) NiCoMeDiA 39 14,500 09-08-18, 20:33
Last Post: dangarma16
  ZP Class Smoker (Oyuncuları Kendine Çeker) JocqeR` 68 22,480 09-08-18, 20:32
Last Post: dangarma16

Foruma Atla:


Users browsing this thread: 1 Guest(s)
🔥 Bu Forumdan Popüler Konular
ZP Class Tank Zombie ( Kaya Firlatir ) — 27,575 görüntülenme, 89 cevap
ZP Class Zip Zip Zombie ( Uzun Ziplar ) — 26,243 görüntülenme, 92 cevap
ZP Class Tirmanan Zombie ( Duvarlara Tirmanir ) — 25,165 görüntülenme, 97 cevap
ZP Class Stamper Zombie ( Tabutcu Zm ) — 23,137 görüntülenme, 64 cevap