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

Custom NVG Color


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 6497 views - 4.4 KB)

Last edited by SAMURAI16; 03-03-2007 at 12:01.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Inogood
BANNED
Join Date: Feb 2007
Old 03-02-2007 , 09:17   Re: Custom NVG Color
Reply With Quote #2

nice^^
Inogood is offline
Skissors
Senior Member
Join Date: Jan 2007
Location: Due East of my backyard
Old 03-02-2007 , 10:00   Re: Custom NVG Color
Reply With Quote #3

hmmmm, what color is white?
__________________
-Karma if you read this post
current karma i lost track but its less than -70
please leave your name, I wont be offended.

IM BACK
Skissors is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-02-2007 , 10:01   Re: Custom NVG Color
Reply With Quote #4

"255 255 255"
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Skissors
Senior Member
Join Date: Jan 2007
Location: Due East of my backyard
Old 03-02-2007 , 10:17   Re: Custom NVG Color
Reply With Quote #5

or is it
http://forums.alliedmods.net/showthread.php?t=48185
__________________
-Karma if you read this post
current karma i lost track but its less than -70
please leave your name, I wont be offended.

IM BACK
Skissors is offline
manchimocyrus
Member
Join Date: Nov 2006
Location: Vitan
Old 03-02-2007 , 11:12   Re: Custom NVG Color
Reply With Quote #6

Nice man . You want a video demo on this.
manchimocyrus is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-02-2007 , 17:59   Re: Custom NVG Color
Reply With Quote #7

No need to pass the player into RunNVG and RunNVG2 because you can just subtract the 650035 or 650036 from the task id to get the id...
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-02-2007 , 18:23   Re: Custom NVG Color
Reply With Quote #8

You should probably send the messages as MSG_ONE_UNRELIABLE since you are sending them so frequently.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 03-02-2007 , 22:12   Re: Custom NVG Color
Reply With Quote #9

cool, hope this will be a good addition to Cheap Suits thermal goggles

a bug:
when u restart round, the nightvision stays on until u press nightvision key to turn it off, but u dont have a nightvision goggles
__________________

Last edited by Voi; 03-02-2007 at 22:18.
Voi is offline
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 03-02-2007 , 22:35   Re: Custom NVG Color
Reply With Quote #10

Very nice indeed, I'll give this a try and my server and use this for reference.
__________________
It's a mystery.
Mini_Midget 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 00:20.


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