AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   AWP Glow (https://forums.alliedmods.net/showthread.php?t=10528)

v3x 02-21-2005 23:39

AWP Glow
 
1 Attachment(s)
Code:

/*############################################################
##
##        Name:                AWP Glow
##        Date:                Feb. 21, 2005
##
##        Description:        When a user has the awp out, he will
##                        glow the color of the team that he
##                        is on. T = Red, CT = Blue
##                        VERY noticable!
##
##
##        Cvars:       
##                awp_glow <1|0> - Turns the plugin on/off
##                awp_mapglow <1|0> - Turns the plugin on/off on awp_ maps
##
##
##        Other notes: This plugin is a slightly modded
##        version of my Various Weapon
##        Speeds plugin
##
##
##        To do:
##        - Add menu
##
##
##        Updates:
##        V1.01 - Added cvar awp_glow
##        v1.02 - Added cvar awp_mapglow + auto awp_ map checking
##       
##
*/

#include <amxmodx>
#include <cstrike>
#include <fun>

Screenshot:
http://ghw-amxx.com/images/awp_glow.jpg

silaz 02-22-2005 06:08

n1 plugin :)


How can I switch it on/off? For example of AWP map it would have to be off

:)

LizardKing 02-22-2005 08:10

it seems with that glow it would be Harder to kill an awper. maybe tone down that glow a little?

v3x 02-22-2005 08:36

Quote:

Originally Posted by silaz
n1 plugin :)


How can I switch it on/off? For example of AWP map it would have to be off

:)

I'll add a cvar.

Quote:

Originally Posted by LizardKing
it seems with that glow it would be Harder to kill an awper. maybe tone down that glow a little?

Ain't that hard to find the chest :). Also, sometimes the glow looks a little less intense. Mess around with the color/alpha settings until you get something you like..
Code:

//                  R    G    B    A
new iColorT[4]  = { 255, 100, 100, 255 } // Alpha = Visibility (255 = Visible, 0 = Invisible)
new iColorCT[4] = { 100, 100, 255, 255 } // Alpha at 100 = Less than Half Visible

(Hehe, edited this post about 100 times)

v3x 02-22-2005 19:17

** UPDATED **
 
Added cvar awp_glow <1|0>

silaz 02-22-2005 21:46

thx very n1 :)

Off Switching its Work but off Switching inGame its not work :)

v3x 02-22-2005 23:15

Quote:

Originally Posted by silaz
Off Switching its Work but off Switching inGame its not work :)

Huh? After you enter the cvar (amx_rcon awp_glow 1) into console, you gotta cycle through back to your awp again.

silaz 02-23-2005 01:46

yes

in console are this

Quote:

Invalid file type...skipping download of awp_glow
Invalid file type...skipping download of
ps. Sorry for my bad english

v3x 02-23-2005 02:42

No clue what that is, plugin seems to run fine. :?

xeroblood 02-23-2005 12:55

You could turn the plugin off automatically if it is an awp_ map...

Add this:
Code:
public plugin_cfg() {     new szCurrMap[64]     get_mapname( szCurrMap, 63 )     // If map is awp_ map, turn Glow Off..     if( containi( szCurrMap, "awp_" ) > -1 )         set_cvar_num( "awp_glow", 0 )         return PLUGIN_CONTINUE }

I hope that works, I didn't test it..


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

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