Thread
:
Show Keys (Version 1.1 - Updated 06.08.2011)
View Single Post
Author
Message
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
10-24-2010 , 18:08 Show Keys (Version 1.1 - Updated 06.08.2011)
#
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
Get Plugin
or
Get Source
(showkeys.sp - 9317 views - 9.1 KB)
__________________
SourcePawn .smx disassembler in your browser
Detour any function from your plugin:
DHooks 2 + detours
Tab-autocompletion in SRCDS command line
Bot Mimic
|
SM:CTF
|
SM:Conquest
|
SM:Error Mail
|
Websocket
|
PostgreSQL
Retrogames:
Connect4
|
Tetris
|
Snake
|
Pong
|
Blackjack
Last edited by Peace-Maker; 08-05-2011 at
18:08
. Reason: Released 1.1
Peace-Maker
View Public Profile
Send a private message to Peace-Maker
Visit Peace-Maker's homepage!
Find More Posts by Peace-Maker