AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Extra Item: Wallclimb (https://forums.alliedmods.net/showthread.php?t=159587)

Accelerator 06-19-2011 05:42

[ZP] Extra Item: Wallclimb
 
1 Attachment(s)
[ZP] Extra Item: Wall climb


Version: 1.0
Author: Python1320 & Accelerator
Description: When you purchase allows you to climb walls

jc980 06-19-2011 05:46

Re: [ZP] Extra Item: Wallclimb
 
ZP has gone parkour. LOL

Dolph_Ziggler 06-19-2011 07:51

Re: [ZP] Extra Item: Wallclimb
 
nice :)

DarkNill 06-19-2011 08:07

Re: [ZP] Extra Item: Wallclimb
 
Орегинальненько, молодец.

georgik57 06-19-2011 09:13

Re: [ZP] Extra Item: Wallclimb
 
nice
sunx made something like this a long time ago
you took the idea from him?

tei1995 06-19-2011 09:16

Re: [ZP] Extra Item: Wallclimb
 
nice plugin :D

Accelerator 06-19-2011 09:23

Re: [ZP] Extra Item: Wallclimb
 
Quote:

Originally Posted by georgik57 (Post 1491422)
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 :)

georgik57 06-19-2011 09:25

Re: [ZP] Extra Item: Wallclimb
 
Quote:

Originally Posted by Accelerator74 (Post 1491438)
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

samurake 06-20-2011 09:18

Re: [ZP] Extra Item: Wallclimb
 
can you make this into an addon for all zombie?

Dolph_Ziggler 06-20-2011 09:21

Re: [ZP] Extra Item: Wallclimb
 
Quote:

Originally Posted by samurake (Post 1492164)
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




All times are GMT -4. The time now is 14:41.

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