TF2 Critical Hits Oo
hello,
it is mir first time i try to write scripts with sourcemod... is it possible to change the critical hit chance for single players? perhaps by given steam ids or so? something like "tf_crit_chance <userid>|<steamid>|<nickname> <percent>" if yes, how do i search for it? i would like to know, in which docs i can find things like "what commands do i need?", "what commands/functions are supported for tf2" etc ... the coding itself is not my problem, but how to find out, how to do and what i can do, is not easy with 100 of docs :D and a little info about my crit thing would be great, too :) thanks in advance andi |
Re: TF2 Critical Hits Oo
Let's go by steps, I found the offset CTFPlayer::m_iCritMult in TF2 prop list, but I am not sure what it does or how does it work, so let's first try to find it's default value
Try hooking some command to: PHP Code:
If it gives a giant random number, try changing the 4 to 2 or to 1 If you learned what is does and how it works, try messing around with it's value PHP Code:
|
Re: TF2 Critical Hits Oo
Quote:
one question left ... where can I find the "TF2 prop list" or the prop list of other games? |
Re: TF2 Critical Hits Oo
You can use sm_dump_netprops <file> to dump the network property tables to a file.
|
Re: TF2 Critical Hits Oo
Quote:
|
Re: TF2 Critical Hits Oo
Make sure to use it through rcon or the server console.
|
Re: TF2 Critical Hits Oo
it was the server console of a dedicated server
|
Re: TF2 Critical Hits Oo
arg my fault ... i deactivated all standard plugins on that server :D
now it works ... |
Re: TF2 Critical Hits Oo
ok i tested it a little bit ...
PHP Code:
the the prop list i found the following with "crit" included: PHP Code:
any idea how to change the crit chance for a player now? :-/ there a is mod called "TFTrue", which supports cvars to change it global: PHP Code:
any help would be great :) andreas |
Re: TF2 Critical Hits Oo
A link to that mod might help us.
|
All times are GMT -4. The time now is 09:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.