This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using ICities; | |
| using UnityEngine; | |
| namespace PropRotating | |
| { | |
| public class PropRotatingMod : LoadingExtensionBase, IUserMod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Prop Rotating Script | |
| // Control rotation axis, pivot and speed. | |
| // Run in asset editor and see effects in real time. | |
| // Animated faces must be vertex painted black! The rest reimains white. | |
| // Google how to do vertex color painting in your 3d software of choice! | |
| // The LODs are not rotating, they are like regular props. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Custom Light Effects Scripts | |
| // Adds custom light effects to props. | |
| // Multiple effects can be added, including vanilla ones. | |
| // The mod is not required to run the scripts or save the asset. | |
| // It's only required for loading them. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Text.RegularExpressions; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Reflection; | |
| using ICities; | |
| using UnityEngine; | |
| namespace LightEffects |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var asset = ToolsModifierControl.toolController.m_editPrefabInfo as VehicleInfo; | |
| var vec = new Vector4(0.0f, 5.0f, 0.0f, 0.0f); // (foundation, floor height, width, length) | |
| asset.m_material.SetVector("_FloorParams", vec); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Wind Turbine Scripts | |
| // Control wind turbine pivot, rotation mode, blade speed. | |
| // Use the wind turbine template when importing! | |
| // Vertex Colors | |
| // Parts of the mesh must be vertex painted accordingly: | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Anim UV Scripts | |
| // Create scrolling or multi-frame animations for props. | |
| // Run in asset editor and see effects in real time. | |
| // Animated faces must be vertex painted black! The rest reimains white. | |
| // Shades of gray animate slower, don't use unless you know what you're doing. | |
| // Google how to do vertex color painting in your 3d software of choice! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using ICities; | |
| using UnityEngine; | |
| namespace AnimUV | |
| { | |
| public class AnimUVMod : LoadingExtensionBase, IUserMod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //---------------------------------------------------------------- | |
| // Prop Variation Amount Changer | |
| //Set amount of prop variations. | |
| //If you are increasing the amount, previous variations will be preserved. | |
| //If decreasing, all variations will be removed! | |
| var variations = 12; //CHANGE THIS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using ColossalFramework.IO; | |
| using ColossalFramework.UI; | |
| using ICities; | |
| using System; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Xml.Serialization; | |
| using UnityEngine; | |
| namespace TransparentSelectors |