Skip to content

Instantly share code, notes, and snippets.

@chrishayesmu
chrishayesmu / gist:b8663c61531f6610f552466938623914
Last active October 17, 2021 17:14
Terror mission config
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Configuration for terror missions. Terror missions are assigned to countries in two ways:
;
; Targeted - A list is made of potential target countries. If all nations remain in the XCOM Project, the list contains every council
; nation; otherwise, the list contains countries based on the nations which have defected (often, but not always, on the same continent).
; Potential countries are then sorted by their panic, and by whether they have already been assigned a terror mission this month (countries
; that already have a terror this month are low priority). There is then a roll, set by the base game config variable AI_TERRORIZE_MOST_PANICKED.
; If the roll passes, the highest priority country is assigned the terror mission; otherwise, one of the top 3 countries receives the terror.
;
; This file allows configuration of the alien strategic AI, which determines how they choose what missions to go on each month.
; Everything in this file by default matches the vanilla Long War experience.
[XcomHighlander.Highlander_XGStrategyAI]
bForceFirstMonthInfiltration=true ; If true, the first month of the campaign will always see a country lost and an alien base built. The
; country is guaranteed not to be on the same continent as XCOM HQ. Much of the vanilla Long War balance
; is built around this infiltration occurring, so it is recommended to leave this as true.
ThreatDecreasePerMonth=2 ; How much XCOM's threat level decreases at the start of each month.
MaxThreatCarriedOverEachMonth=4 ; The maximum threat XCOM can carry over between months. Threat is first reduced by ThreatDecreasePerMonth,
MOD_NAME=So Others May Live mod
AUTHOR=swfdelicious
DESCRIPTION=Changes the amount of aim and will gained from So Others May Live per mission. The maximum number of times a unit can benefit from SOML is in DefaultGameCore.ini, in the variable COUNCIL_STAT_MAX. Note that COUNCIL_STAT_MAX is the max number of buffs, not the max stat increase. Ex: if you're giving +2 aim per mission and COUNCIL_STAT_MAX is 8, then the max stat increase is 16.
UPK_FILE=XComGame.upk
OBJECT=XGBattle.Done.AdditionalBonuses:AUTO
ALIAS=AIM_GAIN_PER_MISSION:<%b 2>
ALIAS=WILL_GAIN_PER_MISSION:<%b 2>
[BEFORE_CODE]
@chrishayesmu
chrishayesmu / ShowMeInHours.txt
Created September 21, 2021 18:00
Long War mod for timer UI in strat layer
MOD_NAME=Show Me In Hours
AUTHOR=swfdelicious
DESCRIPTION=Changes the threshold at which the UI shows you upcoming events in hours rather than days. Does not apply to the main event list, which always shows days, but only in submenus.
UPK_FILE=XComStrategyGame.upk
/******************************
* Configuration settings
*****************************/
// Configure the threshold at which to switch over from showing days to hours. You enter the number of hours
@chrishayesmu
chrishayesmu / FixOverlappingSmokeBugs.txt
Created September 21, 2021 06:52
Long War overlapping smoke bugs fix
MOD_NAME=Fix smoke buff being lost on overlapping volumes
AUTHOR=swfdelicious
DESCRIPTION=Fix for the smoke buff being lost when one smoke is lost while another should be active (either due to the first expiring due to time, or the unit moving between two overlapping smokes).
UPK_FILE=XComGame.upk
OBJECT=XGVolume.OnUnitLeft:AUTO
[REPLACEMENT_CODE]
/*(0x0000/0x0000)*/ 0F 00 <.iEffect> 25
/*(0x000B/0x0007)*/ [#label_0x000B]
// ==UserScript==
// @name plug.dj donation remover
// @namespace http://emancipatorbot.com/
// @version 0.2.1
// @description Gets rid of the box begging you to donate on plug.dj
// @match https://plug.dj/*
// @copyright 2015+, Chris Hayes
// ==/UserScript==
// Only run the script in the active window, not in any iframes or anything