Browse Source

Added script and readme

Shane Spies 6 năm trước cách đây
mục cha
commit
ebcfc348b5
1 tập tin đã thay đổi với 26 bổ sung2 xóa
  1. 26 2
      README.md

+ 26 - 2
README.md

@@ -1,3 +1,27 @@
-# MecklenburgV_Script
+# Mecklenburg V Script
 
-AMX Script that's used with MecklenburgV_Final
+An AmxModX script that's used in combination of my other map, MecklenburgV to give some extended functionality.
+
+## Commands
+`amx_setlights <a-z>` : Set the brightness of outdoor lights, Z is the brightest while A is the dimmest
+`amx_togglefog` : Toggles gl_fog 0/1 on clients. Fog on makes the client have "daytime" while fog off reveals the nighttime skybox
+`amx_toggleoutdoorlights` : toggles the outdoor streetlights on/off. There's also a switch in the sewers that does the same thing.
+`amx_toggleday <0-24> : Sets the time of day, pretty much uses setlights, togglefog, and outdoor lights to accomplish the effect.
+`amx_togglerain <0-100> : sets the amount of rain to fall.
+`amx_toggleindoorlights` : toggles the indoor lights that are not part of a switch.
+
+## Building and Installing
+Drag and drop the SMA onto compile.exe in the amxmodx/scripting/ folder.
+Take the .amx file that was generated and then place it into your amxmodx/plugins directory
+add in MecklenburgV_Final.amx to the config/plugins.ini at the very bottom.
+
+## How does this all work?
+
+### The Lights
+Point lights that have an entity name inside of Half-Life 1 persist through the amx command setlights. Meaning that they stay the same intensity. I took advantage of that and named all of the lights that should be on during the dark and categorized them in the map to make this effect.
+
+### The Rain
+At the very top of the map, there's a moving door that blocks out the rain. Crude, but efficient since entity updates do not spark a change in the ts emitters.
+
+### Night/Day Effect
+Combination of the named lights and the fog. Ideally, we'd want to change the color of the fog to reflect the right time of day, but those used debug commands on clients to override their fog globally. We used to do that in the HWRP plugins, but I left that out of this. This plugin still changes the fog for the client, and that's still a bad thing to do, but the fog was really underused inside of most TS maps, so it doesn't really matter too much anyways.