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

Target glow


Post New Thread Reply   
 
Thread Tools Display Modes
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-17-2009 , 13:30   Re: Target glow
Reply With Quote #11

I believe filtering in TraceLine and then doing it how I suggested above requires far less calls of is_user_alive on the whole.
__________________
In Flames we trust!

Last edited by Nextra; 03-17-2009 at 15:46.
Nextra is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-17-2009 , 13:35   Re: Target glow
Reply With Quote #12

If you want to avoid native calls, Ham_Spawn/Killed/Disconnect to cache the value of is_user_alive() would be not a bad idea. Anyway you're probably right.
Arkshine is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 03-18-2009 , 08:49   Re: Target glow
Reply With Quote #13

Updated - Code optimized.
TheRadiance is offline
Send a message via ICQ to TheRadiance
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 03-18-2009 , 21:52   Re: Target glow
Reply With Quote #14

doesnt compile
letgoofmyeggs is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2009 , 02:28   Re: Target glow
Reply With Quote #15

It compiles localy but for some reason the webcompiler fails.. You can use this webcompiler instead.
Arkshine is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-19-2009 , 12:24   Re: Target glow
Reply With Quote #16

Works for me. Maybe it was only a temporary bug.
__________________
In Flames we trust!
Nextra is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2009 , 13:01   Re: Target glow
Reply With Quote #17

Yeah you're right. But it happens quite often. ^^
Arkshine is offline
texas_pune
Junior Member
Join Date: Mar 2009
Old 03-28-2009 , 09:22   Re: Target glow
Reply With Quote #18

can u plz post a screenshot, thnx!
texas_pune is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 03-28-2009 , 12:19   Re: Target glow
Reply With Quote #19

Quote:
can u plz post a screenshot, thnx!
It's like a simple glow, but it shows to a player only when it aims at another target ( player ).

You won't understand anything from screenshots, you must see video or just test it on your server
TheRadiance is offline
Send a message via ICQ to TheRadiance
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 03-30-2009 , 00:53   Re: Target glow
Reply With Quote #20

L 03/29/2009 - 21:52:57: [AMXX] Displaying debug trace (plugin "target_glow.amxx")
L 03/29/2009 - 21:52:57: [AMXX] Run time error 4: index out of bounds
L 03/29/2009 - 21:52:57: [AMXX] [0] 39057.attach::ForwardTraceLinePost (line
letgoofmyeggs 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 16:00.


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