About knife rate
What is the exact rate of knife ?
I searched this : http://forums.alliedmods.net/showpos...2&postcount=12 but, when I test it with that code, it make the knife cutting too fast so, could you tell me the exact rate of knife(include PrimaryAttackRate and SecondaryAttackRate) when the knife is normal(the rate of default). Thanks |
Re: About knife rate
do something like this in every attack:
Code:
client_print(id, print_chat, "attack was on = %f", halflife_time()) Not sure if its 100% proper, but i was using this. ^^ |
Re: About knife rate
Quote:
|
Re: About knife rate
Check the source code of the knife.
|
Re: About knife rate
Quote:
but, what does the "tr.flFraction" mean ? and, what is the number of UTIL_WeaponTimeBase ? Thanks |
Re: About knife rate
The same as TR_flFraction, the distance between 2 points, 0.0 to 1.0. 0.5 would mean the trace have traveled the half. UTIL_WeaponTimeBase is the same as get_gametime(), but since the weapons are client-side, it should be 0.
|
Re: About knife rate
Quote:
Thanks So, if I change the "amx_knife_attack1_rate" and "amx_knife_attack2_rate" to "0.35" & "0.5" it will knife with default speed when no shield? Code:
g_pCvarPrimaryAttackRate = register_cvar("amx_knife_attack1_rate", "0.15") |
Re: About knife rate
How to change knife's max distance?
|
Re: About knife rate
Either pathing the memory to change directly 32 or 48 ( look the source code ), either hooking traceline and tracehull and recalculate the end vector with the new distance but it won't work with FM_ nor Orpheu, or rewritting the whole code.
The most efficient way is obviously the first one. @epic . : What do you want to do exactly? |
Re: About knife rate
Quote:
|
All times are GMT -4. The time now is 03:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.