Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item: Wallclimb


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 06-19-2011 , 05:42   [ZP] Extra Item: Wallclimb
Reply With Quote #1

[ZP] Extra Item: Wall climb


Version: 1.0
Author: Python1320 & Accelerator
Description: When you purchase allows you to climb walls
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_wallclimb.sma - 5021 views - 2.1 KB)

Last edited by Accelerator; 06-19-2011 at 05:55.
Accelerator is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-19-2011 , 05:46   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #2

ZP has gone parkour. LOL
__________________
jc980 is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-19-2011 , 07:51   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #3

nice
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
DarkNill
Junior Member
Join Date: Dec 2009
Old 06-19-2011 , 08:07   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #4

Орегинальненько, молодец.
__________________
DarkNill is offline
Send a message via ICQ to DarkNill Send a message via Skype™ to DarkNill
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-19-2011 , 09:13   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #5

nice
sunx made something like this a long time ago
you took the idea from him?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
tei1995
Senior Member
Join Date: Feb 2011
Location: VietNam
Old 06-19-2011 , 09:16   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #6

nice plugin
__________________

Hatsune Miku~
tei1995 is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 06-19-2011 , 09:23   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #7

Quote:
Originally Posted by georgik57 View Post
sunx made something like this a long time ago
you took the idea from him?
This is a zombie class, which I translated into extra items
The idea came me a long time, but then I could not implement it because was not versed in scripting
Accelerator is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-19-2011 , 09:25   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #8

Quote:
Originally Posted by Accelerator74 View Post
This is a zombie class, which I translated into extra items :)
The idea came me a long time, but then I could not implement it because was not versed in scripting :)
ahh
ok
nice job :P
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
samurake
Member
Join Date: May 2011
Old 06-20-2011 , 09:18   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #9

can you make this into an addon for all zombie?
samurake is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-20-2011 , 09:21   Re: [ZP] Extra Item: Wallclimb
Reply With Quote #10

Quote:
Originally Posted by samurake View Post
can you make this into an addon for all zombie?
try this :/
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <zombieplague>

new bool:g_WallClimb[33]
new 
Float:g_wallorigin[32][3]
new 
g_maxplayers

public plugin_init() 
{
    
register_plugin("[ZP] Addon Item: Wall climb ""1.0""Python1320 & Accelerator")
    
register_forward(FM_Touch"fwd_touch")
    
register_forward(FM_PlayerPreThink"fwd_playerprethink")
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")
    
    
g_maxplayers get_maxplayers()
}

public 
zp_user_infected_post(idinfector)
    
g_WallClimb[id] = true

public zp_user_humanized_post(idsurvivor)
    
g_WallClimb[id] = false

public fw_PlayerKilled(victimattackershouldgib)
    
g_WallClimb[victim] = false

public zp_round_ended(winteam)
{
    for (new 
id=1id<=g_maxplayersid++)
        
g_WallClimb[id] = true
}

public 
client_connect(id)
    
g_WallClimb[id] = false

public fwd_touch(idworld)
{
    if(!
is_user_alive(id) || !g_WallClimb[id])
        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(!
g_WallClimb[id]) 
        return 
FMRES_IGNORED
    
    
new button fm_get_user_button(id)
    
    if(
button IN_USE//Use button = climb
        
wallclimb(idbutton)

    return 
FMRES_IGNORED

Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
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 22:38.


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