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

|REQ| Zombie limps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 10-31-2014 , 05:14   |REQ| Zombie limps
Reply With Quote #1

Is it possible to adjust when I'm zombie,and I'm move that it looks as if the screen moves left and right-like I limp?
Krtola is offline
Send a message via Skype™ to Krtola
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 01-22-2016 , 05:53   Re: |REQ| Zombie limps
Reply With Quote #2

Anyone know?
Krtola is offline
Send a message via Skype™ to Krtola
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-22-2016 , 06:55   Re: |REQ| Zombie limps
Reply With Quote #3

the only way that comes to my mind, and possible the only way would be with a prethink, a screenshake and/or moving the crosshair
__________________
Depresie is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 01-22-2016 , 08:36   Re: |REQ| Zombie limps
Reply With Quote #4

not perfect but close:
PHP Code:
#include <amxmodx>
#include <fakemeta>

#pragma tabsize 0

new const Version[] = "0.1";

// this is how often you want your players to be able to limp
#define LIMP_COOLDOWN 0.4

new Float:g_LastLimp[33]
// optimization
new Float:g_Cooldown LIMP_COOLDOWN

const Float:SlowestRun 30.0//minumum speed to limp

public plugin_init() 
{
    
register_plugin"Detect Moving" Version "bugsy" );
    
    
register_forwardFM_CmdStart "fw_FMCmdStart" );
}

public 
fw_FMCmdStartid handle seed )
{
    static 
Float:Time
    global_get
(glb_time,Time)    
    
    if(!
is_user_alive(id) || Time g_Cooldown g_LastLimp[id])
        return
        
    
g_LastLimp[id] = Time
    
if ( get_uchandle UC_Buttons ) & IN_FORWARD )
    {
        static 
Float:fVelocity];

        
pevid pev_velocity fVelocity );
        if( 
vector_lengthfVelocity ) >= SlowestRun )
        {    
            static 
Float:fPunchangle];
            
pev(idpev_punchanglefPunchangle)
            
fPunchangle[1] += random_float(-10.010.0)
            
//fPunchangle[1] += random_float(-15.0, 15.0)
            //fPunchangle[2] += random_float(-15.0, 15.0)
            
set_pev(idpev_punchanglefPunchangle)
        }
    }

__________________

Last edited by JusTGo; 01-22-2016 at 08:41.
JusTGo is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 01-22-2016 , 11:57   Re: |REQ| Zombie limps
Reply With Quote #5

Nice try..thanks
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 13:10.


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