Re: Target glow
I believe filtering in TraceLine and then doing it how I suggested above requires far less calls of is_user_alive on the whole.
|
Re: Target glow
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.
|
Re: Target glow
Updated - Code optimized.
|
Re: Target glow
doesnt compile
|
Re: Target glow
It compiles localy but for some reason the webcompiler fails.. You can use this webcompiler instead.
|
Re: Target glow
Works for me. Maybe it was only a temporary bug.
|
Re: Target glow
Yeah you're right. But it happens quite often. ^^
|
Re: Target glow
can u plz post a screenshot, thnx!
|
Re: Target glow
Quote:
You won't understand anything from screenshots, you must see video or just test it on your server :) |
Re: Target glow
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 |
All times are GMT -4. The time now is 07:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.