Author Topic: Environment Control Events - Now on RTB  (Read 5937 times)

Contains many output events for changing environment settings
All events require super admin to place on a brick, but may then be activated by anyone

All events are accessed under the brick class

Contains:
env_sky - Change the skybox
env_water - Change the water texture
env_ground - Change the ground texture
env_sunational socialistmuth
env_sunElevation
env_sunDirectColor
env_sunAmbientColor
env_sunShadowColor
env_sunFlareColor
env_sunFlareSize
env_visibleDistance
env_fogDistance
env_fogColor
env_skyColor
env_waterColor
env_waterHeight (suggest pairing with onBrickEnterWater and onBrickExitWater)
env_underWaterColor
env_waterScrollX
env_waterScrollY
env_groundColor
env_groundScrollX
env_groundScrollY
env_vignetteColor

>>>View on RTB<<<

For events that contain a drop down menu containing 'Set' and 'Increase/Decrease' :
Set, as the name implies, sets the value to what you put.
Increase/decrease increases if you put a positive number, decreases with a negative number
waterHeight also contains an option named 'AtBrick' - this causes the water to rise to directly at the brick's bottom edge. Entering a number in the box with 'AtBrick' selected will cause the water to go to that amount above or below the brick's bottom edge


EDIT: Found a pre-existing admin-only event system after I wrote my own. Oh well, I
enjoyed figuring out more about the event system to write my own, and I like how much more compact it is.
« Last Edit: August 13, 2012, 02:38:31 AM by Headcrab Zombie »


didn't look yet
i presume this utilizes the built in servercmds?


didn't look yet
i presume this utilizes the built in servercmds?
Yes, with a fake client

Wow nice, I knew it wouldn't be long until something like this was released.

Question, is it possible to make input events for the environment? Like "onMorning" or "onNight?"

Wow nice, I knew it wouldn't be long until something like this was released.

Question, is it possible to make input events for the environment? Like "onMorning" or "onNight?"
Day/Night events are already made by Lugnut - http://forum.blockland.us/index.php?topic=204001.0

The only other input events I could think of are water level events, and are linked to in the OP

suggestion: setVigenette on the client

Nice, even more customization for my CRPG

Bump with update: Modfied the admin only event system to include a warning to clients upon joining that some events are restricted, and /restrictedEvents to view which.
This version will be uploaded to RTB, upon approval, download link in OP will be replaced with RTB download link.

suggestion: setVigenette on the client
I may do it, but I believe it's not part of the scope of this add-on
« Last Edit: August 12, 2012, 09:34:53 PM by Headcrab Zombie »

Yes, with a fake client

why do you need a fake client
events always have a client

why do you need a fake client
events always have a client
Because I want non-admins to be able to activate them.
All events require super admin to place on a brick, but may then be activated by anyone
The only other thing I could think of was to temporarily set %client.isAdmin to true, call the serverCmd, and set it back.




EDIT: Changed the way colors are inputted. Now uses three boxes, for red blue and green, each a number between 1 and 100, and a slider for alpha, if applicable
« Last Edit: August 12, 2012, 11:14:58 PM by Headcrab Zombie »

This is awesome. Thank you!

Can you make it support decimals please?

Can you make it support decimals please?
Wtf what's will all these things I should have done but didn't even think of.
I have stuff to do but I'll do that once I get back (an hour or two)