Sleepytime Orange Night

🌆Sleepytime Orange Night 💤🌙

vengeance1.jpg


Ever notice how people texting at night have that eerie blue glow?
Or wake up ready to write down the Next Great Idea, and get blinded by your computer screen?

During the day, computer screens look good—they're designed to look like the sun. But, at 9PM, 10PM, or 3AM, you probably shouldn't be looking at the sun.
- justgetflux.com (a blue-light filtering program)

This mod turns the Vengeance TOD (called "orange" in files) into a predominantly orange TOD, as it means less blue light.
Note that the Zin-controlled areas still have a "warm white" light scheme, see below spoiler.

vengeance2.jpg
vengeance3.jpg
vengeance4.jpg

vengeance6.jpg
vengeance5.jpg


vengeancea1.jpg
vengeancea2.jpg

vengeancea5.jpg
vengeancea4.jpg
vengeancea3.jpg

Files and Merging

orange_tod_override.todx - This is the main file. For a guide on editing it, click here.
external_cto_override.xtbl - This file tweaks lights in player-owned areas. Note that the values are slightly different in-game.
tweak_table.xtbl - This sets the colour of window lights in your conquered territories (and some other agreeable changes*, because committing scope creep just like other modders feels so, so good).
If you already have this file and want to merge, the changes are as follows (Ctrl + G, go to Line 272):
XML:
<Tweak_Table_Entry><Name>CTO_window_blue</Name><Value>75</Value><Description>Blue component of CTO window color, 0-255.</Description><_Editor><Category>Entries:City Takeover</Category></_Editor></Tweak_Table_Entry>
<Tweak_Table_Entry><Name>CTO_window_green</Name><Value>161</Value><Description>Green component of CTO window color, 0-255.</Description><_Editor><Category>Entries:City Takeover</Category></_Editor></Tweak_Table_Entry>
<Tweak_Table_Entry><Name>CTO_window_red</Name><Value>255</Value><Description>Red component of CTO window color, 0-255.</Description><_Editor><Category>Entries:City Takeover</Category></_Editor></Tweak_Table_Entry>

-- optionals folder (If you already have these files, you probably don't need them) --

default_district.xtbl - removes noise and vignette effect. I think this applies to all TODs.
sr3_city.lua - if you haven't completed the game's storyline yet, you can force the TOD with mission_override_push_temp("orange_tod_override.todx") inside function sr3_city_main().


This bit has gone long enough, no line numbers for you. Install Notepad++ and ctrl + f like everyone else. lol
XML:
    <Tweak_Table_Entry><Name>Busted_cost</Name><Value>0</Value><Description>The amount of cash you lose by being busted.</Description><_Editor><Category>Entries:Misc</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>CTO_window_blue</Name><Value>75</Value><Description>Blue component of CTO window color, 0-255.</Description><_Editor><Category>Entries:City Takeover</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>CTO_window_green</Name><Value>161</Value><Description>Green component of CTO window color, 0-255.</Description><_Editor><Category>Entries:City Takeover</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>CTO_window_red</Name><Value>255</Value><Description>Red component of CTO window color, 0-255.</Description><_Editor><Category>Entries:City Takeover</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Death_cost</Name><Value>0</Value><Description>The amount of cash you lose by dying.</Description><_Editor><Category>Entries:Misc</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Glitch_effect_lifetime</Name><Value>0</Value><Description>How long the glitch effect takes to animate and dissappear.</Description><_Editor><Category>Entries:City Takeover</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Hacking_respect_reward_base</Name><Value>250</Value><Description>Base respect reward for completing an instance of hacking</Description><_Editor><Category>Entries:City Takeover</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>HD_warden_interaction_dist</Name><Value>4.0</Value><Description>When a player walks within this distance, he will unequip his weapon and the melee icon will appear.</Description><_Editor><Category>Entries:AI:Warden:Downed</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>HD_warden_meter_const_decay</Name><Value>0.04</Value><Description>The decay increases by this much every second.</Description><_Editor><Category>Entries:AI:Warden:Downed</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>HD_warden_meter_damage_scale</Name><Value>0.75</Value><Description>During the beatdown, scale the co-op player's damage by this much and apply it to the meter.</Description><_Editor><Category>Entries:AI:Warden:Downed</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>HD_warden_meter_initial_decay</Name><Value>3.0</Value><Description>Number of points we decay per second.</Description><_Editor><Category>Entries:AI:Warden:Downed</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>HD_warden_meter_player_input_negative</Name><Value>0.051</Value><Description>When the player presses the incorrect button, decrease the meter by this much.  Multiplies for each incorrect press.</Description><_Editor><Category>Entries:AI:Warden:Downed</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Hotspot_cash</Name><Value>4500</Value><Description>Amount of cash to receeve when a hotspot is completed.</Description><_Editor><Category>Entries:Diversions</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Item_drop_enemy_gang_money_drop_chance</Name><Value>1.00</Value><Description>Probability that an enemy gang member will drop money when killed (between 0 and 1).</Description><_Editor><Category>Entries:Misc:Item Drop</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Item_drop_npc_health_drop_chance</Name><Value>0.01</Value><Description>Probability that an NPC will drop health when killed (between 0 and 1).</Description><_Editor><Category>Entries:Misc:Item Drop</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Max_vehicle_altitude</Name><Value>35300</Value><Description>The max altitude for vehicles in meters.</Description><_Editor><Category>Entries:Vehicles</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Player_friendly_fire_expire_time</Name><Value>-1</Value><Description>(sec) How long to be hostile against the player.</Description><_Editor><Category>Entries:AI:Follower</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Player_friendly_fire_threshold</Name><Value>1500</Value><Description>(HP) amount of damage taken from plaayer before going hostile.</Description><_Editor><Category>Entries:AI:Follower</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Vehicle_fast_doubletap_time_ms</Name><Value>350</Value><Description>The amount of time we wait for a double tap for vehicle entry or exit.</Description><_Editor><Category>Entries:Vehicles:Vehicle Interaction</Category></_Editor></Tweak_Table_Entry>
    <Tweak_Table_Entry><Name>Vehicle_impact_flinch_mph_warden</Name><Value>10</Value><Description>(MPH) minimum speed to cause a warden to flinch</Description><_Editor><Category>Entries:Vehicles:Vehicle Collision</Category></_Editor></Tweak_Table_Entry>
What do you mean you don't agree with disabling the friendly fire threshold? /s
(jokes aside the default value of Player_friendly_fire_expire_time is 6; Player_friendly_fire_threshold is 150 (so basically anything that hits them. I hope you like defectors! /s)

Credits

yukichigai for Bright Lights, Purple City, which inspired this, and for everything.
@Unapologetic Miscreant for great feedback, some of which I have yet to act upon; and for being a real one. <3
Sodium-vapour lamps and anyone involved in their creation/installation, for painting the most beautiful nights I've ever seen
Every one of you here, contributing in your own way and hopefully not breaking rule #1. Thank you!
 

Attachments

Back
Top