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

Change light environment


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Creater RJ
Junior Member
Join Date: Jun 2017
Old 07-07-2017 , 01:02   Change light environment
Reply With Quote #1

How to change light_environment brightness value, set_lights change the brightness of all the lights i want to change only light_environment.
Creater RJ is offline
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 07-08-2017 , 07:21   Re: Change light environment
Reply With Quote #2

You want to change light of whole map or an environment area of a map ?
Abhinash is offline
Creater RJ
Junior Member
Join Date: Jun 2017
Old 07-08-2017 , 08:37   Re: Change light environment
Reply With Quote #3

Quote:
Originally Posted by Abhinash View Post
You want to change light of whole map or an environment area of a map ?
light_environment is an entity which is their in almost every map which provides light without spawning different lights on the map i want to change the brightness of that entity only and not the other lights, their is variable called brightness but dont know how to access it with amxx
Creater RJ is offline
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 07-08-2017 , 11:43   Re: Change light environment
Reply With Quote #4

I think you need to edit the map for that.
Abhinash is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-08-2017 , 11:52   Re: Change light environment
Reply With Quote #5

Edit the entity datas
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Creater RJ
Junior Member
Join Date: Jun 2017
Old 07-08-2017 , 13:07   Re: Change light environment
Reply With Quote #6

Quote:
Originally Posted by Natsheh View Post
Edit the entity datas
Yes, but how ? any specific argument or parameter ?
Creater RJ is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-09-2017 , 10:09   Re: Change light environment
Reply With Quote #7

Quote:
Originally Posted by Creater RJ View Post
Yes, but how ? any specific argument or parameter ?
You could use pfnKeyValue to hook for it's properties and use DispatchKeyValue to change it.
These are the options to change:

__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-09-2017 , 14:04   Re: Change light environment
Reply With Quote #8

download zombie plague 5.0 source code, look inside zp50_lights or something, you have there the stuff you need
__________________
Depresie is offline
SpawnerF
Member
Join Date: Apr 2017
Location: Morocco
Old 07-09-2017 , 16:29   Re: Change light environment
Reply With Quote #9

Quote:
Originally Posted by bibu View Post
-snip-
I tried it not working ... It doesn't even print the debug message if it's found or not ( the entity ), maybe it's not created and should be created?
__________________
XX was created just for giving evidence and not meant to damage public servers.
&We do not test on public servers.
Thank's.

Last edited by SpawnerF; 07-09-2017 at 16:29.
SpawnerF is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-09-2017 , 17:38   Re: Change light environment
Reply With Quote #10

Show your code..
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 09:58.


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