107 lines
4.1 KiB
Ucode
107 lines
4.1 KiB
Ucode
/**
|
|
* API that provides functions for working with chat.
|
|
* Copyright 2022 Anton Tarasenko
|
|
*------------------------------------------------------------------------------
|
|
* This file is part of Acedia.
|
|
*
|
|
* Acedia is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Acedia is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with Acedia. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
class OldSchoolZedsAddon extends FeatureConfig
|
|
perobjectconfig
|
|
config(LZOldSchoolZedsAddon);
|
|
|
|
// Fleshpound Chaingunner does not use incendiary rounds
|
|
var public config bool bDisableIncendiaryRounds;
|
|
// Fleshpound Chaingunner no longer has resistance to burned damagetype
|
|
var public config bool bDisableIncendiaryResistance;
|
|
// Explosive Pound is nerfed.
|
|
var public config bool bNerfEP;
|
|
// Bloat uses 2.5 puke behavior
|
|
var public config bool bEnableOldBloatPuke;
|
|
// Crawler uses 2.5 leaping behavior
|
|
var public config bool bEnableOldCrawlerBehaviour;
|
|
// Swaps Siren Scream Damage type, causing explosives to explode
|
|
var public config bool bEnableSirenNadeBoom;
|
|
// Use 2.5 Scrake behavior: No rage charging.
|
|
var public config bool bEnableOldScrakeBehavior;
|
|
// Use 2.5 Fleshpound behavior: No LoS rage and 10 second long rage.
|
|
var public config bool bEnableOldFleshpoundBehavior;
|
|
|
|
protected function HashTable ToData()
|
|
{
|
|
local HashTable data;
|
|
|
|
data = __().collections.EmptyHashTable();
|
|
data.SetBool(P("bDisableIncendiaryRounds"), bDisableIncendiaryRounds);
|
|
data.SetBool(
|
|
P("bDisableIncendiaryResistance"),
|
|
bDisableIncendiaryResistance);
|
|
data.SetBool(P("bNerfEP"), bNerfEP);
|
|
data.SetBool(P("bEnableOldBloatPuke"), bEnableOldBloatPuke);
|
|
data.SetBool(P("bEnableOldCrawlerBehaviour"), bEnableOldCrawlerBehaviour);
|
|
data.SetBool(P("bEnableSirenNadeBoom"), bEnableSirenNadeBoom);
|
|
data.SetBool(P("bEnableOldScrakeBehavior"), bEnableOldScrakeBehavior);
|
|
data.SetBool(
|
|
P("bEnableOldFleshpoundBehavior"),
|
|
bEnableOldFleshpoundBehavior);
|
|
return data;
|
|
}
|
|
|
|
protected function FromData(HashTable source)
|
|
{
|
|
if (source == none) {
|
|
return;
|
|
}
|
|
bDisableIncendiaryRounds
|
|
= source.GetBool(P("bDisableIncendiaryRounds"), false);
|
|
bDisableIncendiaryResistance
|
|
= source.GetBool(P("bDisableIncendiaryResistance"), false);
|
|
bNerfEP
|
|
= source.GetBool(P("bNerfEP"), false);
|
|
bEnableOldBloatPuke
|
|
= source.GetBool(P("bEnableOldBloatPuke"), false);
|
|
bEnableOldCrawlerBehaviour
|
|
= source.GetBool(P("bEnableOldCrawlerBehaviour"), false);
|
|
bEnableSirenNadeBoom
|
|
= source.GetBool(P("bEnableSirenNadeBoom"), false);
|
|
bEnableOldScrakeBehavior
|
|
= source.GetBool(P("bEnableOldScrakeBehavior"), false);
|
|
bEnableOldFleshpoundBehavior
|
|
= source.GetBool(P("bEnableOldFleshpoundBehavior"), false);
|
|
}
|
|
|
|
protected function DefaultIt()
|
|
{
|
|
bDisableIncendiaryRounds = false;
|
|
bDisableIncendiaryResistance = false;
|
|
bNerfEP = false;
|
|
bEnableOldBloatPuke = false;
|
|
bEnableOldCrawlerBehaviour = false;
|
|
bEnableSirenNadeBoom = false;
|
|
bEnableOldScrakeBehavior = false;
|
|
bEnableOldFleshpoundBehavior = false;
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
configName = "LZOldSchoolZedsAddon"
|
|
bDisableIncendiaryRounds = false
|
|
bDisableIncendiaryResistance = false
|
|
bNerfEP = false
|
|
bEnableOldBloatPuke = false
|
|
bEnableOldCrawlerBehaviour = false
|
|
bEnableSirenNadeBoom = false
|
|
bEnableOldScrakeBehavior = false
|
|
bEnableOldFleshpoundBehavior = false
|
|
} |