View Single Post
Plugin Info:     Modification:          Category:          Approver:   Zenith77 (33)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-21-2007 , 08:22   Advanced Weapon Tracers 1.3.0 (21 jun 2008)
Reply With Quote #1

Advanced Weapon Tracers




.: Description :.


This plugin shows bullet traces.



.: Features :.


- Ability to enable/disable tracers for weapon categories :
  • HandGuns
  • Shotguns
  • Smgs
  • Riffles
  • Snipers

- Ability to hide tracers when weapons are silenced

- Multi traces on shotguns and on 'bursted' weapons

- Players can disabled tracers with toggle say command : /tracers
! Note that plugin have to be compiled with PER_PLAYER_SETTINGS defined



.: Command :.

say /tracers
Player ability to toggle tracers

.: Cvars :.

  • amx_tracers < 1|0 >
    Enable / Disable the plugin
  • amx_trace_handguns < 1|0 >
    Enable / Disable tracers on hand guns
  • amx_trace_shotguns < 1|0 >
    Enable / Disable tracers on shot guns
  • amx_trace_smgguns < 1|0 >
    Enable / Disable tracers on smgs
  • amx_trace_riffleguns < 1|0 >
    Enable / Disable tracers on riffles
  • amx_trace_snipeguns < 1|0 >
    Enable / Disable tracers on snipers
  • amx_trace_hide_silen < 1|0 >
    1 : hide tracers on silenced weapons
    0 : don't hide tracers on silenced weapons
  • amx_trace_hltv < 1|0 >
    If per player settings enabled, set to 1 to show tracers to HLTVs
  • amx_trace_laser_color < RRRGGGBBB >
    Laser version only, set color of tracer



.: Modules :.


Cstrike
Fakemeta
Hamsandwich



.: Credits :.


Hide silen weapons traces idea from axn metamod plugin.
Laser version : XxAvalanchexX for his snippet



.: ChangeLog :.
Code:
/*
* v1.3.0 (21jun2009)
* - rewritten the whole plugin for better shot place detection
*
* v1.2.0 (17mar2008)
* -now hook traceline forward to get the exact (at least more accurate) bullet trace
*
* v1.1.2 (13mar2008)
* -removed famas multi-tracers
*
* v1.1.1 (23jan2008)
* -fixed error when silenced m4 made burst tracers
*
* v1.1
* -changed message_begin with EngFunc_MessageBegin to avoid changing floats into integers
* -made some strings as const
* -replaced 'if statments' with 'switch statements' in PlaybackEvent forward
* -tmp is now considered as a silent weapon (can be disabled by commenting #define TMP_IS_A_SILENCED_WEAPON)
* -added command 'say /tracers' so player can switch on/off tracers (can be disabled by commenting #define PER_PLAYER_SETTINGS)
* -cvar amx_trace_hltv, so tracers are sent to HLTV (if #define PER_PLAYER_SETTINGS is commented, tracers are always sent to HLTVs)
* -added public cvar
*
* v1.0 First Release
*/
+12000dl
Attached Files
File Type: sma Get Plugin or Get Source (advanced_weapon_tracers.sma - 36497 views - 6.2 KB)
File Type: sma Get Plugin or Get Source (weapon_laser_tracers.sma - 13067 views - 7.4 KB)

Last edited by ConnorMcLeod; 10-25-2009 at 05:54.
ConnorMcLeod is offline