Raised This Month: $ Target: $400
 0% 

all weapons Ham Deploy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-20-2015 , 10:25   Re: all weapons Ham Deploy
Reply With Quote #1

This code does what is in video 1. What else do you need done besides this?
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "HLTV bug"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_forward(FM_UpdateClientData"UpdateClientData"1)
}

public 
UpdateClientData(idsendweaponscd)
{
    if( 
sendweapons )
    {
        if( 
get_cd(cdCD_WeaponAnim) )
        {
            
set_cd(cdCD_WeaponAnim0)
        }
    }

__________________
Bugsy is offline
by4udilo
Junior Member
Join Date: Dec 2015
Old 12-20-2015 , 10:44   Re: all weapons Ham Deploy
Reply With Quote #2

stop trolling,this sh*t delete all animations: reload,shot1,shot2 etc.
by4udilo is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 12-20-2015 , 14:17   Re: all weapons Ham Deploy
Reply With Quote #3

PHP Code:
public UpdateClientData(idsendweaponscd)
{
    if( 
sendweapons )
    {
        static 
Float:nextattack;
        
get_cd(cdCD_flNextAttacknextattack);

        if( 
nextattack 0.0 )
        {
            
set_cd(cdCD_WeaponAnim0)
        }
    }

Try that instead. Not tested but it should work, next attack is higher than 0 when you draw your weapon and when you're reloading. Your cl_lw has to be 0 or 1 I don't remember which so try both for the animation block to take effect when using updateclientdata.

Edit:
Quote:
Originally Posted by Bugsy View Post
That code I posted does that. Did you try it?
He doesn't want to block shooting animation, just draw and reload.

Last edited by PartialCloning; 12-20-2015 at 14:19.
PartialCloning is offline
by4udilo
Junior Member
Join Date: Dec 2015
Old 12-20-2015 , 14:49   Re: all weapons Ham Deploy
Reply With Quote #4

Quote:
Originally Posted by PartialCloning View Post
PHP Code:
public UpdateClientData(idsendweaponscd)
{
    if( 
sendweapons )
    {
        static 
Float:nextattack;
        
get_cd(cdCD_flNextAttacknextattack);

        if( 
nextattack 0.0 )
        {
            
set_cd(cdCD_WeaponAnim0)
        }
    }

Try that instead. Not tested but it should work, next attack is higher than 0 when you draw your weapon and when you're reloading. Your cl_lw has to be 0 or 1 I don't remember which so try both for the animation block to take effect when using updateclientdata.

Edit:


He doesn't want to block shooting animation, just draw and reload.
Only draw...I want block only "draw" animition.I posted two codes ,they all work correctly. And you no understand what i mean?Yes, I tried this code. It blocks not only the desired animation

Last edited by by4udilo; 12-20-2015 at 15:32.
by4udilo 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 18:00.


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