View Single Post
Author Message
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 11-24-2010 , 05:52   Attack Marker - Colored markers which shows your teammates where to attack.
Reply With Quote #1

Attack Marker
Plan ahead, Command you team and Show where you are in an easy way!


Index:
Code:
Description
Screenshots
Requirements
Credits
Changelog
Installation
Configuration Helper
Ingame Commands
Important information
For developers or plugin approvers
Download
Description:
Colored markers which shows your teammates where to attack.
You can place or remove a marker by holding down +zoom and then press +attack.
This plugin should work in any game!

Screenshots:


Requirements:
  • SourceMod 1.3 or higher.

Credits:
Thank you Berni, Manni, Mannis FUN House Community and SourceMod/AlliedModders LLC-Team
The beam ring code (halo) is taken out of funcommands: sm_beacon, so thank you unknown dev.

Changelog:
  • v2.4.16
    • Recode and usage of SMLib.
    • Added command "sm_attackmarker"
    • Added hotkey: zoom + flashlight
    • Added hotkey: zoom + attack
    • Attack Markers can now be removed if you look into the circle if it and use the command or the hotkeys.
    • Added "sm_banmaker" to ban someone form using the markers.
    • Added "sm_unbanmarker" to unban someone.
    • Added "sm_removeallmarkers" to remove all makers.
    • Added checks to avoid marking of ghosts in l4d2.
    • Attack Markers will lock on targeted players.
  • v1.0.4
    • Disabled timer when sm_attackmarker_enable is 0.
  • v1.0.1
    • Small bug fix with the think timer.
  • v1.0.0
    • Public release
Installation:
  • Extract the attackmarker.zip into your mod dir (ex: cstrike,hl2mp,...).
Configuration Helper:
The following can be changed in <moddir>/cfg/sourcemod/plugin.attackmarker.cfg
sm_attackmarker_enable
Enables or Disables Advanced HL2 Movement (1=Enable|0=Disabled)
sm_attackmarker_button_hotkey
sm_attackmarker_button_place
The hotkey (default: +zoom) button needs to be pressed and hold down, then press the place button (default: +attack) in order to place or remove a attackmarker.

Try to avoid changing these since, players get confused if this is different on every server.


Default values:
Hotkey:
+zoom = IN_ZOOM = 2^19 = 524288
see a full list for values here.

Place:
+use = IN_USE = 2^5 = 32
see a full list for values here.
sm_attackmarker_start_alpha
This sets how visible the marker is at start. 255=fully visible; 0=fully invisible
sm_attackmarker_fade_per_tick
This number will be subtracted from the start alpha value each tick.
sm_attackmarker_marker_tick
This sets how often the marker is redrawn (this is the marker tick rate).
Ingame Commands:
For Admins:
sm_removeallmarkers [team]
removes all markers in the team the executing admin is in, using the team parameter will override this.
sm_banmarker <target>
sm_unbanmarker <target>
bans or unbans a player from attack markers.
For every player:
sm_attackmarker [target]
places a marker where you are looking at or if a target is given (players only) on the target is a attack marker.
Important information:
  • BE SURE TO OVERRIDE THE OLD CONFIG FILE (plugin.attackmarker.cfg in your <moddir>/cfg/sorucemod/ folder)!
For developers or plugin approvers:
SMLib is a lib used by Berni and myself, this is a pre-release to provide the code for the GPL, drop it into your include directory.
If this lib is released the zip file is removed.
Download:
The provided plugin.attackmarker.cfg file is configured to enable this plugin by default.
Attached Thumbnails
Click image for larger version

Name:	c2m1_highway0055.jpg
Views:	2926
Size:	83.3 KB
ID:	77896  
Attached Files
File Type: zip smlib.zip (17.7 KB, 481 views)
File Type: zip attackmarker.zip (23.4 KB, 682 views)
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]

Last edited by Chanz; 01-10-2011 at 18:55.
Chanz is offline