NOT WORKING ABANDON PLUGIN
<Eavesdropper>
Introdution
this plugin makes u able to Eavesdrop from aimed position.
to explain again, it makes u hear sounds like footstep, gunfire, taunt, ect that is on near yo aimed point.
it has option for Eavesdropper laser effect. u can turn it off if u dont like it.
cmds for plugin is below
+sm_eavesdropper
-sm_eavesdropper
these two cmds are for special key hold bind. it will let u able to active eavesdrop while pressing defined key.
bind like this : bind x +sm_eavesdropper
sm_eavesdroppertoggle
this is for normal use. press key for turn on, and press again to turn it off.
by the default option, this plugin will active eavesdrop when u zoomed with any weapon.
this plugin is in beta, it is not crashing but maybe cannot work or have problem.
feel free to use and plz tell me any bug.
for now, this plugin uses custom version of sdktools_sound.
i included inc file for updated native and included patch file for source code.
tell me if u need any cpp if u cannot work with patch files.
this forum blocks cpp file. k.
p.s.
a long time after, i made a experimental version of this plugin. it has no convar, no laserbeam, but just tried to make it work. it is not able to detect every sound, but it only detects footstep of players and some other useless sounds. i am uploading sourcecode of this experimental version because it maybe can help other guys whom r trying to do similar things.
Requirements
this plugin needs the things listed below to work:
Installation
to install this plugin
- put the smx file in the sourcemod/plugins folder
to compile this plugin manually
- put all sp files in the sourcemod/scripting folder
- put all inc files in the sourcemod/scripting/include folder
- compile.
Configuration
to configurate this plugin to your likes
- to use auto generated cfg file
- run the plugin once, then the cfg will be generated in the cfg/sourcemod folder
- take a look at the options and change them to your preferences
- the options you choose in the cfg will be loaded on every map change
- cvarlist for this version
Code:
// This file was auto-generated by SourceMod (v1.4.0-dev)
// ConVars for plugin "Eavesdropper.smx"
// Eavesdrop on zoom
// -
// Default: "1"
Eavesdropper_AutoOnZoom "1"
// make laser while Eavesdropping
// -
// Default: "1"
Eavesdropper_EnableLaser "1"
// make mark while Eavesdropping
// -
// Default: "1"
Eavesdropper_EnableMark "1"
// 0.0 is infinite, setting this higher than 1024 is bad for performance
// -
// Default: "240.0"
// Minimum: "0.000000"
Eavesdropper_HearingDistance "240.0"
// color of laser
// -
// Default: "0 255 0"
Eavesdropper_LaserColor "0 255 0"
// max is 10. if u set this to 0.0, it same as setting this as 1.0
// -
// Default: "1.0"
// Minimum: "0.000000"
// Maximum: "10.000000"
Eavesdropper_Sensitivity "1.0"
// min 0.0, max 1.0
// -
// Default: "1.0"
// Minimum: "0.000000"
// Maximum: "1.000000"
Eavesdropper_Smoothing "1.0"
if plugin has updated and it`s cfg file has changed, you should remove old one and regenerate cfg file
Known Bugs & Limits Of the Mod
- auto zoom detect is not working...
- env_microphone is retarded...
- at this moment, u cannot hear voice of enemy hear aimed point. i can do this but i am not doing it cuz it is not point of work at this moment.
Special Thanks To
i want to say thanks to these guys
- DJtsunami for made SDKHooks
Change Log
all the date`s format is y/m/d
Code:
update at 2011 8 27(ver 1.0.1.4)
- changed way to hear sound.
update at 2011 8 23(ver 1.0.0.3)
update at 2011 8 22(ver 1.0.0.1)
update at 2011 8 22(ver 1.0.0.1)