Raised This Month: $7 Target: $400
 1% 

Show Keys (Version 1.1 - Updated 06.08.2011)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Plugin ID:
2027
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    42 
    Plugin Description:
    Shows the keys a player is pressing
    Old 10-24-2010 , 18:08   Show Keys (Version 1.1 - Updated 06.08.2011)
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (showkeys.sp - 9296 views - 9.1 KB)
    __________________

    Last edited by Peace-Maker; 08-05-2011 at 18:08. Reason: Released 1.1
    Peace-Maker is offline
    blue zebra
    BANNED
    Join Date: Jun 2010
    Old 10-29-2010 , 04:35   Re: Show Keys - Version 1.0
    Reply With Quote #2

    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
    blue zebra is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-29-2010 , 04:39   Re: Show Keys - Version 1.0
    Reply With Quote #3

    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
    __________________
    Silvers is offline
    Sandfly
    Member
    Join Date: Dec 2009
    Location: Qld, Australia
    Old 10-29-2010 , 22:04   Re: Show Keys - Version 1.0
    Reply With Quote #4

    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.
    __________________
    |IC| UltimateZombie: Reloaded - IP: 117.20.5.153:27015

    |IC| Ultra GunGame SM - IP: 117.20.5.153:27018
    Sandfly is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 05-03-2011 , 14:00   Re: Show Keys (Version 1.0.1 - Updated 03.05.2011)
    Reply With Quote #5

    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

    Changelog:
    Quote:
    03.05.2011 Version 1.0.1:
    • Fixed not displaying info to client with highest index
    • Optimized OnGameFrame() checks a bit
    __________________
    Peace-Maker is offline
    nomy
    Senior Member
    Join Date: Dec 2009
    Location: United Kingdom
    Old 05-06-2011 , 01:01   Re: Show Keys (Version 1.0.1 - Updated 03.05.2011)
    Reply With Quote #6

    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()
    nomy is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 05-06-2011 , 07:45   Re: Show Keys (Version 1.0.1 - Updated 03.05.2011)
    Reply With Quote #7

    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
    __________________
    Peace-Maker is offline
    nomy
    Senior Member
    Join Date: Dec 2009
    Location: United Kingdom
    Old 05-07-2011 , 09:12   Re: Show Keys (Version 1.0.2 - Updated 06.05.2011)
    Reply With Quote #8

    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...
    nomy is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 05-08-2011 , 11:26   Re: Show Keys (Version 1.0.3 - Updated 08.05.2011)
    Reply With Quote #9

    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
    __________________
    Peace-Maker is offline
    Vintagehunt
    New Member
    Join Date: Aug 2011
    Old 08-03-2011 , 15:18   Re: Show Keys (Version 1.0.3 - Updated 08.05.2011)
    Reply With Quote #10

    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.
    Attached Files
    File Type: txt DxDiag.txt (25.5 KB, 756 views)
    Vintagehunt is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 05:51.


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