Raised This Month: $51 Target: $400
 12% 

[ZP] Extra Item: Wallclimb


Post New Thread Reply   
 
Thread Tools Display Modes
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 06-20-2011 , 09:21   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #11

Quote:
Originally Posted by samurake View Post
can you make this into an addon for all zombie?
@Dolph_Ziggler : Why don't you delete the boolean WallClimb ? You call Ham_Killed for nothing, just use !zp_get_user_zombie( ) when there are checks

PHP Code:

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

new Float:g_wallorigin[32][3]

public 
plugin_init() 
{
    
register_plugin("[ZP] Extra Item: Wall climb ""1.0""Python1320 & Accelerator")
    
register_forward(FM_Touch"fwd_touch")
    
register_forward(FM_PlayerPreThink"fwd_playerprethink")
}

public 
fwd_touch(idworld)
{
    if(!
is_user_alive(id) || !zp_get_user_zombieid ))
        return 
FMRES_IGNORED
        
    pev
(idpev_origing_wallorigin[id])

    return 
FMRES_IGNORED
}

public 
wallclimb(idbutton)
{
    static 
Float:origin[3]
    
pev(idpev_originorigin)

    if(
get_distance_f(origing_wallorigin[id]) > 25.0)
        return 
FMRES_IGNORED  // if not near wall
    
    
if(fm_get_entity_flags(id) & FL_ONGROUND)
        return 
FMRES_IGNORED
        
    
if(button IN_FORWARD)
    {
        static 
Float:velocity[3]
        
velocity_by_aim(id120velocity)
        
fm_set_user_velocity(idvelocity)
    }
    else if(
button IN_BACK)
    {
        static 
Float:velocity[3]
        
velocity_by_aim(id, -120velocity)
        
fm_set_user_velocity(idvelocity)
    }
    return 
FMRES_IGNORED
}    

public 
fwd_playerprethink(id
{
    if(!
zp_get_user_zombieid )) 
        return 
FMRES_IGNORED
    
    
new button fm_get_user_button(id)
    
    if(
button IN_USE//Use button = climb
        
wallclimb(idbutton)

    return 
FMRES_IGNORED

__________________

Last edited by bboygrun; 06-20-2011 at 09:23.
bboygrun is offline
Alarm
Senior Member
Join Date: Jan 2011
Location: Shit World
Old 06-20-2011 , 14:24   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #12

is this working in ZPA 1.6.1 ?
if not can you make the same extra item plugin for ZPA ?
tnx any way
Alarm is offline
Send a message via Skype™ to Alarm
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 06-20-2011 , 14:58   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #13

Quote:
Originally Posted by Alarm View Post
is this working in ZPA 1.6.1 ?
if not can you make the same extra item plugin for ZPA ?
tnx any way
It work!
Accelerator is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 09-13-2014 , 17:17   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #14

When I buy this item,in next round I still have wallclimb. Even a human.
And after I buy this item in next round whatever class I choose it has wallclimb.
How to fix this problem?

Edit: sorry, problem solved

Last edited by Krtola; 09-13-2014 at 17:41.
Krtola is offline
Send a message via Skype™ to Krtola
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 14:53.


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