Raised This Month: $ Target: $400
 0% 

[ZP] I do not see the zombie model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 07-24-2009 , 17:43   [ZP] I do not see the zombie model
Reply With Quote #1

The model that I shall not see me, let him. sma

The plugin autor is fry! (zp extra class leap zombie)

I just want to modify models

PHP Code:
*                    
                    [
ZP] Class : Leap Zombie
                       
(new zombie class)
                             
by Fry!


    
Description :

            
So what can I sayThis is usual Zombie class but this zombie will have long jump already. (without delay)

    
    
Cvars :

            
zp_zclass_leap_force "570"     How far zombie will jump
            zp_zclass_leap_height 
"275"    How heigh zombie will jump


    Changelog 
:

            
04/10/2008 v1.0 First release
            05
/10/2008 v1.1 fixed bug that cause long jump to all zombie classes...
            
10/10/2008 v1.2 fixed again this bug from v1.1 
            18
/10/2008 v1.2.1 removed chat message.
            
12/11/2008 v1.2.2 changed plugin name.
            
15/11/2008 v1.3 added ability that this class can now use how high and how far can jump.
            
18/11/2008 v1.3.2 fixed that longjump was given to all zombie classesremoved fun module.
            
19/11/2008 v1.3.3 somehow forgat to remove fun module because using fakemeta instead.
            
19/11/2008 v1.3.4 possiblity that after few rounds long jump not working anymore so I put back fun module...
            
28/12/2008 v1.3.6 completely fixed long jump and removed fun module again.
            
20/02/2009 v1.3.9 fixed leap was after player humanizedchanged plugin nameoptimized code by removing fm_give_item.
            
21/07/2009 v1.4.1 fixed leap was broken sometimesoptimized code.
*/

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

#define PLUGIN "[ZP] Class : Hunter Zombie"
#define VERSION "1.4.1"
#define AUTHOR "Fry!"

new const zclass_name[] = "Hunter Zombie"
new const zclass_info[] = "[Left 4 dead] Hunter"
new const zclass_model[] = "huntermodel"
new const zclass_clawmodel[] = "HunterZ.mdl"
const zclass_health 2200
const zclass_speed 300
const Float:zclass_gravity 0.5
const Float:zclass_knockback 1.7

new bool:g_hasLeap[33]
new 
g_zclass_Leapg_Leap_forceg_Leap_height

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_cvar("zp_zclass_leap_zombie",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
    
    
g_Leap_force register_cvar("zp_zclass_leap_force""570")
    
g_Leap_height register_cvar("zp_zclass_leap_height""275")
    
    
register_forward(FM_PlayerPreThink"fw_PlayerPreThink")
}

public 
plugin_precache()
{
    
g_zclass_Leap zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
}

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

public 
zp_user_infected_post(playerinfector)
{
    if (
zp_get_user_zombie_class(player) == g_zclass_Leap)
        
g_hasLeap[player] = true
        
    
return PLUGIN_CONTINUE
}

public 
zp_user_humanized_post(player)
{
    
g_hasLeap[player] = false
}

public 
fw_PlayerPreThink(id)
{
    if (!
is_user_alive(id))
        return 
FMRES_IGNORED
    
    
if (zp_get_user_zombie_class(id) != g_zclass_Leap)
    {
        
g_hasLeap[id] = false
    
}
    
    if (
allowed_Leap(id))
    {
        
g_hasLeap[id] = true
        
        
static Float:velocity[3]
        
velocity_by_aim(idget_pcvar_num(g_Leap_force), velocity)
        
        
velocity[2] = get_pcvar_float(g_Leap_height)
        
        
set_pev(idpev_velocityvelocity)
    }
    return 
FMRES_IGNORED
}

allowed_Leap(id)
{    
    if (
zp_get_user_zombie_class(id) != g_zclass_Leap)
        return 
false
        
    
static buttons
    buttons 
pev(idpev_button)
    
    if (!(
pev(idpev_flags) & FL_ONGROUND) || fm_get_speed(id) < 20 || !(buttons IN_JUMP) || !(buttons IN_DUCK))
        return 
false
    
    
return true
}

stock fm_get_speed(entity)
{
    static 
Float:velocity[3]
    
pev(entitypev_velocityvelocity)
    
    return 
floatround(vector_length(velocity))

Raddish is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 07-24-2009 , 18:08   Re: [ZP] I do not see the zombie model
Reply With Quote #2

? Im confused, what do u want or mean with that?
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 07-24-2009 , 18:10   Re: [ZP] I do not see the zombie model
Reply With Quote #3

Quote:
Originally Posted by tempito View Post
? Im confused, what do u want or mean with that?
I think that he want change the zombie models..
__________________
"There is no knowledge, that is not power"
fezh is offline
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 07-24-2009 , 20:25   Re: [ZP] I do not see the zombie model
Reply With Quote #4

YOu already modified in .sma .YOu have to modify in zombieplague.ini too...
Quote:
SAME MODELS FOR ALL = 0

Last edited by 5c0r-|3i0; 07-24-2009 at 20:28.
5c0r-|3i0 is offline
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 07-24-2009 , 23:43   Re: [ZP] I do not see the zombie model
Reply With Quote #5

[ES]No entendi (?) Yo cambie el model y todo pero con el plugin cam view menu se me ve el model default zombie_source pero las manos/garras se cambiaron.. eso es lo que no entiendo.

[EN] I do not understand (?) I change the model and all but with the plug cam view menu I see the default model zombie_source but hands / claws were changed .. that's what I do not understand.
--------EDIT---------
[ES]Mi idea era que tenga el model del personaje hunter del juego Left 4 Dead, las garras se pusieron pero el model no :S

[EN]My idea was to have the model hunter character of the game Left 4 Dead, but the claws were the model no: S

Last edited by Raddish; 07-24-2009 at 23:50.
Raddish is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode