Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
8b446c735f | |||
b54d2e6efc
|
|||
67f2007984
|
|||
e68dd3af38
|
|||
b7bb29a342
|
|||
47b02a78c4
|
6
.github/workflows/mega-linter.yml
vendored
6
.github/workflows/mega-linter.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- name: MegaLinter
|
- name: MegaLinter
|
||||||
id: ml
|
id: ml
|
||||||
uses: oxsecurity/megalinter@v6
|
uses: oxsecurity/megalinter@v7
|
||||||
env:
|
env:
|
||||||
VALIDATE_ALL_CODEBASE: true
|
VALIDATE_ALL_CODEBASE: true
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -68,5 +68,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
|
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
|
||||||
commit_message: "[MegaLinter] Apply linters fixes"
|
commit_message: "[MegaLinter] Apply linters fixes"
|
||||||
commit_user_name: megalinter-bot
|
commit_user_name: "github-actions"
|
||||||
commit_user_email: nicolas.vuillamy@ox.security
|
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
||||||
|
@ -35,6 +35,19 @@ var private Array<CTI_RepInfo> RepInfos;
|
|||||||
|
|
||||||
var private bool ReadyToSync;
|
var private bool ReadyToSync;
|
||||||
|
|
||||||
|
// To bypass "Booleans may not be out parameters" error
|
||||||
|
struct BoolWrapper
|
||||||
|
{
|
||||||
|
var bool Value;
|
||||||
|
|
||||||
|
structdefaultproperties
|
||||||
|
{
|
||||||
|
Value = false
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var private BoolWrapper DLCSkinUpdateRequired;
|
||||||
|
|
||||||
public simulated function bool SafeDestroy()
|
public simulated function bool SafeDestroy()
|
||||||
{
|
{
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
@ -174,10 +187,11 @@ private function PostInit()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Unlocker.static.UnlockDLC(KFGI, KFGRI, UnlockDLC, RemoveItems, AddItems, LogLevel))
|
if (Unlocker.static.UnlockDLC(KFGI, KFGRI, UnlockDLC, RemoveItems, AddItems, DLCSkinUpdateRequired, LogLevel))
|
||||||
{
|
{
|
||||||
`Log_Info("DLC unlocked");
|
`Log_Info("DLC unlocked");
|
||||||
}
|
}
|
||||||
|
`Log_Debug("DLCSkinUpdateRequired:" @ String(DLCSkinUpdateRequired.Value));
|
||||||
|
|
||||||
if (bPreloadContent)
|
if (bPreloadContent)
|
||||||
{
|
{
|
||||||
@ -280,7 +294,7 @@ public function bool CreateRepInfo(Controller C)
|
|||||||
|
|
||||||
if (RepInfo == None) return false;
|
if (RepInfo == None) return false;
|
||||||
|
|
||||||
RepInfo.PrepareSync(Self, KFPlayerController(C), LogLevel);
|
RepInfo.PrepareSync(Self, KFPlayerController(C), LogLevel, DLCSkinUpdateRequired.Value);
|
||||||
|
|
||||||
RepInfos.AddItem(RepInfo);
|
RepInfos.AddItem(RepInfo);
|
||||||
|
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
class CTI_RepInfo extends ReplicationInfo;
|
class CTI_RepInfo extends ReplicationInfo
|
||||||
|
dependson(WeaponReplacements);
|
||||||
|
|
||||||
const CAPACITY = 64; // max: 128
|
const CAPACITY = 64; // max: 128
|
||||||
|
|
||||||
const Trader = class'Trader';
|
const Trader = class'Trader';
|
||||||
const LocalMessage = class'CTI_LocalMessage';
|
const LocalMessage = class'CTI_LocalMessage';
|
||||||
|
const Replacements = class'WeaponReplacements';
|
||||||
|
|
||||||
struct ReplicationStruct
|
struct ReplicationStruct
|
||||||
{
|
{
|
||||||
@ -20,6 +22,7 @@ var private CTI CTI;
|
|||||||
var private E_LogLevel LogLevel;
|
var private E_LogLevel LogLevel;
|
||||||
|
|
||||||
var private KFPlayerController KFPC;
|
var private KFPlayerController KFPC;
|
||||||
|
var private KFPlayerReplicationInfo KFPRI;
|
||||||
var private KFGFxWidget_PartyInGame PartyInGameWidget;
|
var private KFGFxWidget_PartyInGame PartyInGameWidget;
|
||||||
var private GFxObject Notification;
|
var private GFxObject Notification;
|
||||||
|
|
||||||
@ -34,10 +37,12 @@ var private int WaitingGRILimit;
|
|||||||
var private ReplicationStruct RepData;
|
var private ReplicationStruct RepData;
|
||||||
var private Array<class<KFWeaponDefinition> > RepArray;
|
var private Array<class<KFWeaponDefinition> > RepArray;
|
||||||
|
|
||||||
|
var private bool SkinUpdateRequired;
|
||||||
|
|
||||||
replication
|
replication
|
||||||
{
|
{
|
||||||
if (bNetInitial && Role == ROLE_Authority)
|
if (bNetInitial && Role == ROLE_Authority)
|
||||||
LogLevel;
|
LogLevel, SkinUpdateRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
public simulated function bool SafeDestroy()
|
public simulated function bool SafeDestroy()
|
||||||
@ -104,13 +109,14 @@ private reliable client function Send(ReplicationStruct RD)
|
|||||||
Sync();
|
Sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function PrepareSync(CTI _CTI, KFPlayerController _KFPC, E_LogLevel _LogLevel)
|
public function PrepareSync(CTI _CTI, KFPlayerController _KFPC, E_LogLevel _LogLevel, bool _SkinUpdateRequired)
|
||||||
{
|
{
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
|
||||||
CTI = _CTI;
|
CTI = _CTI;
|
||||||
KFPC = _KFPC;
|
KFPC = _KFPC;
|
||||||
LogLevel = _LogLevel;
|
LogLevel = _LogLevel;
|
||||||
|
SkinUpdateRequired = _SkinUpdateRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
private simulated function Progress(int Value, int Size)
|
private simulated function Progress(int Value, int Size)
|
||||||
@ -155,8 +161,35 @@ private simulated function Finished()
|
|||||||
|
|
||||||
ShowReadyButton();
|
ShowReadyButton();
|
||||||
|
|
||||||
Cleanup();
|
if (SkinUpdateRequired)
|
||||||
SafeDestroy();
|
{
|
||||||
|
SetTimer(1.0f, true, nameof(UpdateSkinsDLC));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ClientCleanup();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private simulated function UpdateSkinsDLC()
|
||||||
|
{
|
||||||
|
local SWeapReplace WeapReplace;
|
||||||
|
|
||||||
|
`Log_Debug("Wait for spawn");
|
||||||
|
if (GetKFPRI() != None && KFPRI.bHasSpawnedIn)
|
||||||
|
{
|
||||||
|
foreach Replacements.default.DLC(WeapReplace)
|
||||||
|
{
|
||||||
|
if (WeapReplace.WeapParent.default.SkinItemId > 0 && WeapReplace.Weap.default.SkinItemId != WeapReplace.WeapParent.default.SkinItemId)
|
||||||
|
{
|
||||||
|
`Log_Debug("Update skin for:" @ String(WeapReplace.WeapDef) @ "SkinId:" @ WeapReplace.WeapParent.default.SkinItemId);
|
||||||
|
class'KFWeaponSkinList'.static.SaveWeaponSkin(WeapReplace.WeapDef, WeapReplace.WeapParent.default.SkinItemId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ClearTimer(nameof(UpdateSkinsDLC));
|
||||||
|
ClientCleanup();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private simulated function KFPlayerController GetKFPC()
|
private simulated function KFPlayerController GetKFPC()
|
||||||
@ -175,6 +208,19 @@ private simulated function KFPlayerController GetKFPC()
|
|||||||
return KFPC;
|
return KFPC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private simulated function KFPlayerReplicationInfo GetKFPRI()
|
||||||
|
{
|
||||||
|
`Log_Trace();
|
||||||
|
|
||||||
|
if (KFPRI != None) return KFPRI;
|
||||||
|
|
||||||
|
if (GetKFPC() == None) return None;
|
||||||
|
|
||||||
|
KFPRI = KFPlayerReplicationInfo(KFPC.PlayerReplicationInfo);
|
||||||
|
|
||||||
|
return KFPRI;
|
||||||
|
}
|
||||||
|
|
||||||
public reliable client function WriteToChatLocalized(
|
public reliable client function WriteToChatLocalized(
|
||||||
E_CTI_LocalMessageType LMT,
|
E_CTI_LocalMessageType LMT,
|
||||||
optional String HexColor,
|
optional String HexColor,
|
||||||
@ -284,7 +330,13 @@ private simulated function KeepNotification()
|
|||||||
NotificationPercent);
|
NotificationPercent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private reliable server function Cleanup()
|
private simulated function ClientCleanup()
|
||||||
|
{
|
||||||
|
ServerCleanup();
|
||||||
|
SafeDestroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
private reliable server function ServerCleanup()
|
||||||
{
|
{
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_AutoTurret extends KFWeapDef_AutoTurret
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_AutoTurret'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_AutoTurret'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_BladedPistol extends KFWeapDef_BladedPistol
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_BladedPistol'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_BladedPistol'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Blunderbuss extends KFWeapDef_Blunderbuss
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Blunderbuss'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Blunderbuss'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_ChainBat extends KFWeapDef_ChainBat
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_ChainBat'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_ChainBat'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_ChiappaRhino extends KFWeapDef_ChiappaRhino
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_ChiappaRhino'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_ChiappaRhino'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_ChiappaRhinoDual extends KFWeapDef_ChiappaRhinoDual
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_ChiappaRhinoDual'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_ChiappaRhinoDual'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_CompoundBow extends KFWeapDef_CompoundBow
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_CompoundBow'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_CompoundBow'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Doshinegun extends KFWeapDef_Doshinegun
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Doshinegun'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Doshinegun'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_DualBladed extends KFWeapDef_DualBladed
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_DualBladed'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_DualBladed'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_FAMAS extends KFWeapDef_FAMAS
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_FAMAS'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_FAMAS'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_G18 extends KFWeapDef_G18
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_G18'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_G18'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_G36C extends KFWeapDef_G36C
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_G36C'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_G36C'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_GravityImploder extends KFWeapDef_GravityImploder
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_GravityImploder'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_GravityImploder'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_HVStormCannon extends KFWeapDef_HVStormCannon
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_HVStormCannon'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_HVStormCannon'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_IonThruster extends KFWeapDef_IonThruster
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_IonThruster'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_IonThruster'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Mine_Reconstructor extends KFWeapDef_Mine_Reconstructor
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Mine_Reconstructor'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Mine_Reconstructor'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Minigun extends KFWeapDef_Minigun
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Minigun'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Minigun'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_MosinNagant extends KFWeapDef_MosinNagant
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_MosinNagant'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_MosinNagant'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_ParasiteImplanter extends KFWeapDef_ParasiteImplanter
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_ParasiteImplanter'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_ParasiteImplanter'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Pistol_DualG18 extends KFWeapDef_Pistol_DualG18
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Pistol_DualG18'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Pistol_DualG18'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Pistol_G18C extends KFWeapDef_Pistol_G18C
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Pistol_G18C'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Pistol_G18C'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Rifle_FrostShotgunAxe extends KFWeapDef_Rifle_FrostShotgunAxe
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Rifle_FrostShotgunAxe'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Rifle_FrostShotgunAxe'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Scythe extends KFWeapDef_Scythe
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Scythe'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Scythe'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Shotgun_S12 extends KFWeapDef_Shotgun_S12
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Shotgun_S12'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Shotgun_S12'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_ShrinkRayGun extends KFWeapDef_ShrinkRayGun
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_ShrinkRayGun'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_ShrinkRayGun'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_ThermiteBore extends KFWeapDef_ThermiteBore
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_ThermiteBore'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_ThermiteBore'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_ZedMKIII extends KFWeapDef_ZedMKIII
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_ZedMKIII'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_ZedMKIII'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -3,9 +3,7 @@ class CTI_WeapDef_Zweihander extends KFWeapDef_Zweihander
|
|||||||
|
|
||||||
static function String GetItemLocalization(String KeyName)
|
static function String GetItemLocalization(String KeyName)
|
||||||
{
|
{
|
||||||
local Array<String> Strings;
|
return class'KFGame.KFWeapDef_Zweihander'.static.GetItemLocalization(KeyName);
|
||||||
ParseStringIntoArray(class'KFGame.KFWeapDef_Zweihander'.default.WeaponClassPath, Strings, ".", true);
|
|
||||||
return Localize(Strings[1], KeyName, Strings[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
class Unlocker extends Object
|
class Unlocker extends Object
|
||||||
|
dependson(WeaponReplacements)
|
||||||
abstract;
|
abstract;
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
@ -6,9 +7,8 @@ class Unlocker extends Object
|
|||||||
// without replacing KFGFxMoviePlayer_Manager
|
// without replacing KFGFxMoviePlayer_Manager
|
||||||
// but how? 🤔
|
// but how? 🤔
|
||||||
|
|
||||||
const Trader = class'Trader';
|
const Trader = class'Trader';
|
||||||
|
const Replacements = class'WeaponReplacements';
|
||||||
var private const Array<class<KFWeaponDefinition> > WeapDefDLCReplacements;
|
|
||||||
|
|
||||||
public static function bool IsValidTypeUnlockDLC(String UnlockType, E_LogLevel LogLevel)
|
public static function bool IsValidTypeUnlockDLC(String UnlockType, E_LogLevel LogLevel)
|
||||||
{
|
{
|
||||||
@ -33,6 +33,7 @@ public static function bool UnlockDLC(
|
|||||||
String UnlockType,
|
String UnlockType,
|
||||||
out Array<class<KFWeaponDefinition> > RemoveItems,
|
out Array<class<KFWeaponDefinition> > RemoveItems,
|
||||||
out Array<class<KFWeaponDefinition> > AddItems,
|
out Array<class<KFWeaponDefinition> > AddItems,
|
||||||
|
out BoolWrapper DLCSkinUpdateRequired,
|
||||||
E_LogLevel LogLevel)
|
E_LogLevel LogLevel)
|
||||||
{
|
{
|
||||||
`Log_TraceStatic();
|
`Log_TraceStatic();
|
||||||
@ -41,12 +42,14 @@ public static function bool UnlockDLC(
|
|||||||
{
|
{
|
||||||
case "true":
|
case "true":
|
||||||
case "auto":
|
case "auto":
|
||||||
return Auto(KFGI, KFGRI, RemoveItems, AddItems, LogLevel);
|
return Auto(KFGI, KFGRI, RemoveItems, AddItems, DLCSkinUpdateRequired, LogLevel);
|
||||||
|
|
||||||
case "replaceweapons":
|
case "replaceweapons":
|
||||||
|
DLCSkinUpdateRequired.Value = true;
|
||||||
return ReplaceWeapons(KFGRI, RemoveItems, AddItems, LogLevel);
|
return ReplaceWeapons(KFGRI, RemoveItems, AddItems, LogLevel);
|
||||||
|
|
||||||
case "replacefilter":
|
case "replacefilter":
|
||||||
|
DLCSkinUpdateRequired.Value = false;
|
||||||
return ReplaceFilter(KFGI, LogLevel);
|
return ReplaceFilter(KFGI, LogLevel);
|
||||||
|
|
||||||
case "false":
|
case "false":
|
||||||
@ -60,6 +63,7 @@ private static function bool Auto(
|
|||||||
KFGameReplicationInfo KFGRI,
|
KFGameReplicationInfo KFGRI,
|
||||||
out Array<class<KFWeaponDefinition> > RemoveItems,
|
out Array<class<KFWeaponDefinition> > RemoveItems,
|
||||||
out Array<class<KFWeaponDefinition> > AddItems,
|
out Array<class<KFWeaponDefinition> > AddItems,
|
||||||
|
out BoolWrapper DLCSkinUpdateRequired,
|
||||||
E_LogLevel LogLevel)
|
E_LogLevel LogLevel)
|
||||||
{
|
{
|
||||||
local bool CustomGFxManager;
|
local bool CustomGFxManager;
|
||||||
@ -79,10 +83,12 @@ private static function bool Auto(
|
|||||||
|
|
||||||
if (CustomGFxManager)
|
if (CustomGFxManager)
|
||||||
{
|
{
|
||||||
|
DLCSkinUpdateRequired.Value = true;
|
||||||
return ReplaceWeapons(KFGRI, RemoveItems, AddItems, LogLevel);
|
return ReplaceWeapons(KFGRI, RemoveItems, AddItems, LogLevel);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
DLCSkinUpdateRequired.Value = false;
|
||||||
return ReplaceFilter(KFGI, LogLevel);
|
return ReplaceFilter(KFGI, LogLevel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -100,6 +106,8 @@ private static function bool ReplaceWeapons(
|
|||||||
|
|
||||||
`Log_TraceStatic();
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
`Log_Debug("Unlock by replace weapons");
|
||||||
|
|
||||||
Unlock = false;
|
Unlock = false;
|
||||||
PartialUnlock = false;
|
PartialUnlock = false;
|
||||||
|
|
||||||
@ -139,15 +147,15 @@ private static function bool ReplaceWeapons(
|
|||||||
|
|
||||||
private static function class<KFWeaponDefinition> PickReplacementWeapDefDLC(class<KFWeaponDefinition> WeapDefDLC, E_LogLevel LogLevel)
|
private static function class<KFWeaponDefinition> PickReplacementWeapDefDLC(class<KFWeaponDefinition> WeapDefDLC, E_LogLevel LogLevel)
|
||||||
{
|
{
|
||||||
local class<KFWeaponDefinition> WeapDef;
|
local SWeapReplace WeapReplace;
|
||||||
|
|
||||||
`Log_TraceStatic();
|
`Log_TraceStatic();
|
||||||
|
|
||||||
foreach default.WeapDefDLCReplacements(WeapDef)
|
foreach Replacements.default.DLC(WeapReplace)
|
||||||
{
|
{
|
||||||
if (ClassIsChildOf(WeapDef, WeapDefDLC))
|
if (ClassIsChildOf(WeapReplace.WeapDef, WeapDefDLC))
|
||||||
{
|
{
|
||||||
return WeapDef;
|
return WeapReplace.WeapDef;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,6 +166,8 @@ private static function bool ReplaceFilter(KFGameInfo KFGI, E_LogLevel LogLevel)
|
|||||||
{
|
{
|
||||||
`Log_TraceStatic();
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
`Log_Debug("Unlock by replace filter");
|
||||||
|
|
||||||
if (KFGI == None) return false;
|
if (KFGI == None) return false;
|
||||||
|
|
||||||
if (KFGameInfo_VersusSurvival(KFGI) != None)
|
if (KFGameInfo_VersusSurvival(KFGI) != None)
|
||||||
@ -174,32 +184,5 @@ private static function bool ReplaceFilter(KFGameInfo KFGI, E_LogLevel LogLevel)
|
|||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
{
|
{
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_AutoTurret')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_BladedPistol')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Blunderbuss')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_ChainBat')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_ChiappaRhino')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_ChiappaRhinoDual')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_CompoundBow')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Doshinegun')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_DualBladed')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_FAMAS')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_G18')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_G36C')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_GravityImploder')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_HVStormCannon')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_IonThruster')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Mine_Reconstructor')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Minigun')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_MosinNagant')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_ParasiteImplanter')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Pistol_DualG18')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Pistol_G18C')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Rifle_FrostShotgunAxe')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Scythe')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Shotgun_S12')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_ShrinkRayGun')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_ThermiteBore')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_ZedMKIII')
|
|
||||||
WeapDefDLCReplacements.Add(class'CTI_WeapDef_Zweihander')
|
|
||||||
}
|
}
|
||||||
|
183
CTI/Classes/WeaponReplacements.uc
Normal file
183
CTI/Classes/WeaponReplacements.uc
Normal file
@ -0,0 +1,183 @@
|
|||||||
|
class WeaponReplacements extends Object;
|
||||||
|
|
||||||
|
struct SWeapReplace
|
||||||
|
{
|
||||||
|
var const class<KFWeaponDefinition> WeapDef;
|
||||||
|
var const class<KFWeaponDefinition> WeapDefParent;
|
||||||
|
var const class<KFWeapon> Weap;
|
||||||
|
var const class<KFWeapon> WeapParent;
|
||||||
|
};
|
||||||
|
|
||||||
|
var public const Array<SWeapReplace> DLC;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_AutoTurret',
|
||||||
|
WeapDefParent=class'KFWeapDef_AutoTurret',
|
||||||
|
Weap=class'CTI_Weap_AutoTurret',
|
||||||
|
WeapParent=class'KFWeap_AutoTurret'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_BladedPistol',
|
||||||
|
WeapDefParent=class'KFWeapDef_BladedPistol',
|
||||||
|
Weap=class'CTI_Weap_Pistol_Bladed',
|
||||||
|
WeapParent=class'KFWeap_Pistol_Bladed'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Blunderbuss',
|
||||||
|
WeapDefParent=class'KFWeapDef_Blunderbuss',
|
||||||
|
Weap=class'CTI_Weap_Pistol_Blunderbuss',
|
||||||
|
WeapParent=class'KFWeap_Pistol_Blunderbuss'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_ChainBat',
|
||||||
|
WeapDefParent=class'KFWeapDef_ChainBat',
|
||||||
|
Weap=class'CTI_Weap_Blunt_ChainBat',
|
||||||
|
WeapParent=class'KFWeap_Blunt_ChainBat'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_ChiappaRhino',
|
||||||
|
WeapDefParent=class'KFWeapDef_ChiappaRhino',
|
||||||
|
Weap=class'CTI_Weap_Pistol_ChiappaRhino',
|
||||||
|
WeapParent=class'KFWeap_Pistol_ChiappaRhino'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_ChiappaRhinoDual',
|
||||||
|
WeapDefParent=class'KFWeapDef_ChiappaRhinoDual',
|
||||||
|
Weap=class'CTI_Weap_Pistol_ChiappaRhinoDual',
|
||||||
|
WeapParent=class'KFWeap_Pistol_ChiappaRhinoDual'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_CompoundBow',
|
||||||
|
WeapDefParent=class'KFWeapDef_CompoundBow',
|
||||||
|
Weap=class'CTI_Weap_Bow_CompoundBow',
|
||||||
|
WeapParent=class'KFWeap_Bow_CompoundBow'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Doshinegun',
|
||||||
|
WeapDefParent=class'KFWeapDef_Doshinegun',
|
||||||
|
Weap=class'CTI_Weap_AssaultRifle_Doshinegun',
|
||||||
|
WeapParent=class'KFWeap_AssaultRifle_Doshinegun'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_DualBladed',
|
||||||
|
WeapDefParent=class'KFWeapDef_DualBladed',
|
||||||
|
Weap=class'CTI_Weap_Pistol_DualBladed',
|
||||||
|
WeapParent=class'KFWeap_Pistol_DualBladed'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_FAMAS',
|
||||||
|
WeapDefParent=class'KFWeapDef_FAMAS',
|
||||||
|
Weap=class'CTI_Weap_AssaultRifle_FAMAS',
|
||||||
|
WeapParent=class'KFWeap_AssaultRifle_FAMAS'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_G18',
|
||||||
|
WeapDefParent=class'KFWeapDef_G18',
|
||||||
|
Weap=class'CTI_Weap_SMG_G18',
|
||||||
|
WeapParent=class'KFWeap_SMG_G18'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_G36C',
|
||||||
|
WeapDefParent=class'KFWeapDef_G36C',
|
||||||
|
Weap=class'CTI_Weap_AssaultRifle_G36C',
|
||||||
|
WeapParent=class'KFWeap_AssaultRifle_G36C'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_GravityImploder',
|
||||||
|
WeapDefParent=class'KFWeapDef_GravityImploder',
|
||||||
|
Weap=class'CTI_Weap_GravityImploder',
|
||||||
|
WeapParent=class'KFWeap_GravityImploder'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_HVStormCannon',
|
||||||
|
WeapDefParent=class'KFWeapDef_HVStormCannon',
|
||||||
|
Weap=class'CTI_Weap_HVStormCannon',
|
||||||
|
WeapParent=class'KFWeap_HVStormCannon'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_IonThruster',
|
||||||
|
WeapDefParent=class'KFWeapDef_IonThruster',
|
||||||
|
Weap=class'CTI_Weap_Edged_IonThruster',
|
||||||
|
WeapParent=class'KFWeap_Edged_IonThruster'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Mine_Reconstructor',
|
||||||
|
WeapDefParent=class'KFWeapDef_Mine_Reconstructor',
|
||||||
|
Weap=class'CTI_Weap_Mine_Reconstructor',
|
||||||
|
WeapParent=class'KFWeap_Mine_Reconstructor'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Minigun',
|
||||||
|
WeapDefParent=class'KFWeapDef_Minigun',
|
||||||
|
Weap=class'CTI_Weap_Minigun',
|
||||||
|
WeapParent=class'KFWeap_Minigun'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_MosinNagant',
|
||||||
|
WeapDefParent=class'KFWeapDef_MosinNagant',
|
||||||
|
Weap=class'CTI_Weap_Rifle_MosinNagant',
|
||||||
|
WeapParent=class'KFWeap_Rifle_MosinNagant'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_ParasiteImplanter',
|
||||||
|
WeapDefParent=class'KFWeapDef_ParasiteImplanter',
|
||||||
|
Weap=class'CTI_Weap_Rifle_ParasiteImplanter',
|
||||||
|
WeapParent=class'KFWeap_Rifle_ParasiteImplanter'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Pistol_DualG18',
|
||||||
|
WeapDefParent=class'KFWeapDef_Pistol_DualG18',
|
||||||
|
Weap=class'CTI_Weap_Pistol_DualG18',
|
||||||
|
WeapParent=class'KFWeap_Pistol_DualG18'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Pistol_G18C',
|
||||||
|
WeapDefParent=class'KFWeapDef_Pistol_G18C',
|
||||||
|
Weap=class'CTI_Weap_Pistol_G18C',
|
||||||
|
WeapParent=class'KFWeap_Pistol_G18C'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Rifle_FrostShotgunAxe',
|
||||||
|
WeapDefParent=class'KFWeapDef_Rifle_FrostShotgunAxe',
|
||||||
|
Weap=class'CTI_Weap_Rifle_FrostShotgunAxe',
|
||||||
|
WeapParent=class'KFWeap_Rifle_FrostShotgunAxe'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Scythe',
|
||||||
|
WeapDefParent=class'KFWeapDef_Scythe',
|
||||||
|
Weap=class'CTI_Weap_Edged_Scythe',
|
||||||
|
WeapParent=class'KFWeap_Edged_Scythe'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Shotgun_S12',
|
||||||
|
WeapDefParent=class'KFWeapDef_Shotgun_S12',
|
||||||
|
Weap=class'CTI_Weap_Shotgun_S12',
|
||||||
|
WeapParent=class'KFWeap_Shotgun_S12'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_ShrinkRayGun',
|
||||||
|
WeapDefParent=class'KFWeapDef_ShrinkRayGun',
|
||||||
|
Weap=class'CTI_Weap_ShrinkRayGun',
|
||||||
|
WeapParent=class'KFWeap_ShrinkRayGun'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_ThermiteBore',
|
||||||
|
WeapDefParent=class'KFWeapDef_ThermiteBore',
|
||||||
|
Weap=class'CTI_Weap_RocketLauncher_ThermiteBore',
|
||||||
|
WeapParent=class'KFWeap_RocketLauncher_ThermiteBore'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_ZedMKIII',
|
||||||
|
WeapDefParent=class'KFWeapDef_ZedMKIII',
|
||||||
|
Weap=class'CTI_Weap_ZedMKIII',
|
||||||
|
WeapParent=class'KFWeap_ZedMKIII'
|
||||||
|
)})
|
||||||
|
DLC.Add({(
|
||||||
|
WeapDef=class'CTI_WeapDef_Zweihander',
|
||||||
|
WeapDefParent=class'KFWeapDef_Zweihander',
|
||||||
|
Weap=class'CTI_Weap_Edged_Zweihander',
|
||||||
|
WeapParent=class'KFWeap_Edged_Zweihander'
|
||||||
|
)})
|
||||||
|
}
|
@ -69,7 +69,7 @@ example: [b]Item=KFGame.KFWeapDef_Mac10[/b] will remove MAC10 from sale.
|
|||||||
[*]Set [b]bDLC=True[/b] to remove DLC items.
|
[*]Set [b]bDLC=True[/b] to remove DLC items.
|
||||||
|
|
||||||
[*]Use [b][CTI.AddItems][/b] to add items to the trader inventory.
|
[*]Use [b][CTI.AddItems][/b] to add items to the trader inventory.
|
||||||
example: [b]Item=WeaponPack.KFWeapDef_XM25[/b] will add [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1147408497]XM25[/url] to sale.
|
example: [b]Item=WeaponPackExt.KFWeapDef_XM25[/b] will add [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1147408497]XM25[/url] to sale.
|
||||||
[/list]
|
[/list]
|
||||||
|
|
||||||
❗️ Note that if you need an empty list anywhere (for example, you don't want to delete some of the traders's weapons), leave at least one line there:
|
❗️ Note that if you need an empty list anywhere (for example, you don't want to delete some of the traders's weapons), leave at least one line there:
|
||||||
|
Reference in New Issue
Block a user