View Single Post
Plugin Info:     Modification:          Category:          Approver:   HamletEagle (36)
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-16-2020 , 13:42   COD: HitMarkers v1.7 [Updated April 29th 2021]
Reply With Quote #1

Call of Duty: HitMarkers v1.7

Description.
  • A simple plugin displaying a symbol inside your crosshair everytime you hit an enemy, just like in Call of Duty. Made this plugin since there aren't any of this kind yet. The plugin is standard set to display a hitmarker when using any gun. set amx_hmsnipers "1" to enable it for only snipers.

Plugin Cvars.
  • The whole hitmarker has a bunch of settings that can be changed by cvars, listed below

Code:
amx_hitmarkers "1" - Enables/disables the plugin. Enabled on default.
amx_hmrainbow "1" - Enables/disables rainbow colors. Enabled on default.
amx_hmrandom "1" - Enables/disables random hitmarker symbols. Enabled on default.
amx_hmsnipers "0" - Enables/disables hitmarkers on snipers only. Enabled on default.
amx_hmsounds "1" - Enables/disables hitmarker sounds. Enabled on default.
amx_hmsymbol "x" - Sets the symbol of the hitmarker (only works when amx_hmrandom "0")
amx_hmrcolor "165" - Sets the RGB Red code. (This won't work when amx_hmrainbow = 1)
amx_hmgcolor "165" - Sets the RGB Green code. (This won't work when amx_hmrainbow = 1)
amx_hmbcolor "165" - Sets the RGB Blue code. (This won't work when amx_hmrainbow = 1)
amx_hmdead "1" - Sets a different color when victim died.
amx_hmdeadrcolor "255" - RGB Dead - Red
amx_hmdeadgcolor "0" - RGB Dead - Green
amx_hmdeadbcolor "0" - RGB Dead - Blue
amx_hmxpos "-1.0" - Sets the x position.
amx_hmypos "-1.0" - Sets the y position.
amx_hmholdtime "0.5" - Sets the holdtime of the hitmarker
Hitmarker Symbols.
  • When amx_hmrandom is "1", a random symbol will be picked to display inside your crosshair. When it's "0", a simple "x" will be displayed.
Code:
  • "-"
  • "\"
  • "|"
  • "/"
  • "*"
  • "+"
  • "x"
Pictures.
Spoiler


Updates.
Code:
  • 1.0: First release
  • 1.1: Implented DJEarthQuake's idea
    • Added rainbow colors + cvars
    • Added random symbols + cvars
  • 1.2: Released a version which only works for Sniper rifles.
  • 1.3:
    • Added a cvar for snipers and merged both plugins into 1. Thanks to HamletEagle.
    • Optimized my code a lot thanks to Bugsy, thanks for showing me.
  • 1.4: Added hitmarker sounds controlable with a cvar.
  • 1.5:
    • Added a cvar to adjust the hitmarker symbol to your likings
    • Optimized the code a bit.
  • 1.6: Added new functionality to the plugin + cvars. Hitmarker can now show specific color upon death.
    • amx_hmdead "1" - Shows a specified color by using following cvars
      • amx_hmdeadrcolor "255" - RGB Dead - Red
      • amx_hmdeadgcolor "0" - RGB Dead - Green
      • amx_hmdeadbcolor "0" - RGB Dead - Blue
  • 1.7: Adjusted the plugin to work with all guns on default (as it is in Call Of Duty). Description has been updated for more information.
Credits.
Please, if any bugs occure, let me know. Suggestions and improvements are always welcome too.
Attached Files
File Type: sma Get Plugin or Get Source (HitMarkers.sma - 1560 views - 4.4 KB)
File Type: zip HitMarkers.zip (4.1 KB, 1326 views)
__________________

Last edited by Napoleon_be; 04-28-2021 at 23:16. Reason: Update 1.7
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be