Raised This Month: $95 Target: $400
 23% 

No Knife Showoff


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Technical/Development        Approver:   Alka (6)
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-27-2008 , 08:21   No Knife Showoff
Reply With Quote #1

Description:
This is a simple plugin what removes annoying knife animation. Many people requested this plugin from me in person so I just decided to make it public.


Requires:
FakeMeta


Additional info:
Tested with amxmodx 1.8.1. Should also work when you are spectating some player but I had no chance to test that. I added "Knife idle" version by connorr. But it also needs HamSandWich module.


Change-Log:

* 1.0
- First release.
Attached Files
File Type: sma Get Plugin or Get Source (no_knife_showoff.sma - 2067 views - 1.5 KB)
File Type: sma Get Plugin or Get Source (knife_idle.sma - 1683 views - 558 Bytes)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 10-29-2008 at 09:46.
MPNumB is offline
Send a message via Skype™ to MPNumB
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-27-2008 , 08:45   Re: No Knife Showoff
Reply With Quote #2

Why are you using a task? -.-'
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-27-2008 , 08:57   Re: No Knife Showoff
Reply With Quote #3

very nice! ;)
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-27-2008 , 09:05   Re: No Knife Showoff
Reply With Quote #4

Have you tried to return false and supercede Ham_Weapon_ShouldWeaponIdle ?
__________________
- tired and retired -

Last edited by ConnorMcLeod; 10-27-2008 at 09:09.
ConnorMcLeod is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-27-2008 , 09:18   Re: No Knife Showoff
Reply With Quote #5

Quote:
Originally Posted by Alka View Post
Why are you using a task? -.-'
Cuz it's better than hook knife animation with sequence 0 and loop the task what I'm looping w/o hamsand hook anyway.

Understand me right - it's impossible to change frame rate of weapon animation so I just must refresh frame id each time before animation reached frame when knife is about to move.

// edit:

Quote:
Originally Posted by connorr View Post
Have you tried to return false and supercede Ham_Weapon_ShouldWeaponIdle ?
Than it will just repeat last played animation for ever (animation when you switched to knife or slashed something).

P.S. I attached an image for you to understand about what animation movement I'm talking about.
Attached Thumbnails
Click image for larger version

Name:	annoying_knife_animation.JPG
Views:	826
Size:	66.0 KB
ID:	33072  
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 10-27-2008 at 09:28.
MPNumB is offline
Send a message via Skype™ to MPNumB
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-27-2008 , 15:50   Re: No Knife Showoff
Reply With Quote #6

woooo, goood... i love this =)

oh a suggest, if u add something like cl_bob 0?

gj
Alucard^ is offline
Send a message via Skype™ to Alucard^
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-27-2008 , 17:13   Re: No Knife Showoff
Reply With Quote #7

This seems to work for me (haven't tested on linux) :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "knife idle"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define EXTRAOFFSET_WEAPON    4
#define m_flTimeWeaponIdle    48

public plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
RegisterHam(Ham_Weapon_WeaponIdle"weapon_knife""Knife_WeaponIdle")
}

public 
Knife_WeaponIdle(iEnt)
{
    
set_pdata_float(iEntm_flTimeWeaponIdle20.0EXTRAOFFSET_WEAPON)

__________________
- tired and retired -

Last edited by ConnorMcLeod; 10-27-2008 at 17:52.
ConnorMcLeod is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-27-2008 , 18:32   Re: No Knife Showoff
Reply With Quote #8

Quote:
Originally Posted by connorr View Post
This seems to work for me (haven't tested on linux) :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "knife idle"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define EXTRAOFFSET_WEAPON    4
#define m_flTimeWeaponIdle    48

public plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
RegisterHam(Ham_Weapon_WeaponIdle"weapon_knife""Knife_WeaponIdle")
}

public 
Knife_WeaponIdle(iEnt)
{
    
set_pdata_float(iEntm_flTimeWeaponIdle20.0EXTRAOFFSET_WEAPON)


that is exactly what i made too after trying to supercede this event which is a bit buggy
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-27-2008 , 21:05   Re: No Knife Showoff
Reply With Quote #9

connor, ur code do the same that the numb plugin?
Alucard^ is offline
Send a message via Skype™ to Alucard^
chris
Senior Member
Join Date: Mar 2007
Location: America
Old 10-28-2008 , 01:24   Re: No Knife Showoff
Reply With Quote #10

Well done!
__________________
chris is offline
Send a message via AIM to chris
Reply


Thread Tools
Display Modes

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 02:31.


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