Raised This Month: $32 Target: $400
 8% 

The Specialist Tracers (Only working ones for TS)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   The Specialists        Category:   Event Related        Approver:   twistedeuphoria (82)
Sodium
Member
Join Date: Oct 2004
Old 11-06-2005 , 18:29   The Specialist Tracers (Only working ones for TS)
Reply With Quote #1

Ahhh, I rarely post plugins but I saw that there were no TS-Compatible tracers. What a shame.

It was easily found out by using Message Logging.

Here, I found two related values. At first I thought it was WeaponInfo, but that's reloading/changing weapons. My last tracer plugin required a filter. TS Comes with a built in one called ClipInfo. It's only for when you shoot a weapon that takes away a bullet/knife.
Good, it's now simplified and easily understandable.

Is this plugin fully customizable?
Partially, thanks to hawk.

amx_tracer (0/1) 0 is off 1 is on
amx_tracer_r (0-255) the amount of red in tracers, 0 is non 255 is the most
amx_tracer_g(0-255) amount of green
amx_tracer_b(0-255) amount of blue
Attached Files
File Type: sma Get Plugin or Get Source (tstracer.sma - 1964 views - 1.5 KB)
Sodium is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-06-2005 , 18:50  
Reply With Quote #2

Slightly cvared one

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <engine> #define MAX_PLAYERS 32 new sprite public plugin_init() {     register_plugin("Tracer","0.1","DahVid")     register_event("ClipInfo","set_tracer","b")         register_cvar("amx_trace_r","0")     register_cvar("amx_trace_g","0")     register_cvar("amx_trace_b","255")         register_cvar("amx_trace","1") } public plugin_precache() {     sprite=precache_model("sprites/zbeam4.spr") } public set_tracer(id) {     if(!get_cvar_num("amx_trace"))         return PLUGIN_CONTINUE         new startorigin[3]     new endorigin[3]         get_user_origin(id,startorigin,1)     get_user_origin(id,endorigin,3)         message_begin(MSG_BROADCAST,SVC_TEMPENTITY) //tracer     write_byte(0) //TE_BEAMPOINTS     write_coord(startorigin[0]) //startorigin     write_coord(startorigin[1])     write_coord(startorigin[2])     write_coord(endorigin[0]) //endorigin     write_coord(endorigin[1])     write_coord(endorigin[2])     write_short(sprite) //sprite     write_byte(0) //starting frame     write_byte(10) //frame rate     write_byte(10) //life     write_byte(10) //line width     write_byte(0) //noise     write_byte(get_cvar_num("amx_trace_r")) //red     write_byte(get_cvar_num("amx_trace_g")) //green     write_byte(get_cvar_num("amx_trace_b")) //blue     write_byte(255) //brightness     write_byte(1) //scroll speed     message_end()         return PLUGIN_CONTINUE }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Mr. Satan
Senior Member
Join Date: Apr 2004
Location: Fort Wayne, Indiana
Old 03-20-2006 , 14:46  
Reply With Quote #3

It'd be nice to have an option to have the tracer color cycle through all the "normal" colors (ex. Red, Blue, Green, Yellow, Purple, etc...) -- People on my server have been requesting this and I feel it would be a good idea.
__________________
DITN's TEAMSPEAK Server @ ditn.sytes.net:8767
Mr. Satan is offline
Send a message via AIM to Mr. Satan Send a message via MSN to Mr. Satan Send a message via Yahoo to Mr. Satan
Reply



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


All times are GMT -4. The time now is 12:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode