AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Show Keys (Version 1.1 - Updated 06.08.2011) (https://forums.alliedmods.net/showthread.php?t=141499)

Peace-Maker 10-24-2010 18:08

Show Keys (Version 1.1 - Updated 06.08.2011)
 
2 Attachment(s)
Show Keys
As requested here.


This plugin allows you to view all keys pressed by the observed player or your own keys for showing off in demos.

[IMG]http://img828.**************/img828/3585/showkeys.jpg[/IMG]
The missing underscores are USE and SCORE(board).

Chatcommands:
/showkeys - Toggle showing target's pressed keys
/showmykeys - Toggle showing own keys

ConVars:
  • sm_showkeys_updatemode - How should we update the key display? (Default: 1)
    • 0: Disabled
    • 1: OnGameFrame (most accurate, high load with many players)
    • 2: Repeated timer (less accurate, low load)
  • sm_showkeys_updaterate - How often in seconds should we update the key display when using updatemode 2? (Default: 0.1)
  • sm_showkeys_frameskip - Update the keys each x frames when using updatemode 1? (Default: 1)
Changelog:
Quote:

06.08.2011 Version 1.1:
  • Added sm_showkeys_updatemode, sm_showkeys_updaterate, sm_showkeys_frameskip convars to optimize the plugin load
08.05.2011 Version 1.0.3:
  • More optimizations in OnGameFrame(). Ensure nothing is calculated, if a player isn't using this plugin at all.

06.05.2011 Version 1.0.2:
  • Added validation check for m_hObserverTarget value
03.05.2011 Version 1.0.1:
  • Fixed not displaying info to client with highest index
  • Optimized OnGameFrame() checks a bit
25.10.2010 Version 1.0:
  • Initial release


blue zebra 10-29-2010 04:35

Re: Show Keys - Version 1.0
 
Thanks.
What do you think? Possible observating the players specific 2-3 keys, and kick or ban the player when he press the delete, insert or other keys? Many cheats use these keys for the cheat menu.
Sorry for my english.
Br.: z

Silvers 10-29-2010 04:39

Re: Show Keys - Version 1.0
 
No not possible... Anyone can change their binds so if you're trying to detect cheats on a certain key, forget about it, it's so pointless, they can just change the key and not get detected... or someone innocent could bind "delete" or "insert" to "disconnect" and get banned... it's just stupid logic.

Nice plugin Peace-Maker :)

Sandfly 10-29-2010 22:04

Re: Show Keys - Version 1.0
 
This will be a very valuable plugin to help detect people who deliberately Team Kill in maps with Bridge Detonators or other similar other scenarios where people are constantly pressing levers etc and team kill others.

It will provide definite proof about the specced players button presses, and will show up E or USE keystrokes quickly and without doubt.

Well done, very useful plugin.

Peace-Maker 05-03-2011 14:00

Re: Show Keys (Version 1.0.1 - Updated 03.05.2011)
 
Updated to 1.0.1

This is a minor optimization update and fixes a client looping bug psychonic pointed out half a year ago. Ready for approval now :3

Changelog:
Quote:

03.05.2011 Version 1.0.1:
  • Fixed not displaying info to client with highest index
  • Optimized OnGameFrame() checks a bit


nomy 05-06-2011 01:01

Re: Show Keys (Version 1.0.1 - Updated 03.05.2011)
 
Code:

L 05/06/2011 - 05:56:10: [SM] Plugin encountered error 15: Array index is out of
 bounds
L 05/06/2011 - 05:56:10: [SM] Displaying call stack trace for plugin "showkeys.s
mx":
L 05/06/2011 - 05:56:10: [SM]  [0]  Line 106, /home/groups/alliedmodders/forums
/files/4/1/4/1/8/85558.attach::OnGameFrame()


Peace-Maker 05-06-2011 07:45

Re: Show Keys (Version 1.0.1 - Updated 03.05.2011)
 
Hm that's strange. I've added a check against the return value of m_hObserverTarget, but i don't know why it should be out of bounds.

Updated to 1.0.2

nomy 05-07-2011 09:12

Re: Show Keys (Version 1.0.2 - Updated 06.05.2011)
 
Hi, Can you tell me why the white lines show on KeyHintText when you join spectators as soon as you join server? I didn't even type /showkeys in chat yet...

Peace-Maker 05-08-2011 11:26

Re: Show Keys (Version 1.0.3 - Updated 08.05.2011)
 
Lol, how much i can fail with such a small plugin. I think it really is its simplicity that owns me.

Updated to 1.0.3 including an extra check to not calculate anything if a player isn't using /showmykeys nor /showkeys

Vintagehunt 08-03-2011 15:18

Re: Show Keys (Version 1.0.3 - Updated 08.05.2011)
 
1 Attachment(s)
Hello, ive found out a weird problem or bug with this plugin. For some reason it does not show my jumps when i jump with mouse wheel up and mouse wheel down but it shows it when i press space. Ill link my specs so you can find out why it doesnt or just try to help me. And yes i play on a laptop and have a mouse pluged in. Thanks for any help or information i can be given to resolve this problem.


All times are GMT -4. The time now is 20:55.

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