AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Tracer Effects v1.2.8 (Updated: 8/12/13) (https://forums.alliedmods.net/showthread.php?t=142046)

thetwistedpanda 10-31-2010 16:50

[CS:S] Tracer Effects v1.2.8 (Updated: 8/12/13)
 
4 Attachment(s)
Information:
  • This plugin was a paid request by MiracleM4n, who has agreed to its release on the account the original plugin is highly broken.
  • Notice: This is a complete rewrite of [CS:S] Laser Tag, with improvements galore and several new features.
  • (Reapproved to fix version cvar)
Features:
  • Provides support for clients to change their personal tracer, as well as change the tracer they see for everyone else.
  • Configure up to 128 different tracers (without the need to recompile the script) that support different materials, red/green/blue/alpha color combinations, width, and lifetimes.
  • Support for default tracer widths and lifetimes if pre-defined values are not found within the configuration file.
  • Supports various modes of tracer visibility:
    • Spectators/Dead Only: ~ Players will only see tracers after their own demise or upon joining spectate.
    • Team Members Only: ~ Players will only see tracers for their own team.
    • Opposing Team Only: ~ Players will only see tracers for their opposing team.
    • Default: ~ Tracers will always be visible, but clients and toggle their ability to see them.
    • Client Settings: Rather than the server selecting the mode, with this mode clients can determine how they want their tracers to appear.
ConVars:
  • css_tracer_effects: Enables/disables all features of the plugin.
  • css_tracer_effects_advert: The number of seconds after a client joins an initial team for an informational advert to be sent to the client. (-1.0 = No Advert).
  • css_tracer_effects_personal_tracer: If enabled, players may hide their own tracer yet still allow others to see it.
  • css_tracer_effects_flag: If "", everyone can access all features of Tracer Effects, otherwise, only players with this flag or "Tracers_Access" override will have access to personal tracer modifications.
  • css_tracer_effects_knife: If enabled, clients with access can shoot tracers from their knife to their crosshair location. (0 = Disabled, 1 = Left Click, 2 = Right Click, 3 = Both)
  • css_tracer_effects_commands: The chat triggers available to clients to access tracers features.
  • css_tracer_effects_client_enabled: The default tracer status for new clients. (1 = Start On, 0 = Start Off, 2 = Always Enabled)
  • css_tracer_effects_client_visibility: The default tracer visibility for new clients. (0 = All, 1 = Spectators/Dead Only, 2 = Team Members Only, 3 = Opposing Team Only)
  • css_tracer_effects_client_tracer: The default personal tracer for new clients (0 = Random, # = Tracer Index)
  • css_tracer_effects_client_personal: The default personal tracer appearance status for new clients (0 = Random, # = Tracer Index)
  • css_tracer_effects_force_team: If 1 (regular) or 2 (all), clients may not choose their own tracer, rather, every tracer will be randomly colored.
  • css_tracer_effects_force_random: If 1 (regular) or 2 (all), clients may not choose their own tracer, rather, they are assigned their css_tracer_effects_*_tracer.
  • css_tracer_effects_global_visibility: Determines tracer visibility: (0 = All, 1 = Spectators/Dead Only, 2 = Team Members Only, 3 = Opposing Team Only, 4 = Client Choice)
  • css_tracer_effects_global_width: The width value to be applied to tracers. Set to -1 to use pre-defined tracer values.
  • css_tracer_effects_global_life: The lifetime value to be applied to tracers. Set to -1 to use pre-defined tracer values.
  • css_tracer_effects_global_impact: Determines impact method: (0 = Tracers appear from bullet_impact, 1 = Tracers appear from damaging opponent.
  • css_tracer_effects_grenades: If enabled, grenades thrown by clients will have their trail attached.
Credits:
  • Chocolate and Cheese: This plugin is a rewrite of his/her work, [CS:S] Laser Tag, with various changes and improvements.
  • MiracleM4n: For allowing the plugin to be released, and paying for the rewrite to begin with.
  • andi67: For fixing the plugin in my absence and providing an alternate method to using GameData.
Installation:
  • As you cannot compile this plugin locally on the forums, and there are several extra files, I've attached all necessary files into a zip. The contents of the zip file are as follows:
    • /sourcemod/configs/css_tracer_effects.ini
    • /sourcemod/gamedata/css_tracer_effects.gamedata.txt
    • /sourcemod/plugins/css_tracer_effects.smx
    • /sourcemod/scripting/css_tracer_effects.sp
    • /sourcemod/translations/css_tracer_effects.phrases.txt

Sir Jake 10-31-2010 18:22

Re: [CS:S] Tracer Effects
 
Pretty badass, just had it on for a bit trying it out.
Would be great for a fun server. :)
Thanks for posting this one.


Edit:
Seems someone posted a video from our servers and it shows part of how this looks
http://www.youtube.com/watch?v=ByxIZ1Ryn0k&feature=related

dressler18 11-01-2010 10:37

Re: [CS:S] Tracer Effects
 
Thank you!! NIce plugin

But I have one problem.
The cvar sm_tracer_effects_life dont work. After mapchange or server restart the time is on default (0.3) so i have to change it via rcon.
Also the settings for each client get lost after mapchange.

Maybe i did something wrong. I put this in my server.cfg:

Code:

sm_tracer_effects "1"
sm_tracer_effects_spectators "0"
sm_tracer_effects_team "0"
sm_tracer_effects_attacker "0"
sm_tracer_effects_client "1"
sm_tracer_effects_default "0"
sm_tracer_effects_color #
sm_tracer_effects_random "0"
sm_tracer_effects_alpha "255"
sm_tracer_effects_life "3.0"
sm_tracer_effects_width "3"


thetwistedpanda 11-01-2010 10:41

Re: [CS:S] Tracer Effects
 
You do not put those values into your server.cfg, the server will automatically generate a SourceMod configuration file for this plugin located in /cstrike/cfg/sourcemod/ named sm_tracer_effects.cfg.

dressler18 11-01-2010 10:55

Re: [CS:S] Tracer Effects
 
Oh didn't know that. Thank you, the plugin is working fine now.

FirEXE 11-03-2010 06:35

Re: [CS:S] Tracer Effects
 
Color option doesn't work.

thetwistedpanda 11-03-2010 10:18

Re: [CS:S] Tracer Effects
 
Going to have to give me more information than that, last time I ran the mod before I sent it to the client all features worked properly.

nikooo777 11-03-2010 17:05

Re: [CS:S] Tracer Effects
 
!settings crashes my server
i have no idea why

thetwistedpanda 11-03-2010 17:07

Re: [CS:S] Tracer Effects
 
It's an issue on a lot of linux machines and sqlite, my client actually had the same problem. I will be writing up a clientpref's free version for individuals who have an issue with !settings/clientprefs. Give me 48 hours.

nikooo777 11-03-2010 17:30

Re: [CS:S] Tracer Effects
 
colors work here by the way
E: thank you!

thetwistedpanda 11-03-2010 22:12

Re: [CS:S] Tracer Effects
 
Alright, I've added a clientprefs free version (appropriately titled sm_tracer_effects_nopref.smx) that will not retain client settings, and as such, will not use !settings. Haven't tested it, but it should work fine. Or it could be the little fairies that appear when I get drunk. I'll get back to you on that.

FirEXE 11-04-2010 18:14

Re: [CS:S] Tracer Effects
 
It's just your shot color changes, other players shot traces are still being random colored.

thetwistedpanda 11-04-2010 18:34

Re: [CS:S] Tracer Effects
 
Exactly, you can't color the tracers for everyone else. You can enable/disable your ability to view tracers, or change the color of your own tracer.

FirEXE 11-05-2010 16:00

Re: [CS:S] Tracer Effects
 
That's bad. :(

thetwistedpanda 11-05-2010 16:16

Re: [CS:S] Tracer Effects
 
In theory it would be possible, let me finish my current projects and I'll see if I can add that option without compromising performance. I suspect there will be lag issues on servers > 32 due to the method required to allow greater configuration, so I may end up just writing up a separate version for you.

FirEXE 11-07-2010 09:33

Re: [CS:S] Tracer Effects
 
Thanks. Will look forward for that.

thetwistedpanda 11-07-2010 15:48

Re: [CS:S] Tracer Effects
 
Version 1.1.0 has been released! It is recommended anyone updating from 1.0.x to 1.1.x to delete their configuration file,add the updated version, and restart their server!

Major Changes:
  • sm_tracer_effects_spectator/sm_tracer_effects_team/sm_tracer_effects_attacker have been consolidated into sm_tracer_effects_mode for ease of use (since only one could be enabled at any given time.)
  • Support has been added for clients to color their own tracer, or to color all visible tracers.
  • Support has been added for team colors, which when enabled, will prevent clients from modifying their own tracer color.
  • The code has been optimized a good bit due to the new method being used to detect current mode.

FirEXE 12-18-2010 07:29

Re: [CS:S] Tracer Effects
 
The Christmas update messed up this plugin, so as soon as anybody shoots server crashes.

zeroibis 12-18-2010 17:57

Re: [CS:S] Tracer Effects
 
Is there not a way to just have the plugin find the offset on load so we do not have it broken by valve every few months... We know it is CBasePlayer::Weapon_ShootPosition(void)

So is there not a way to just auto detect the offset and get rid of the gamedata file.

ThorsHammer 12-19-2010 02:48

Re: [CS:S] Tracer Effects
 
Hello,

Great Pluggin! having some issues though.. I believe I have the CVARs setup correctly and I will paste it below. Even though I have sm_tracer_effects_default "1"
Some reason the tracers will not show the first time the client connects to the server. Although typing !settings will allow the client to enable the mod and edit the color.

Why does this NOT auto show the tracers on connect and still allow the client to have the tracer menu?

My tracer cfg:
sm_tracer_effects "1"
sm_tracer_effects_alpha "150"
sm_tracer_effects_client "1"
sm_tracer_effects_color "-1"
sm_tracer_effects_default "1"
sm_tracer_effects_life "0.3"
sm_tracer_effects_mode "0"
sm_tracer_effects_random "0"
sm_tracer_effects_team "0"
sm_tracer_effects_team_ct "0 0 255"
sm_tracer_effects_team_t "255 0 0"
sm_tracer_effects_width "3.0"



Thanks,
Thor

Sandfly 12-19-2010 10:04

Re: [CS:S] Tracer Effects
 
Hi there Twisted,

As with other reports, the plugin in its current guise crashes the servers after the recent Valve Christmas present-we-didn't-want-or-need-update. ;)

It is a popular plugin, so if you have the time before Xmas or whenever is good, I'm sure a lot of people, including ourselves, would be grateful if you would recompile this so that it works with the current MM / SM setup.

Much appreciation for all your efforts over this year, and the tremendous plugs you've afforded us the pleasure of using.

Cheers!

anthhcuz 12-19-2010 18:49

Re: [CS:S] Tracer Effects
 
This doesn't work no more.

If you attempt to use it it will crash your server,

wait for a update guys.

sinblaster 12-19-2010 20:21

Re: [CS:S] Tracer Effects
 
Quote:

Originally Posted by anthhcuz (Post 1374955)
This doesn't work no more.

If you attempt to use it it will crash your server,

wait for a update guys.


I haven't seen panda online for quite a while. I emailed him a while ago and never got a reply so I assumed he's gone on a early holiday. I hope he's having fun! :P

KyleS 12-21-2010 07:13

Re: [CS:S] Tracer Effects
 
1 Attachment(s)
No guarantee that this works, however for those of you that are feeling adventurous. Try it out, it should work.

iggythepop 12-21-2010 18:41

Re: [CS:S] Tracer Effects
 
Quote:

No guarantee that this works, however for those of you that are feeling adventurous. Try it out, it should work.

It doesnt crash the server and it shows the plugin running in "sm plugins list" but, no effects show no matter how you configure the settings in the plugin cfg. Thx for trying.

I did re-compile the sp also and it does genarate the cfg file but still no tracer effects but no crashes either...so close.

andi67 12-23-2010 06:20

Re: [CS:S] Tracer Effects
 
2 Attachment(s)
So you can test out this one , no gamedata.txt needed , if you want to adjust the BeamPosition search for this and after changing compile it yourself:
if(TR_DidHit(trace))
{
TR_GetEndPosition(vecPos, trace);
vecOrigin[0] += 0;
vecOrigin[1] -= 0;
vecOrigin[2] -= 0;

or try sm_advanced_laser , it uses differant Beams....

iggythepop 12-23-2010 11:24

Re: [CS:S] Tracer Effects
 
I tried both above and no go.

here is my plugins list

[SM] Listing 30 plugins:
01 "Admin File Reader" (1.3.6) by AlliedModders LLC
02 "Admin Help" (1.3.6) by AlliedModders LLC
03 "Admin Menu" (1.3.6) by AlliedModders LLC
04 "Ads" (1.0.4.0) by Shane A. ^BuGs^ Froebel
05 "Anti-Flood" (1.3.6) by AlliedModders LLC
06 "Basic Ban Commands" (1.3.6) by AlliedModders LLC
07 "Basic Chat" (1.3.6) by AlliedModders LLC
08 "Basic Comm Control" (1.3.6) by AlliedModders LLC
09 "Basic Commands" (1.3.6) by AlliedModders LLC
10 "Basic Info Triggers" (1.3.6) by AlliedModders LLC
11 "Basic Votes" (1.3.6) by AlliedModders LLC
12 "BunnyHop" (1.0.1) by Soccerdude
13 "CD Announcer" (2.3) by Fredd
14 "Client Preferences" (1.3.6) by AlliedModders LLC
15 "CSS Throwing Knives" (1.1.3) by meng
16 "Fun Commands" (1.3.6) by AlliedModders LLC
17 "Fun Votes" (1.3.6) by AlliedModders LLC
18 "Healthkit On Death" (1.7.0) by Knagg0
19 "Jetpack" (2.0.7) by Knagg0
20 "Welcome Sound" (0.0.1) by R-Hehl
21 "Grenade Trails" (1.1) by Fredd
22 "Nextmap" (1.3.6) by AlliedModders LLC
23 "No Fall Damage" (0.0.1.9) by alexip121093
24 "PermaMute" (0.1) by Ryan "FLOOR_MASTER" Mannion
25 "Player Commands" (1.3.6) by AlliedModders LLC
26 "Reserved Slots" (1.3.6) by AlliedModders LLC
27 "Sound Commands" (1.3.6) by AlliedModders LLC
28 "Voice Adverts" (1.3.6) by Cep>|< - Russian BugTrack group
29 "Web Shortcuts" (1.0.1) by James "sslice" Gray
30 sm_advanced_laser.smx

Notice how the laser plugin looks diff than the way the other plugins are listed in the list. No effects, doesnt crash the server or anything but doesnt work either, Maybe its just a small fix to get it right thx 4 trying.
And I did remove the gamedata txt from the old version also.

andi67 12-23-2010 11:54

Re: [CS:S] Tracer Effects
 
for sm_tracer_effects you have to type "!sm_tracers" in chat and than enable it through the menu....but for sm_advanced_laser there is need for manually enable , also you should upgrade SM to 1.3.7 AND MM to 1.8.5.....

UserFriendly 12-23-2010 12:27

Re: [CS:S] Tracer Effects
 
this only work for css?

iggythepop 12-23-2010 12:37

Re: [CS:S] Tracer Effects
 
Ok Andi thx it does work that way.
But team colors no longer work in the Sm cfg.
Is there a way to have it auto on by default with just with team colors.
The reason I ask is...my server is jetpack server with huge maps.
It was nice before being able to see red or blue lasers to help find players
that are flying all around the map.
Not trying to be a pain but, getting the word out to each player about having to type !sm_tracers is goin be kinda hard and I even use the voice adverts plugin to spread the word on how to turn on the Jetpack bind.
No biggy but would be nice auto on by default with team colors.
But all and all great work thx for the fix :)

blaxxun 12-23-2010 12:41

Re: [CS:S] Tracer Effects
 
hm I just used the gamedata file from Kyle12 and it works like a charm! No crashes so far... thx!

andi67 12-23-2010 15:16

Re: [CS:S] Tracer Effects
 
Well this was just a quick fix , IŽll take look in the next days and fix the rest....

iggythepop 12-23-2010 16:17

Re: [CS:S] Tracer Effects
 
Thx a bunch for what youve already done.
The Orig plugin was auto on already so everyone could see it without typing anything.
Then as I said I set to team colors for red and blue tracers and that was it.
This works but trying to get a player to understand what to type is like pulling teeth to some players.
Thx Again....Happy Holidays 2 U.
Now I can see them atleast.

thetwistedpanda 01-01-2011 00:48

Re: [CS:S] Tracer Effects
 
Hmm, looks like the latest update broke the gamedata. I'll update the original post with gamedata provided by Kyle12 (thanks btw) soon and work on this annoying cookie issue that I've recently noticed my error in. I may just switch over to SQLITE since cookies have issues with saving.

thetwistedpanda 01-03-2011 11:39

Re: [CS:S] Tracer Effects
 
Version 1.1.1 Released:
  • Added code (thanks andi67) that will allow the plugin to continue operating should the GameData be incorrect or missing. If it wasn't working for you before, it'll work now!
  • Rewrote the clientpref code that should allow data to start saving properly (Notice: Prefs still only save on map change)
  • Changed it so that menu selections inside of !tracers/!settings will re-open the menu
  • Removed the FailState that's fired when the gamedata is not provided, as it is no longer necessary.

andi67 01-04-2011 04:04

Re: [CS:S] Tracer Effects
 
NP...good work Panda....


:)

iggythepop 01-04-2011 22:52

Re: [CS:S] Tracer Effects
 
Thx Guys working great again.

Black Haze 01-10-2011 17:53

Re: [CS:S] Tracer Effects
 
How about giving the tracers a moving water skin? It would make em a bit prettier me thinks :3

thetwistedpanda 01-11-2011 17:27

Re: [CS:S] Tracer Effects
 
Version 1.1.2 Released
Important: This is a very big update; it is highly recommended overwrite your existing sm_tracer_effects.cfg with the one provided, otherwise certain features may not function properly.

Cvar Log:
  • New:
    • sm_tracer_effects_advert ~ Number of seconds after joining first team for an advert to be sent about the plugin. \"-1\" disables adverts.
  • Modified:
    • sm_tracer_effects_team_t ~ Now accepts a single index entry, rather than a color combination.
    • sm_tracer_effects_team_ct ~ Now accepts a single index entry, rather than a color combination.
  • Removed:
    • sm_tracer_effects_client ~ No longer necessary
    • sm_tracer_effects_alpha ~ Replaced with the new configuration method.
    • sm_tracer_effects_life ~ Replaced with the new configuration method.
    • sm_tracer_effects_width ~ Replaced with the new configuration method.
Major Changes:
  • This was a complete rewrite of the code with improvements in every area.
  • Advanced loading method that will allow you to modify your own tracers without modifying the source code! You can now specify the tracer's name, texture, life, width, and color combinations.
  • Depcreated/Modified several cvars that were no longer needed with the new configuration method, or changed the operational parameters to conincide with the changes made.
  • Removed the duplicate command sm_tracer, instead added support for blocking !tracers/tracers in chat.
  • Returned the Advert feature, which'll notify your users of the !tracers command x seconds after joining a team (for the first time).
  • Removed the ability prevent clients from enabling/disabling their tracers, as that feature didn't seem needed when Random/Team Only will accomplish the same.
  • Added a new tracer mode, Client Settings, which allows the PLAYER to determine what tracer mode he/she wishes to use.
  • Replaced the Attackers Only mode with Opposing Team mode, which will show tracers of opposing team members only.
  • Added a new default tracer color, Black, which takes advantage of the new configuration method.
@BlackHaze, using the new configuration, you can easily assign a water tracer to a specific tracer.

Black Haze 01-12-2011 09:07

Re: [CS:S] Tracer Effects
 
Oh very nice :D Gonna put it on, see if people like it :D


All times are GMT -4. The time now is 15:00.

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