DoD Plugins

Go Back   DoD Plugins > DoD Plugins > Developers Plugins > Player/Server Management Plugins

Player/Server Management Plugins Plugins that interact with players or give you control over various server-related aspects

» Navigation
 > FAQ
» Forum Actions
» Programming
 > VERC
» Server Links
For Linking to Us
AvaMods
=|[76AD]|=
GameSpy Rangers
{DFH} Clan
AMX Mod X
Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2008, 07:13 PM
dodsynthetic's Avatar
dodsynthetic dodsynthetic is offline
developer
Developer
 
Join Date: Mar 2007
Location: BFO
Posts: 276
No Scope Kill Notifier /w Logging

Syn's No Scope Notifier v2.001

This plugin will display no scope kills and keeps track of them. I know I've seen servers with something similar but could never find the plugin so I just made my own. It works with the scoped Kar, Springfield, and Enfield. It should be possible to port this to other mods just by changing out the mod specific include, get_user_weapon, and alter/add weapon id numbers, etc..

===========================
v2.001 Changes
===========================
- Found and fixed a bug with displaying no scope to regular kill percentage. It was triggered with CVAR no_scope_notify_headshot instead of a seperate CVAR causing to only work when headshot notification was enabled.
- Added new CVAR no_scope_percent to enable or disable the extra no scope to regular kill percnetage information.

===========================
v1.9 Changes
===========================
- Some parts of the code were overhauled for speed. Engine is no longer used.
- Best shots/records now hold the top 3 players instead of 1.
- Added temporary best no scope shot per current map played with say command /noscoperound.
- Added CVAR no_scope_round to enable or disable temporary best shot record per map feature.
- Best shot records are now on a per map basis. You will need to create a folder named "no_scope" in your amxmodx configs directory.
- Fixed a couple issues of not checking if a player was still connected when performing some functions. Thanks again Diamond-Optic for sharing your log info.

===========================
v1.8 Changes
===========================
- Fixed no scope head shot totals for PsychoStats logging. Thanks Diamond-Optic for letting me know of the problem.

===========================
v1.7 Changes
===========================
- Added percentage of no scope shots to other kills in the output of say command /noscopes.
- Added optional HUD message of no scope headshot.
- Added optional shot distance in feet or meters along with body part hit.
- Added some speed improvements.
- Added optional shot blocking with message when trying to use the scope.
- Added say command /noscopehits that shows no scope kills by hit box.

===========================
v1.6 Changes
===========================
- Fixed on kill private chat message of total no scope kills. It was displaying with other
weapons and could flood the chat box. Thanks to Tank from BAM for spotting it.
- Fixed invalid player errors on player disconnect for keeping track of final score.
- Added no scope best shot distance record option.
- Added CVAR no_scope_record for enabling and disabling best no scope shot record feature.

===========================
v1.5 Changes
===========================
- Added checking for players that weren't connected under MG non deployed reload message fix.
Gave invalid player errors in log. Not necessary but I like to keep things clean.

===========================
v1.4 Changes
===========================
- Changed some natives to fakemeta equivalents. This includes the scope / non scope detection.
Should be 100% accurate now.
- Fixed MG non deployed reload small hud text message. Showed last no scope kill info along with
message about needing to deploy to reload. Since this message is apparently client side, I did
find a work around but it shifts the reload message to the left.
- Fixed crashing issue for detection of player team info. Thanks again johndoe on dodplugins.net
for providing the debug output.

===========================
v1.3 Changes
===========================
- Changed get_user_team function to dod specific dod_get_pl_teamname. Reading the amxmodx forums
I found posts that stated get_user_team is buggy. This dropped no scope kill weapon stats on
failure. Thanks johndoe on dodplugins.net for spotting the crash.

===========================
v1.2 Changes
===========================
- Added cvar to enable or disable TK no scope kill notification.

===========================
v1.1 Changes
===========================
- Added cvars to adjust how long a no scope kill HUD notification stays on screen.
- Added cvar to mirror no scope kill HUD notification types in chat.
- Added detailed weapon stats logging for no scope kills.
- Added FF support. FF kills now do not add to the /noscopes total.
- Changed /noscopes to properly display "1 kill" instead of "1 kills".
- Clarified and added to the notes.

===========================
Features:
===========================
- Choose between small and large HUD text display or chat only notification.
- No scope kill logging for use with Psychostats. Reports no scope kills by individual gun used.
- Optional no scope record keeping.
- Optional display of shot distance and body part hit.
- Reporting of total no scope kills per round along with percentage of no scope kills in regards to regular kills.
- Optional scoped shot blocking with message.
- Players are able to see their no scope kills by body part informaiton the entire map.
- Optional HUD notification of no scoped head shots.

===========================
Notes:
===========================
- Tested on an AMXMODX v1.8 Linux server and v1.76 Windows server as well.
- Detailed no scope kill weapon stats do not interfere with regular scope weapon stats. They still log as normal when no scope logging is on. IE a no scoped kill still counts as a regular stat kill for that type of gun.

===========================
Say Commands:
===========================
/noscopes - Displays how many no scope kills a player has accumulated along with percentage of no scope shots.

/noscopehits - Displays a player's total kills by hit box to a player

/noscoperecord - Displays the best no scope records and who the holders are for the current map.

/noscoperound - Displays the best no scope records and who the holders are for the current map
played. This is temporary data and is discarded on map change.

===========================
CVARS:
===========================
no_scope_notify | 0 = off | 1 = on
- Gives confirmation on screen of a no scope kill. Default on.

no_scope_notify_type | 0 = small | 1 = large | 2 = in chat
- Changes size and type of no scope kill notification. Default small.

no_scope_notify_small_time | 0 = 3.8 sec | 1 = 4.8 sec | 2 = 5.8 sec | 3 = 6.8 sec
- Changes duration of small HUD no scope kill notification. Due to the nature of this type of HUD
message, the minimum is 3.8 seconds and the options available should be sufficient. Default 3.8.

no_scope_notify_large_time | x or x.x
- Changes duration of large HUD no scope kill notification. You can enter an integer or real
number here. For example, a value of one would just be 1 second and a value of 1.5 would be
1 and a 1/2 seconds. Default 3.0.

no_scope_notify_tk_notify | 0 = off | 1 = on
- Enable or disable TK no scope notification. Default off.

no_scope_notify_mirror_chat | 0 = off | 1 = on
- Enables or disables mirroring of no scope kill notification in chat box. This is helpful if
you have allot of people no scoping and the regular notification changes too fast to read.
This automatically checks to see if no_scope_notify_type is set to chat so you don't get
double notifications. Default off.

no_scope_notify_chat | 0 = off | 1 = on
- Displays total no scope kills in chat privately to player on no scope kill. Default off.

no_scope_notify_say | 0 = off | 1 = on
- Enables or disables the say command /noscopes. Default on.

no_scope_logging | 0 = off | 1 = on
- Enables logging of no scope kills. Default off.

no_scope_notify_distance | 0 = off | 1 = on
- Enables or disables showing of shot in "game distance" in no scope kill notification. Defualt
on.

no_scope_notify_distance_type | 0 = meters | 1 = feet
- Sets whether shot in "game distance" is shown as meters or feet. Default meters.

no_scope_notify_hitbox | 0 = off | 1 = on
- Enables or disables showing of hitbox hit in no scope kill notification. Default on.

no_scope_notify_block_scope | 0 = off | 1 = on
- Enables or disables the blocking of scoped shots. Default off.

no_scope_notify_block_notify | 0 = off | 1 = on
- Enables or disables telling a user that you can't fire scoped when blocking of scoped shots is
enabled. Default on.

no_scope_record | 0 = off | 1 = on
- Enables or disables best no scope shot record feature. Default on.

no_scope_round | 0 = off | 1 = on
- Enables or disables the temporary map best shot record feature. Default on.

no_scope_notify_headshot | 0 = off | 1 = on
- Enables or disables displaying a no scope headshot notification on all player's HUD. Default on.

no_scope_hits_say | 0 = off | 1 = on
- Enables or disables the say command /noscopehits. Default on.

no_scope_percent | 0 = off | 1 = on
- Enables or disables additional no scope kill to regular kill percentage when using say command /noscopes.

===========================
Installation
===========================
- Compile the .sma file | An online compiler can be found here:
http:www.amxmodx.org/webcompiler.cgi
- Copy the compiled .amxx file into your addons\amxmodx\plugins folder.
- Add the name of the compiled .amxx to the bottom of your addons\amxmodx\configs\plugins.ini
- Create a new folder named no_scope in your addons\amxmodx\configs folder.
- Change the map or restart your server to start using the plugin!

===========================
Psychostats v1.9.1:
===========================
- This version automatically picks up no scope kills. Nothing is needed on your part.

===========================
Psychostats v3:
===========================
- To get no scope kills to show up in this version, login into an admin account. Now under
"configuration", click "weapons". You will need to add three new entries here by clicking the
"new" button. The first Unique ID will be NoScopeKar, second NoScopeSpring, lastly
NoScopeEnfield. The other options are up to you and how your PsychoStats are set up.
Attached Files
 
 Source (66.4 KB, 105 views)
__________________
I once played DoD. XD

Last edited by dodsynthetic; 08-15-2008 at 03:53 AM.
Reply With Quote
  #2  
Old 01-20-2008, 02:28 AM
|OnEHiTwOnDeR|SoCal |OnEHiTwOnDeR|SoCal is offline
Senior Member
 
Join Date: Mar 2007
Posts: 318
impressive...not tested...but i like the idea.
__________________
we back
Reply With Quote
  #3  
Old 01-20-2008, 11:27 AM
blobby's Avatar
blobby blobby is offline
Senior Member
 
Join Date: Apr 2007
Location: England
Posts: 421
Nice one m8 looks good im gonna put this on my server but what i think would be good also is for the people who use psycho stats if this could be logged there 2

blobby
Reply With Quote
  #4  
Old 01-20-2008, 11:29 AM
Wilson [29th ID]'s Avatar
Wilson [29th ID] Wilson [29th ID] is offline
developer
Developer
 
Join Date: Oct 2005
Location: London
Posts: 623
Code looks good m8.

There's a native in DoDx to catch scoping though, might be easier.
Reply With Quote
  #5  
Old 01-20-2008, 03:12 PM
dodsynthetic's Avatar
dodsynthetic dodsynthetic is offline
developer
Developer
 
Join Date: Mar 2007
Location: BFO
Posts: 276
Quote: Originally Posted by blobby View Post
Nice one m8 looks good im gonna put this on my server but what i think would be good also is for the people who use psycho stats if this could be logged there 2

blobby

I will gladly add features but I'm not sure what you mean. Are you talking about logging to where psychostats is stored? I'm confused lol.
__________________
I once played DoD. XD
Reply With Quote
  #6  
Old 01-20-2008, 03:16 PM
dodsynthetic's Avatar
dodsynthetic dodsynthetic is offline
developer
Developer
 
Join Date: Mar 2007
Location: BFO
Posts: 276
Quote: Originally Posted by Wilson [29th ID] View Post
Code looks good m8.

There's a native in DoDx to catch scoping though, might be easier.

lol If there is, it's labeled something I wouldn't think could give me the result needed. I looked in just about everything for getting weapon state with sniper rifles and the only way I could figure how to do it was by catching changes to a players field of view.
__________________
I once played DoD. XD
Reply With Quote
  #7  
Old 01-20-2008, 06:17 PM
blobby's Avatar
blobby blobby is offline
Senior Member
 
Join Date: Apr 2007
Location: England
Posts: 421
Yeah like Diamond-Optic has done with his push plugin it logs who dies from pushes so if you could add the code to make No scopes log to Psycho stats as well that would be top

Blobby
Reply With Quote
  #8  
Old 01-20-2008, 07:44 PM
dodsynthetic's Avatar
dodsynthetic dodsynthetic is offline
developer
Developer
 
Join Date: Mar 2007
Location: BFO
Posts: 276
Quote: Originally Posted by blobby View Post
Yeah like Diamond-Optic has done with his push plugin it logs who dies from pushes so if you could add the code to make No scopes log to Psycho stats as well that would be top

Blobby

It already logs it's own separate kill type for Psychostats to pick up. Original kill log message is blocked and replaced with unique "killed with" weapon names when a no scoped kill is made. The unique ids can be found at the bottom of the documentation (see my original post up above). Instructions are also there for adding these to Psychostats v3.
__________________
I once played DoD. XD
Reply With Quote
  #9  
Old 01-20-2008, 08:24 PM
{DwP} 325th ABN's Avatar
{DwP} 325th ABN {DwP} 325th ABN is offline
Senior Member
 
Join Date: Aug 2006
Posts: 230
hell im in on this to, sounds like a good plug. anyone that has tried it have any comments on its workings
Reply With Quote
  #10  
Old 01-20-2008, 09:35 PM
blobby's Avatar
blobby blobby is offline
Senior Member
 
Join Date: Apr 2007
Location: England
Posts: 421
Ok ive got this on my server and on my psycho stats works a treat one question you know the message that it shows when you get a noscope is one of the settings to make it a hud message ??

Blobby
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
No - Kill k b 3 c a Requests for DoD Plugins 2 12-30-2009 09:40 PM
Kill over game.. aero_cz Requests for DoD Plugins 1 06-09-2009 07:46 AM
Chat logging. Is3 Requests for DoD Plugins 0 04-13-2009 03:50 PM
DoD Kill Info (v0.1) diamond-optic Other Plugins 6 06-11-2007 09:28 AM
amx admin commands logging plugin jondoe Requests for DoD Plugins 17 04-26-2007 06:53 AM

» Donations
If you like this website, and would like to give something in return, you can make a donation. Your donation will be used to pay for hosting service, domain, & maintenance costs only!

$

Select your donation amount and then press the Donate button.




» Log in
User Name:

Password:

Not a member yet?
Register Now!
Powered by vBadvanced CMPS v3.2.3

All times are GMT -3. The time now is 12:41 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
dodplugins.net