It is currently 23 Feb 2019 23:04






Reply to topic  [ 1 post ] 
 [ZP] BunnyHop Zombie v1.1 
Author Message
Online
Moderator
Moderator
User avatar

Joined: 21 Jul 2015 18:50
Posts: 2566
Location: Bucuresti
Detinator Steam: Da
CS Status: Busy
Detinator server CS: ---
Reputatie: Moderator
Manager ZM
Fost Membru Club eXtreamCS (trei luni)
1 / 3
Fond eXtream: 0
Descriere: acest zombie are viteza(aici o setati voi) si face si bunnyhop ,e bun cand te plictisesti ca si zm :))


Descarcare: LINK RESURSE!
| Afiseaza codul
/*================================================================================

-----------------------------------
-*- [ZP] Class : BunnyHop Zombie -*-
-----------------------------------

~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~

Able to BunnyHop.

================================================================================*/
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

new g_zclass_bhzombie

new g_hasBhop[ 33 ]
new pcvar_enabled, pcvar_autojump

new bool:g_restorevel[33]
new Float:g_velocity[33][3]

new const zclass_name[] = { "Guerilla Zombie" }
new const zclass_info[] = { ">> BunnyHop + Speed << " }
new const zclass_model[] = { "zombie_guerilla" }
new const zclass_clawmodel[] = { "v_panic.mdl" }
const zclass_health = 9000
const zclass_speed = 630
const Float:zclass_gravity = 0.6
const Float:zclass_knockback = 1.0

public plugin_init()
{
register_plugin("[ZP] Class : BunnyHop Zombie", "1.1", "ƒa†es™")

register_event( "DeathMsg", "event_player_death", "a" )

pcvar_enabled = register_cvar( "zp_bhzombie_bunnyhop_enabled", "1" )
pcvar_autojump = register_cvar( "zp_bhzombie_autojump", "1" )

register_forward( FM_PlayerPreThink, "forward_prethink" )
}

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

register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink_Post", 1)
}

public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(id) == g_zclass_bhzombie)
{
g_hasBhop[ id ] = true

pev(id, pev_velocity, g_velocity[id])
}
}

public client_connect( id )
{
g_hasBhop[ id ] = false
}

public event_player_death()
{
g_hasBhop[ read_data( 2 ) ] = false
}

public forward_prethink( id )
{
if(!is_user_alive(id) || !zp_get_user_zombie(id))
return PLUGIN_CONTINUE

if (zp_get_user_zombie_class(id) != g_zclass_bhzombie)
return PLUGIN_CONTINUE

if( get_pcvar_num( pcvar_enabled ) )
{
set_pev( id, pev_fuser2, 0.0 )

if( get_pcvar_num( pcvar_autojump ) && pev( id, pev_button ) & IN_JUMP )
{
new szFlags = pev( id, pev_flags )
if( !( szFlags & FL_WATERJUMP ) && pev( id, pev_waterlevel ) < 2 && szFlags & FL_ONGROUND )
{
new Float: szVelocity[ 3 ]
pev( id, pev_velocity, szVelocity)
szVelocity[ 2 ] += 250.0
set_pev( id, pev_velocity, szVelocity )
set_pev( id, pev_gaitsequence, 6 )
}
}
}
return FMRES_IGNORED
}

public fw_PlayerPreThink(id)
{
if ( !is_user_alive(id) || !is_user_bot(id) || !zp_get_user_zombie(id) )
return FMRES_IGNORED

if (zp_get_user_zombie_class(id) != g_zclass_bhzombie)
return FMRES_IGNORED

if (pev(id, pev_flags) & FL_ONGROUND)
{
pev(id, pev_velocity, g_velocity[id])

g_restorevel[id] = true
}
return FMRES_IGNORED
}

public fw_PlayerPreThink_Post(id)
{
if (zp_get_user_zombie_class(id) != g_zclass_bhzombie)
return FMRES_IGNORED

if (g_restorevel[id])
{
g_restorevel[id] = false

if (!(pev(id, pev_flags) & FL_ONTRAIN))
{
new groundent = pev(id, pev_groundentity)

if (pev_valid(groundent) && (pev(groundent, pev_flags) & FL_CONVEYOR))
{
static Float:vecTemp[3]

pev(id, pev_basevelocity, vecTemp)

g_velocity[id][0] += vecTemp[0]
g_velocity[id][1] += vecTemp[1]
g_velocity[id][2] += vecTemp[2]
}

set_pev(id, pev_velocity, g_velocity[id])

return FMRES_HANDLED
}
}
return FMRES_IGNORED
}


Nume: [ZP] BunnyHop Zombie
Versiune: v1.1
Link oficial: click


Instalare:
1. Fisierul zp_zclass_bhzombie.sma il puneti in addons/amxmodx/scripting
2. Fisierul zp_zclass_bhzombie.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins-zplague.ini si adaugati la urma:
Code:
zp_zclass_bhzombie.amxx

4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):
zp_bhzombie_bunnyhop_enabled 1 Dezactivați pentru a numai utiliza bunnyhop.
zp_bhzombie_autojump 1 Dezactivați sau puteți săriți automat.


Imagini: -

_________________
connect ZM.eXtreamCS.COM # OFFICIAL SERVER
connect 213.32.98.75:27015
Leul si tigru sunt mai puternici ca lupul,dar lupul la circ nu participa.
Image


12 Feb 2019 23:43
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group