AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ]Cs. 1.6 no stab animation (https://forums.alliedmods.net/showthread.php?t=295535)

xStk 03-28-2017 17:00

[REQ]Cs. 1.6 no stab animation
 
hey i have hns sever
and i am lookin for no stab animation
i search in the forums and all not god

xStk 03-29-2017 14:55

Re: [REQ]Cs. 1.6 no stab animation
 
??

Visinescu 03-29-2017 21:15

Re: [REQ]Cs. 1.6 no stab animation
 
Wrong section and wrong forum.

You can't make a knife have no stab animation through plugins, you need a knife model for that.

OciXCrom 03-30-2017 08:35

Re: [REQ]Cs. 1.6 no stab animation
 
Quote:

Originally Posted by Visinescu (Post 2507786)
Wrong section and wrong forum.

You can't make a knife have no stab animation through plugins, you need a knife model for that.

Correct section and correct forum. You can easily transform the secondary attack to primary, so there will be no stab animation.

PHP Code:

#include <amxmodx>
#include <hamsandwich>

public plugin_init() 
{
    
register_plugin("No Knife Stab""1.0""OciXCrom")
    
RegisterHam(Ham_Weapon_SecondaryAttack"weapon_knife""PreKnifeStab")
}

public 
PreKnifeStab(id)
{
    
ExecuteHamB(Ham_Weapon_PrimaryAttackid)
    return 
HAM_SUPERCEDE



Visinescu 03-30-2017 17:26

Re: [REQ]Cs. 1.6 no stab animation
 
Quote:

Originally Posted by OciXCrom (Post 2507855)
Correct section and correct forum. You can easily transform the secondary attack to primary, so there will be no stab animation.

PHP Code:

#include <amxmodx>
#include <hamsandwich>

public plugin_init() 
{
    
register_plugin("No Knife Stab""1.0""OciXCrom")
    
RegisterHam(Ham_Weapon_SecondaryAttack"weapon_knife""PreKnifeStab")
}

public 
PreKnifeStab(id)
{
    
ExecuteHamB(Ham_Weapon_PrimaryAttackid)
    return 
HAM_SUPERCEDE



You're missing the point, he's just trying to remove the animation not the entire attack .

Example> "I click right mouse with my knife selected and the animation does not happen , it just stays still like the idle animation but stab still happens just not visually" .

OciXCrom 03-30-2017 20:12

Re: [REQ]Cs. 1.6 no stab animation
 
I'm pretty sure that's not what he wants. Why would he want that? Usually in HnS servers both attacks are the same, so...

CrazY. 03-30-2017 20:22

Re: [REQ]Cs. 1.6 no stab animation
 
Well, I think the code of the OciXCrom is better because the following method block all animations of the knife, but its possible to check if the player clicked the right button, and use it to block the stab.

Code:
#include <amxmodx> #include <fakemeta> #include <engine> public plugin_init() {     register_plugin("teste", "1.0","crazy");         register_forward(FM_UpdateClientData, "fw_UpdateData_Post", 1) } public fw_UpdateData_Post(id, sendweapons, cd_handle) {     if (get_user_weapon(id) != CSW_KNIFE)         return FMRES_IGNORED;             set_cd(cd_handle, CD_flNextAttack, halflife_time() + 0.001);         return FMRES_HANDLED; }

Visinescu 04-01-2017 21:59

Re: [REQ]Cs. 1.6 no stab animation
 
Quote:

Originally Posted by xStk (Post 2507489)
hey i have hns sever
and i am lookin for no stab animation
i search in the forums and all not god

i'm pretty sure he only wants the stab animation off.

OciXCrom 04-02-2017 10:29

Re: [REQ]Cs. 1.6 no stab animation
 
I suggest we let the guessing aside and let him explain what he needs if he ever remembers that he posted this topic.


All times are GMT -4. The time now is 17:53.

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