View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 08-18-2010 , 19:26   [Any] Sight Jacker (Stealth Spectate)
Reply With Quote #1

[Any] Sight Jacker
Version 1.5



Description:
Lets you spectate a player (in a fashion) without joining the spectator team.
Video Demo Watch with annotations turned on!

Please read the notes section!
Commands:
Admin:
sm_sightjack <target> <slot> - Parents your view to that of <target>'s weapon.
<slot> should be a number of a weapon slot. In TF2 try 1 to 3 until it works correctly.

sm_unjack - Returns your view to normal.
sm_tauntjack <time> - (TF2 Only!) "stuns" you for X seconds which changes your view to third-person view on the sightjack.

Cvars:
sm_sightjacker_version
Install Instructions:
  1. Place SightJack.smx OR TF2_SightJack.smx into your addons/sourcemod/plugins/ folder.
Notes:
This plugin is rather rudimentary, if you know a better way to do this, please let me know!

This plugin works by setting your view to the perspective of one of your target's weapons, and therefore looks rather hacky.
So don't go expecting this to be replacing team spectator anytime soon.

TF2 Version:
The TF2 version has an extra command that you can use to spectate a player in third-person view which actually doesn't look so terribad.
Please use the TF2 version with TF2 servers, and the regular version for all other games.

Also Note:
I have only done testing in TF2. The general version "should" work in any game, but please do some testing and report back.

ToDo:
  • Add first-person view mode if someone knows how it could be done.

Version History:
  • V1.5
    • Initial Release
Attached Files
File Type: sp Get Plugin or Get Source (SightJack.sp - 1644 views - 1.5 KB)
File Type: sp Get Plugin or Get Source (TF2_SightJack.sp - 1517 views - 2.3 KB)
__________________

Last edited by DarthNinja; 08-19-2010 at 15:59.
DarthNinja is offline