Skip to content

LadderGeit/HitMarkers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Important

Plugin compatibility
This plugin is only compatible with amxmodx 1.9 or higher. Support for older versions has been discontinued for ALL my plugins.

COD: HitMarkers

GitHub Created At GitHub last commit

A simple plugin displaying a symbol inside your crosshair everytime you hit an enemy. This plugin is based on a feature that was introduced for the first time to one of the earlier games of Call of Duty, presumably COD4: MW. The plugin is standard set to display a hitmarker when using any gun. Adjust the cvars to chance how the plugin functions.

Cvars

register_cvar("hm_hitmarkers", "1");	// Set to 0 to disable hitmarkers
register_cvar("hm_rainbow", "0");	// Set to 1 to enable rainbow hitmarkers
register_cvar("hm_random", "0");	// Set to 1 to enable random hitmarkers
register_cvar("hm_snipers", "0");	// Set to 1 to enable hitmarkers only for snipers
register_cvar("hm_sounds", "0");	// Set to 1 to enable hitmarker sounds
register_cvar("hm_symbol", "x");	// Hitmarker symbol (Requires hm_random "1")
register_cvar("hm_red", "165");		// RGB - Red (Requires hm_rainbow "0")
register_cvar("hm_green", "165");	// RGB - Green (Requires hm_rainbow "0")
register_cvar("hm_blue", "165");	// RGB - Blue (Requires hm_rainbow "0")
register_cvar("hm_dead", "1");		// Sets a different color when victim died.
register_cvar("hm_dead_red", "255");	// RGB Dead - Red (Requires hm_dead "1")
register_cvar("hm_dead_green", "0");	// RGB Dead - Green (Requires hm_dead "1")
register_cvar("hm_dead_blue", "0");	// RGB Dead - Blue (Requires hm_dead "1")
register_cvar("hm_x", "-1.0");		// x pos
register_cvar("hm_y", "-1.0");		// y pos
register_cvar("hm_holdtime", "0.5");	// Hud hold time

Changelog

Version list
  • 1.0: First release
  • 1.1: Added rainbow colors and random symbols customizable by cvars
  • 1.2: Added sniper-only option
  • 1.3: Added cvars
  • 1.4: Added hitmarker sounds customizable by cvars
  • 1.5: Optimizations + added customizable hitmarker symbols
  • 1.6: Added functionality for showing a specific color on death
  • 1.7: Adjusted the plugin to work with all guns on default
  • 1.8: Adjusted cvar names and added some code readability - [Current Version]

About

COD: HitMarkers

Resources

Stars

Watchers

Forks

Languages