Raised This Month: $32 Target: $400
 8% 

Custom NVG Color


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-02-2007 , 09:06   Custom NVG Color
Reply With Quote #1

Custom NVG Color

Author : SAMURAI
Version : 0.3

Plugin details:
With this plugin enabled on your server, you will can change the color of NightVision. Sure, the color can be choosed by a cvar
I started to make this plugin 1 month ago, but doesen't worked correct, the custom light was partially colored. So with some help from regalis I maked this plugin.

Cvars:
- custom_nvg - Enable/Disable the plugin
1 = Enabled (default)
2 = Disabled

- custom_nvg_rgb - Set the color of Nightvision, in RGB format
Default : "255 0 255"

- custom_nvg_decay - Set the decay rate of light
Default = 10

- custom_nvg_radius - Set the radius of light from Nightvision
Default = 125

- custom_nvg_life - Set the life of the light
Default = 1


Required Modules:
- Cstrike

Credits:
- regalis and Alka for an example to check if an user have alearly an NVG

Changelog:
* 0.2 -> 0.3
- Added a new cvar: "custom_nvg_life" for change the life of light.
- Fixed a little bug on user origin.
- Fixed a bug on client disconnect.


* 0.1 -> 0.2
- Fixed bug, when start round it's start NVG Toggle.
- Changed the type of message from TE_DLIGHT.





Attached Files
File Type: sma Get Plugin or Get Source (custom_nvg.sma - 6492 views - 4.4 KB)

Last edited by SAMURAI16; 03-03-2007 at 12:01.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
 


Thread Tools
Display Modes

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 19:31.


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