Raised This Month: $51 Target: $400
 12% 

Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011


Post New Thread Reply   
 
Thread Tools Display Modes
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 12-01-2013 , 15:41   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #931

Quote:
Originally Posted by St00ne View Post
Hi,
Did someone manage to fix the "sm_adminspray" making the server crash?
I'm using a version in which this function is removed but I'd like to have it again...
I am having the same issue as this person. The crash seems to be random as well, sometimes it works fine.
__________________
Chdata is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-02-2013 , 21:25   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #932

Quote:
Originally Posted by Chdata View Post
I am having the same issue as this person. The crash seems to be random as well, sometimes it works fine.
Reading is magic
https://forums.alliedmods.net/showth...ay#post1947367

I don't think write te cares, but if you want, get the classname of the ent, and check if it's "worldspawn" before spraying. Though, static props and crap like skybix will still return as that.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 12-02-2013 at 21:27.
friagram is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 12-02-2013 , 21:35   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #933

Yea, reading is magic, but I couldn't find the page where your post was.
So now that I found it, I will test this code.
But if it works so fine, please provide a smx for users to get it easily.

Thx for your work.

Cheers,

St00ne

PS: the post you are giving me is just a part of the code.
I guess you suggest me to integrate it into the the code of the original post (full version)...

PS2: I tested that and it seems to work (thx), but I didn't hear the sound of the spray. NEVERMIND
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 12-02-2013 at 22:22.
St00ne is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 12-04-2013 , 01:58   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #934

Looking through tons of pages in multiple threads for various plugins you use is also magic, so thanks for linking that for me.
__________________

Last edited by Chdata; 12-04-2013 at 01:58.
Chdata is offline
HollowPoints
New Member
Join Date: Apr 2014
Old 04-16-2014 , 16:49   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #935

Not everyone on my server has full admin. What file do I need to change in order to get all admin to have permissions for spraytrace.
HollowPoints is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 04-17-2014 , 01:11   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #936

After seeing the post below, I threw the code from friagram into the source to compile for everyone.

Spoiler


I have not tested it, but for those that wanted it, here is his fix (attached)
Attached Files
File Type: sp Get Plugin or Get Source (spraytrace.sp - 350 views - 29.8 KB)
ThatOneGuy is offline
Donski
Senior Member
Join Date: Sep 2012
Old 04-17-2014 , 02:22   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #937

Already done here.
Donski is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 04-17-2014 , 03:02   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #938

Quote:
Originally Posted by Donski View Post
Already done here.
That post says the admin menu doesnt work in his compile. Maybe it does in the one I compiled? If not, I'll fix it tomorrow. I simply put it together because I saw the posts before mine requesting it. I didnt even test it.
ThatOneGuy is offline
wtfaatp
Senior Member
Join Date: Jul 2010
Old 04-22-2014 , 20:49   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #939

Quote:
Originally Posted by ThatOneGuy View Post
That post says the admin menu doesnt work in his compile. Maybe it does in the one I compiled? If not, I'll fix it tomorrow. I simply put it together because I saw the posts before mine requesting it. I didnt even test it.
Admin menu still not working
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows
wtfaatp is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 05-07-2014 , 03:07   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
Reply With Quote #940

So I did a few more changes to GoSpray() and a couple of changes to the Spray HUD timer.
I don't know if the changes are better, worse, etc, nor am I sure if this even works (seems to work for me).
Basically, try at your own risk.

GoSpray() now ignores most objects and attempts to spray on the world rather than on arbitrary entities that can't "wear" sprays. Same goes for aiming at sprays; if the spray you're looking at is underneath an object (e.g. a cap point's model in TF2), then it'll actually find the spray instead of hidding the cap point and finding nothing.

The spray HUD timer now displays HUD text only if the client's spray target changes, instead of once every <refreshtimecvar>. The linger time cvar still works, though. Kinda. I don't know if this is better.

Also fixed the spray sound to actually play when using /adminspray (player/sprayer.wav). Plays from the location the spray is placed, not the player.

By the way, I changed up the spray HUD cvars a bit. Removed sm_spray_adminonly, sm_spray_fullhud, sm_spray_fullhudadmin, and replaced with a set of admin overrides:
spraytrace_hud_access - default flag none, clients with access to this will see sprayers' names when aiming at sprays
spraytrace_hud_access_full - default flag 'b', clients with access to this will see STEAMIDs in addition to names
spraytrace_hud_is_admin - default flag 'b', clients with access to this will be considered "admins" for the next override
spraytrace_hud_can_trace_admins - default flag none, clients without access to this will be unable to see names on sprays for those considered "admins"

Also requires a new translation file, so there's that.
Also 5.8.1 because I don't even know anymore.
Once again, at your own risk.

EDIT: Redownload. I changed a somewhat arbitrary "1000.0" to a more reasonable "15.0".
EDIT: Redownload again, fixed a bug that I didn't notice with the 15.0 thing.
Attached Files
File Type: txt spraytrace.phrases.txt (33.9 KB, 363 views)
File Type: sp Get Plugin or Get Source (spraytrace.sp - 756 views - 43.4 KB)
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 05-07-2014 at 03:44.
FlaminSarge is offline
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 04:01.


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