Target glow
1 Attachment(s)
I used the "search" button, but couldn't find similiar plugin, sorry if plugin allready exists :)
Description: While a player (any player) aims at another player (target), target will glow only for aimer (glow color depends on team. CT - blue, T - red), and when a player stops aiming, glow will instantly removed :). Used AddToFullPack method. Modules: fakemeta |
Re: Target glow
You should use static because it's called quite often.
About the fade, it doesn't appear for me at all. Glow is removed instantly when stop aiming. Also I was wondering if it's not better to get the last hit (TR_pHit ) in FM_TraceLine instead of using get_user_aiming(). |
Re: Target glow
Quote:
|
Re: Target glow
Quote:
Quote:
|
Re: Target glow
You basically issue get_user_aiming way too often because you do it on updating against every single player in the game (31 times at max) wich is not necessary if you rely on FM_TraceLine. Even if there is minor difference it should not be noticeable in most cases.
|
Re: Target glow
Quote:
|
Re: Target glow
like in left 4 dead.. i had this idea a few days ago.. gg :crab:
|
Re: Target glow
Updated to 1.1:
- Added FM_TraceLine instead of get_user_aiming... |
Re: Target glow
This check is now redundant since you already require the target alive in TraceLine forward:
PHP Code:
PHP Code:
PHP Code:
|
Re: Target glow
In TraceLine, I would do only : g_iGlow[ id ] = get_tr2( trace, TR_pHit ); ; since you (should) filter with is_user_alive() in AddToFullPack.
|
All times are GMT -4. The time now is 20:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.