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

[CS:GO] Night, Fog, Nightvision and Light around the Player


Post New Thread Reply   
 
Thread Tools Display Modes
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 01-13-2016 , 13:38   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #11

Quote:
Originally Posted by Mitchell View Post
You need a transparent colored vtf.
I'll try to find something like that
Quote:
Originally Posted by Mitchell View Post
for the light, try parenting a "light_dynamic" above the player, I dont think there is any examples for that however.
Can you make that for me ? I don't know how to do it...
__________________
valio_skull is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-13-2016 , 13:41   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #12

Quote:
Originally Posted by valio_skull View Post
I'll try to find something like that

Can you make that for me ? I don't know how to do it...
I'm no where near home to test it, so probably not. Why not learn how to do these things instead of asking others for the code?
Mitchell is offline
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 01-13-2016 , 13:52   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #13

Quote:
Originally Posted by Mitchell View Post
I'm no where near home to test it, so probably not. Why not learn how to do these things instead of asking others for the code?
Quote:
Originally Posted by Mitchell View Post
I dont think there is any examples for that however.
...
I can't learn when I don't have any examples, it's sourcemod not amxmodx...
__________________
valio_skull is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-13-2016 , 14:41   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #14

Here's a plugin that creates a light_dynamic
https://forums.alliedmods.net/showthread.php?p=1658873

Try using the search function, as others ask similar questions and some plugins have valuable code that can be used as an example.

Last edited by Mitchell; 01-13-2016 at 14:44. Reason: really you should try learning how to code it and not stitch other code together.
Mitchell is offline
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 01-14-2016 , 11:18   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #15

Quote:
Originally Posted by Mitchell View Post
Here's a plugin that creates a light_dynamic
https://forums.alliedmods.net/showthread.php?p=1658873

Try using the search function, as others ask similar questions and some plugins have valuable code that can be used as an example.
It creates, but I don't know how to make it follow the player...
__________________
valio_skull is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-14-2016 , 11:27   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #16

Quote:
Originally Posted by valio_skull View Post
It creates, but I don't know how to make it follow the player...
PHP Code:
SetVariantString("!activator"); 
AcceptEntityInput(light"SetParent"clientlight0); 
Mitchell is offline
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 01-15-2016 , 11:20   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #17

No...sorry. I can't do it, i'm too noob, I tryed...I really tryed.
All I needed to do it's to create a light_dynamic that follows the player
__________________

Last edited by valio_skull; 01-15-2016 at 11:23.
valio_skull is offline
kredzer
Junior Member
Join Date: Dec 2014
Old 03-09-2016 , 07:35   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #18

Quote:
Originally Posted by valio_skull View Post
No...sorry. I can't do it, i'm too noob, I tryed...I really tryed.
All I needed to do it's to create a light_dynamic that follows the player
On the ground ?
__________________


kredzer is offline
TheWho
AlliedModders Donor
Join Date: Jul 2012
Old 03-10-2016 , 16:54   Re: [CS:GO] Night, Fog, Nightvision and Light around the Player
Reply With Quote #19

I wouldn't recommend using lots of light_dynamic parrented to the player since every player would need to calculate the light information which makes the client lag a lot, use a TransmitHook for that light_dynamic entity to avoid the lag but remember that a TransmitHook costs quite few cpu and could make the choke value high.
TheWho 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 04:01.


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