AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Changin knife speed (https://forums.alliedmods.net/showthread.php?t=85268)

Speed! 02-07-2009 21:56

Changin knife speed
 
OK, i know u'll say "ohhh mother fucker bitch, use the fuckin' search, there already shity plugins". Wrong. The only plugin that actually changes weapon speed, is crapy, and cant change knife speed.

Any idea?

AntiBots 02-07-2009 22:02

Re: Changin knife speed
 
Check player weapon and then

set_pev(id, pev_maxspeed, 300.0) // Float. 3 Param

Speed! 02-07-2009 22:07

Re: Changin knife speed
 
Quote:

Originally Posted by AntiBots (Post 757789)
Check player weapon and then

set_pev(id, pev_maxspeed, 300.0) // Float. 3 Param

no, not the walkin' speed, the firing speed

IneedHelp 02-07-2009 22:16

Re: Changin knife speed
 
Take a look at this.

http://forums.alliedmods.net/showthr...fxfighter+rate

Speed! 02-07-2009 22:20

Re: Changin knife speed
 
Quote:

Originally Posted by IneedHelp (Post 757797)

with
Quote:

OK, i know u'll say "ohhh mother fucker bitch, use the fuckin' search, there already shity plugins". Wrong. The only plugin that actually changes weapon speed, is crapy, and cant change knife speed.
i meant to that plugin :( allthough thanks for trying to help :D you always help me with my n00b questions LOL

ConnorMcLeod 02-08-2009 02:39

Re: Changin knife speed
 
Simple knife speed for every players :

PHP Code:

#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Knife_Speed"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

new g_pCvarKnifeSpeed

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
g_pCvarKnifeSpeed register_cvar("amx_knife_speed""400")

    
RegisterHam(Ham_CS_Item_GetMaxSpeed"weapon_knife""CS_Knife_GetMaxSpeed")
}

public 
CS_Knife_GetMaxSpeed()
{
    
SetHamReturnFloat(get_pcvar_float(g_pCvarKnifeSpeed))
    return 
HAM_SUPERCEDE



Arkshine 02-08-2009 04:04

Re: Changin knife speed
 
It's not what he asked.

ConnorMcLeod 02-08-2009 04:08

Re: Changin knife speed
 
Ops :oops:
Title should be changed then, speed is not the right word.

Mlk27 02-08-2009 05:31

Re: Changin knife speed
 
if he means speedhack knife, im also looking for the same thing..

Exolent[jNr] 02-08-2009 12:51

Re: Changin knife speed
 
Can't this be achieved with the offset m_flNextAttack or something of the sort?

EDIT:

Also, you can force the knife to successfully attack with Ham_Weapon_PrimaryAttack.
I think you could make a plugin that controls the knife by disabling the default attacks and execute your own.


All times are GMT -4. The time now is 16:58.

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