Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
3580be6ea7 | |||
09561e64cc | |||
69162ab37b | |||
f2bd4d165c | |||
94cf543d41 | |||
45d327fc81 | |||
6f06033e3c | |||
0cbd5deb47 | |||
d6a64d6932 | |||
406c785cf1 | |||
f99b8cdb39 | |||
227c5f470f | |||
d6db549eaa | |||
cc6482a9ed | |||
334fe3e9ba | |||
94a4368842 | |||
22862616c0 | |||
6c3d9f094e | |||
8c3ed68acb |
33
.editorconfig
Normal file
33
.editorconfig
Normal file
@ -0,0 +1,33 @@
|
||||
root = true
|
||||
|
||||
# Global
|
||||
[*]
|
||||
indent_style = unset
|
||||
indent_size = 4
|
||||
tab_width = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = unset
|
||||
|
||||
# Unreal Engine 3 / Source
|
||||
[*.uc]
|
||||
indent_style = tab
|
||||
|
||||
[*.{uci,upkg}]
|
||||
|
||||
# Unreal Engine 3 / i18n
|
||||
[*.{chn,cht,cze,dan,deu,dut,esl,esn,fra,frc,hun,int,ita,jpn,kor,pol,por,ptb,rus,tur,ukr}]
|
||||
charset = utf-16le
|
||||
|
||||
# Other
|
||||
[*.md]
|
||||
indent_style = space
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.{txt,cfg,conf}]
|
||||
indent_style = tab
|
72
.github/workflows/mega-linter.yml
vendored
Normal file
72
.github/workflows/mega-linter.yml
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
---
|
||||
name: MegaLinter
|
||||
|
||||
permissions: read-all
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
env:
|
||||
APPLY_FIXES: none
|
||||
APPLY_FIXES_EVENT: pull_request
|
||||
APPLY_FIXES_MODE: commit
|
||||
DISABLE: SPELL
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: MegaLinter
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: MegaLinter
|
||||
id: ml
|
||||
uses: oxsecurity/megalinter@v6
|
||||
env:
|
||||
VALIDATE_ALL_CODEBASE: true
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Archive production artifacts
|
||||
if: ${{ success() }} || ${{ failure() }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: MegaLinter reports
|
||||
path: |
|
||||
megalinter-reports
|
||||
mega-linter.log
|
||||
|
||||
- name: Create Pull Request with applied fixes
|
||||
id: cpr
|
||||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
||||
commit-message: "[MegaLinter] Apply linters automatic fixes"
|
||||
title: "[MegaLinter] Apply linters automatic fixes"
|
||||
labels: bot
|
||||
- name: Create PR output
|
||||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
||||
run: |
|
||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||
|
||||
- name: Prepare commit
|
||||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
||||
run: sudo chown -Rc $UID .git/
|
||||
- name: Commit and push applied linter fixes
|
||||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
|
||||
commit_message: "[MegaLinter] Apply linters fixes"
|
||||
commit_user_name: megalinter-bot
|
||||
commit_user_email: nicolas.vuillamy@ox.security
|
@ -1,7 +1,7 @@
|
||||
class CTI extends Info
|
||||
config(CTI);
|
||||
|
||||
const LatestVersion = 2;
|
||||
const LatestVersion = 3;
|
||||
|
||||
const CfgRemoveItems = class'RemoveItems';
|
||||
const CfgAddItems = class'AddItems';
|
||||
@ -94,6 +94,8 @@ private function PreInit()
|
||||
case 1:
|
||||
bOfficialWeaponsList = false;
|
||||
|
||||
case 2:
|
||||
|
||||
case MaxInt:
|
||||
`Log_Info("Config updated to version" @ LatestVersion);
|
||||
break;
|
||||
@ -180,7 +182,14 @@ private function PostInit()
|
||||
Preload(AddItems);
|
||||
}
|
||||
|
||||
Trader.static.ModifyTrader(KFGRI, RemoveItems, AddItems, CfgRemoveItems.default.bAll, LogLevel);
|
||||
Trader.static.ModifyTrader(
|
||||
KFGRI,
|
||||
RemoveItems,
|
||||
AddItems,
|
||||
CfgRemoveItems.default.bAll,
|
||||
CfgRemoveItems.default.bHRG,
|
||||
CfgRemoveItems.default.bDLC,
|
||||
LogLevel);
|
||||
|
||||
ReadyToSync = true;
|
||||
|
||||
@ -273,7 +282,9 @@ public function bool CreateRepInfo(Controller C)
|
||||
LogLevel,
|
||||
RemoveItems,
|
||||
AddItems,
|
||||
CfgRemoveItems.default.bAll);
|
||||
CfgRemoveItems.default.bAll,
|
||||
CfgRemoveItems.default.bHRG,
|
||||
CfgRemoveItems.default.bDLC);
|
||||
|
||||
RepInfos.AddItem(RepInfo);
|
||||
|
||||
|
@ -35,7 +35,7 @@ public function AddMutator(Mutator Mut)
|
||||
if (Mut == Self) return;
|
||||
|
||||
if (Mut.Class == Class)
|
||||
Mut.Destroy();
|
||||
CTIMut(Mut).SafeDestroy();
|
||||
else
|
||||
Super.AddMutator(Mut);
|
||||
}
|
||||
@ -56,5 +56,5 @@ public function NotifyLogout(Controller C)
|
||||
|
||||
DefaultProperties
|
||||
{
|
||||
|
||||
GroupNames.Add("TraderItems")
|
||||
}
|
@ -11,7 +11,7 @@ function bool IsItemFiltered(STraderItem Item, optional bool bDebug)
|
||||
if (Item.WeaponDef.default.PlatformRestriction != PR_All && class'KFUnlockManager'.static.IsPlatformRestricted(Item.WeaponDef.default.PlatformRestriction))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
defaultproperties
|
||||
|
@ -4,17 +4,14 @@ class CTI_LocalMessage extends Object
|
||||
var const String SyncItemsDefault;
|
||||
var private localized String SyncItems;
|
||||
|
||||
var const String SyncFinishedDefault;
|
||||
var private localized String SyncFinished;
|
||||
|
||||
var const String WaitingGRIDefault;
|
||||
var private localized String WaitingGRI;
|
||||
|
||||
var const String IncompatibleGRIDefault;
|
||||
var private localized String IncompatibleGRI;
|
||||
|
||||
var const String DisconnectDefault;
|
||||
var private localized String Disconnect;
|
||||
var const String IncompatibleGRIWarningDefault;
|
||||
var private localized String IncompatibleGRIWarning;
|
||||
|
||||
var const String SecondsShortDefault;
|
||||
var private localized String SecondsShort;
|
||||
@ -22,10 +19,9 @@ var private localized String SecondsShort;
|
||||
enum E_CTI_LocalMessageType
|
||||
{
|
||||
CTI_SyncItems,
|
||||
CTI_SyncFinished,
|
||||
CTI_WaitingGRI,
|
||||
CTI_IncompatibleGRI,
|
||||
CTI_Disconnect,
|
||||
CTI_IncompatibleGRIWarning,
|
||||
CTI_SecondsShort
|
||||
};
|
||||
|
||||
@ -43,17 +39,14 @@ public static function String GetLocalizedString(
|
||||
case CTI_SyncItems:
|
||||
return (default.SyncItems != "" ? default.SyncItems : default.SyncItemsDefault);
|
||||
|
||||
case CTI_SyncFinished:
|
||||
return (default.SyncFinished != "" ? default.SyncFinished : default.SyncFinishedDefault);
|
||||
|
||||
case CTI_WaitingGRI:
|
||||
return (default.WaitingGRI != "" ? default.WaitingGRI : default.WaitingGRIDefault);
|
||||
|
||||
case CTI_IncompatibleGRI:
|
||||
return (default.IncompatibleGRI != "" ? default.IncompatibleGRI : default.IncompatibleGRIDefault);
|
||||
return (default.IncompatibleGRI != "" ? default.IncompatibleGRI : default.IncompatibleGRIDefault) @ String1;
|
||||
|
||||
case CTI_Disconnect:
|
||||
return (default.Disconnect != "" ? default.Disconnect : default.DisconnectDefault);
|
||||
case CTI_IncompatibleGRIWarning:
|
||||
return (default.IncompatibleGRIWarning != "" ? default.IncompatibleGRIWarning : default.IncompatibleGRIWarningDefault);
|
||||
|
||||
case CTI_SecondsShort:
|
||||
return (default.SecondsShort != "" ? default.SecondsShort : default.SecondsShortDefault);
|
||||
@ -64,10 +57,9 @@ public static function String GetLocalizedString(
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
SyncItemsDefault = "Sync items:"
|
||||
SyncFinishedDefault = "Sync finished."
|
||||
WaitingGRIDefault = "Waiting GRI..."
|
||||
IncompatibleGRIDefault = "Incompatible GRI:"
|
||||
DisconnectDefault = "Disconnect..."
|
||||
SecondsShortDefault = "s"
|
||||
SyncItemsDefault = "Sync items:"
|
||||
WaitingGRIDefault = "Waiting GRI..."
|
||||
IncompatibleGRIDefault = "Incompatible GRI:"
|
||||
IncompatibleGRIWarningDefault = "You can enter the game, but the trader may not work correctly.";
|
||||
SecondsShortDefault = "s"
|
||||
}
|
@ -10,6 +10,8 @@ var private E_LogLevel LogLevel;
|
||||
var private Array<class<KFWeaponDefinition> > RemoveItems;
|
||||
var private Array<class<KFWeaponDefinition> > AddItems;
|
||||
var private bool ReplaceMode;
|
||||
var private bool RemoveHRG;
|
||||
var private bool RemoveDLC;
|
||||
var private bool PreloadContent;
|
||||
|
||||
var private int Recieved;
|
||||
@ -25,11 +27,12 @@ var private String NotificationRightText;
|
||||
var private int NotificationPercent;
|
||||
|
||||
var private int WaitingGRI;
|
||||
var private int WaitingGRILimit;
|
||||
|
||||
replication
|
||||
{
|
||||
if (bNetInitial && Role == ROLE_Authority)
|
||||
LogLevel, ReplaceMode, SyncSize;
|
||||
LogLevel, ReplaceMode, RemoveHRG, RemoveDLC, SyncSize;
|
||||
}
|
||||
|
||||
public simulated function bool SafeDestroy()
|
||||
@ -44,7 +47,9 @@ public function PrepareSync(
|
||||
E_LogLevel _LogLevel,
|
||||
Array<class<KFWeaponDefinition> > _RemoveItems,
|
||||
Array<class<KFWeaponDefinition> > _AddItems,
|
||||
bool _ReplaceMode)
|
||||
bool _ReplaceMode,
|
||||
bool _RemoveHRG,
|
||||
bool _RemoveDLC)
|
||||
{
|
||||
`Log_Trace();
|
||||
|
||||
@ -53,6 +58,8 @@ public function PrepareSync(
|
||||
RemoveItems = _RemoveItems;
|
||||
AddItems = _AddItems;
|
||||
ReplaceMode = _ReplaceMode;
|
||||
RemoveHRG = _RemoveHRG;
|
||||
RemoveDLC = _RemoveDLC;
|
||||
SyncSize = RemoveItems.Length + AddItems.Length;
|
||||
}
|
||||
|
||||
@ -72,6 +79,39 @@ private simulated function KFPlayerController GetKFPC()
|
||||
return KFPC;
|
||||
}
|
||||
|
||||
public reliable client function WriteToChatLocalized(
|
||||
E_CTI_LocalMessageType LMT,
|
||||
optional String HexColor,
|
||||
optional String String1,
|
||||
optional String String2,
|
||||
optional String String3)
|
||||
{
|
||||
`Log_Trace();
|
||||
|
||||
WriteToChat(LocalMessage.static.GetLocalizedString(LogLevel, LMT, String1, String2, String3), HexColor);
|
||||
}
|
||||
|
||||
public reliable client function WriteToChat(String Message, optional String HexColor)
|
||||
{
|
||||
local KFGFxHudWrapper HUD;
|
||||
|
||||
`Log_Trace();
|
||||
|
||||
if (GetKFPC() == None) return;
|
||||
|
||||
if (KFPC.MyGFxManager.PartyWidget != None && KFPC.MyGFxManager.PartyWidget.PartyChatWidget != None)
|
||||
{
|
||||
KFPC.MyGFxManager.PartyWidget.PartyChatWidget.SetVisible(true);
|
||||
KFPC.MyGFxManager.PartyWidget.PartyChatWidget.AddChatMessage(Message, HexColor);
|
||||
}
|
||||
|
||||
HUD = KFGFxHudWrapper(KFPC.myHUD);
|
||||
if (HUD != None && HUD.HUDMovie != None && HUD.HUDMovie.HudChatBox != None)
|
||||
{
|
||||
HUD.HUDMovie.HudChatBox.AddChatMessage(Message, HexColor);
|
||||
}
|
||||
}
|
||||
|
||||
private simulated function SetPartyInGameWidget()
|
||||
{
|
||||
`Log_Trace();
|
||||
@ -194,47 +234,44 @@ private simulated reliable client function ClientSyncFinished()
|
||||
|
||||
`Log_Trace();
|
||||
|
||||
NotificationLeftText = "";
|
||||
NotificationRightText = "";
|
||||
NotificationPercent = 0;
|
||||
|
||||
if (WorldInfo.GRI == None)
|
||||
if (WorldInfo.GRI == None && WaitingGRI++ < WaitingGRILimit)
|
||||
{
|
||||
`Log_Debug("ClientSyncFinished: Waiting GRI");
|
||||
`Log_Debug("ClientSyncFinished: Waiting GRI" @ WaitingGRI);
|
||||
NotificationHeaderText = LocalMessage.static.GetLocalizedString(LogLevel, CTI_WaitingGRI);
|
||||
NotificationLeftText = String(++WaitingGRI) $ LocalMessage.static.GetLocalizedString(LogLevel, CTI_SecondsShort);
|
||||
NotificationLeftText = String(WaitingGRI) $ LocalMessage.static.GetLocalizedString(LogLevel, CTI_SecondsShort);
|
||||
NotificationRightText = "";
|
||||
NotificationPercent = 0;
|
||||
SetTimer(1.0f, false, nameof(ClientSyncFinished));
|
||||
return;
|
||||
}
|
||||
|
||||
KFGRI = KFGameReplicationInfo(WorldInfo.GRI);
|
||||
if (KFGRI == None)
|
||||
{
|
||||
`Log_Fatal("Incompatible Replication info:" @ String(WorldInfo.GRI));
|
||||
ClearTimer(nameof(KeepNotification));
|
||||
UpdateNotification(
|
||||
LocalMessage.static.GetLocalizedString(LogLevel, CTI_IncompatibleGRI) @ String(WorldInfo.GRI),
|
||||
LocalMessage.static.GetLocalizedString(LogLevel, CTI_Disconnect), "", 0);
|
||||
Cleanup();
|
||||
ConsoleCommand("Disconnect");
|
||||
SafeDestroy();
|
||||
return;
|
||||
}
|
||||
|
||||
NotificationHeaderText = LocalMessage.static.GetLocalizedString(LogLevel, CTI_SyncFinished);
|
||||
NotificationHeaderText = "";
|
||||
NotificationLeftText = "";
|
||||
NotificationRightText = "";
|
||||
NotificationPercent = 0;
|
||||
|
||||
Trader.static.ModifyTrader(KFGRI, RemoveItems, AddItems, ReplaceMode, LogLevel);
|
||||
`Log_Debug("ClientSyncFinished: Trader.static.ModifyTrader");
|
||||
KFGRI = KFGameReplicationInfo(WorldInfo.GRI);
|
||||
if (KFGRI != None)
|
||||
{
|
||||
`Log_Debug("ClientSyncFinished: Trader.static.ModifyTrader");
|
||||
Trader.static.ModifyTrader(KFGRI, RemoveItems, AddItems, ReplaceMode, RemoveHRG, RemoveDLC, LogLevel);
|
||||
}
|
||||
else
|
||||
{
|
||||
`Log_Error("Incompatible Replication info:" @ String(WorldInfo.GRI));
|
||||
WriteToChatLocalized(
|
||||
CTI_IncompatibleGRI,
|
||||
class'KFLocalMessage'.default.InteractionColor,
|
||||
WorldInfo.GRI == None ? "None" : String(WorldInfo.GRI.class));
|
||||
WriteToChatLocalized(
|
||||
CTI_IncompatibleGRIWarning,
|
||||
class'KFLocalMessage'.default.InteractionColor);
|
||||
}
|
||||
|
||||
ClearTimer(nameof(KeepNotification));
|
||||
ShowReadyButton();
|
||||
|
||||
Cleanup();
|
||||
|
||||
SafeDestroy();
|
||||
}
|
||||
|
||||
@ -289,4 +326,5 @@ defaultproperties
|
||||
|
||||
NotificationPercent = 0
|
||||
WaitingGRI = 0
|
||||
WaitingGRILimit = 15
|
||||
}
|
||||
|
7
CTI/Classes/CTI_WeapDef_HVStormCannon.uc
Normal file
7
CTI/Classes/CTI_WeapDef_HVStormCannon.uc
Normal file
@ -0,0 +1,7 @@
|
||||
class CTI_WeapDef_HVStormCannon extends KFWeapDef_HVStormCannon
|
||||
abstract;
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
SharedUnlockId = SCU_None
|
||||
}
|
7
CTI/Classes/CTI_WeapDef_Shotgun_S12.uc
Normal file
7
CTI/Classes/CTI_WeapDef_Shotgun_S12.uc
Normal file
@ -0,0 +1,7 @@
|
||||
class CTI_WeapDef_Shotgun_S12 extends KFWeapDef_Shotgun_S12
|
||||
abstract;
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
SharedUnlockId = SCU_None
|
||||
}
|
7
CTI/Classes/CTI_WeapDef_ZedMKIII.uc
Normal file
7
CTI/Classes/CTI_WeapDef_ZedMKIII.uc
Normal file
@ -0,0 +1,7 @@
|
||||
class CTI_WeapDef_ZedMKIII extends KFWeapDef_ZedMKIII
|
||||
abstract;
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
SharedUnlockId = SCU_None
|
||||
}
|
@ -3,6 +3,8 @@ class RemoveItems extends Object
|
||||
config(CTI);
|
||||
|
||||
var public config bool bAll;
|
||||
var public config bool bHRG;
|
||||
var public config bool bDLC;
|
||||
var private config Array<String> Item;
|
||||
|
||||
public static function InitConfig(int Version, int LatestVersion)
|
||||
@ -12,6 +14,10 @@ public static function InitConfig(int Version, int LatestVersion)
|
||||
case `NO_CONFIG:
|
||||
ApplyDefault();
|
||||
|
||||
case 2:
|
||||
default.bHRG = false;
|
||||
default.bDLC = false;
|
||||
|
||||
default: break;
|
||||
}
|
||||
|
||||
@ -24,6 +30,8 @@ public static function InitConfig(int Version, int LatestVersion)
|
||||
private static function ApplyDefault()
|
||||
{
|
||||
default.bAll = false;
|
||||
default.bHRG = false;
|
||||
default.bDLC = false;
|
||||
default.Item.Length = 0;
|
||||
default.Item.AddItem("KFGame.KFWeapDef_9mmDual");
|
||||
}
|
||||
@ -43,6 +51,15 @@ public static function Array<class<KFWeaponDefinition> > Load(E_LogLevel LogLeve
|
||||
}
|
||||
else
|
||||
{
|
||||
if (default.bHRG)
|
||||
{
|
||||
`Log_Info("Remove all HRG items");
|
||||
}
|
||||
if (default.bDLC)
|
||||
{
|
||||
`Log_Info("Remove all DLC items");
|
||||
}
|
||||
|
||||
foreach default.Item(ItemRaw, Line)
|
||||
{
|
||||
ItemWeapDef = class<KFWeaponDefinition>(DynamicLoadObject(ItemRaw, class'Class'));
|
||||
|
@ -91,6 +91,8 @@ public static simulated function ModifyTrader(
|
||||
Array<class<KFWeaponDefinition> > RemoveItems,
|
||||
Array<class<KFWeaponDefinition> > AddItems,
|
||||
bool ReplaceMode,
|
||||
bool RemoveHRG,
|
||||
bool RemoveDLC,
|
||||
E_LogLevel LogLevel)
|
||||
{
|
||||
local KFGFxObject_TraderItems TraderItems;
|
||||
@ -110,6 +112,8 @@ public static simulated function ModifyTrader(
|
||||
{
|
||||
if (Item.WeaponDef != None
|
||||
&& RemoveItems.Find(Item.WeaponDef) == INDEX_NONE
|
||||
&& (!RemoveHRG || (RemoveHRG && InStr(Item.WeaponDef, "_HRG", true) == INDEX_NONE))
|
||||
&& (!RemoveDLC || (RemoveDLC && Item.WeaponDef.default.SharedUnlockId == SCU_None))
|
||||
&& WeaponClassIsUnique(Item.WeaponDef.default.WeaponClassPath, AddItems, LogLevel))
|
||||
{
|
||||
WeapDefs.AddItem(Item.WeaponDef);
|
||||
|
@ -182,6 +182,7 @@ defaultproperties
|
||||
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')
|
||||
@ -191,7 +192,9 @@ defaultproperties
|
||||
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')
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
@ -65,13 +65,15 @@ Unfortunately I can't do anything about it because it's a game problem (not muta
|
||||
example: [b]Item=KFGame.KFWeapDef_Mac10[/b] will remove MAC10 from sale.
|
||||
|
||||
[*]Set [b]bAll=True[/b] if you want to remove all items (can be useful if you want to set the entire sale list in the [b][CTI.AddItems][/b] section yourself).
|
||||
[*]Set [b]bHRG=True[/b] to remove HRG items.
|
||||
[*]Set [b]bDLC=True[/b] to remove DLC items.
|
||||
|
||||
[*]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.
|
||||
[/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:
|
||||
[b]Item=""[/b]
|
||||
[b]Item=[/b]
|
||||
This is necessary to explicitly initialize the list (because of the bug I wrote about above) to avoid initialization with random values.
|
||||
|
||||
[h1]Notes[/h1]
|
||||
|
23
README.md
23
README.md
@ -3,24 +3,24 @@
|
||||
[](https://steamcommunity.com/sharedfiles/filedetails/?id=2830826239)
|
||||
[](https://steamcommunity.com/sharedfiles/filedetails/?id=2830826239)
|
||||
[](https://steamcommunity.com/sharedfiles/filedetails/?id=2830826239)
|
||||
[](https://steamcommunity.com/sharedfiles/filedetails/?id=2830826239)
|
||||
[](https://github.com/GenZmeY/KF2-CustomTraderInventory/actions/workflows/mega-linter.yml)
|
||||
[](https://github.com/GenZmeY/KF2-CustomTraderInventory/tags)
|
||||
[](LICENSE)
|
||||
|
||||
# Description
|
||||
## Description
|
||||
Add/Remove Items in the Trader's Inventory
|
||||
|
||||
# Features
|
||||
## Features
|
||||
- remove/add items to trader;
|
||||
- can preload weapon models (no lags when buying weapons);
|
||||
- unlock DLC weapons;
|
||||
- correct items sorting (by price);
|
||||
- don't have to worry about adding new guns after each Tripware update.
|
||||
|
||||
# Usage & Setup
|
||||
## Usage & Setup
|
||||
[See steam workshop page](https://steamcommunity.com/sharedfiles/filedetails/?id=2830826239)
|
||||
|
||||
# Build
|
||||
## Build
|
||||
**Note:** If you want to build/test/brew/publish a mutator without git-bash and/or scripts, follow [these instructions](https://tripwireinteractive.atlassian.net/wiki/spaces/KF2SW/pages/26247172/KF2+Code+Modding+How-to) instead of what is described here.
|
||||
1. Install [Killing Floor 2](https://store.steampowered.com/app/232090/Killing_Floor_2/), Killing Floor 2 - SDK and [git for windows](https://git-scm.com/download/win);
|
||||
2. open git-bash and go to any folder where you want to store sources:
|
||||
@ -34,16 +34,9 @@ Add/Remove Items in the Trader's Inventory
|
||||
5. The compiled files will be here:
|
||||
`C:\Users\<USERNAME>\Documents\My Games\KillingFloor2\KFGame\Unpublished\BrewedPC\Script\`
|
||||
|
||||
# Testing
|
||||
Open git-bash in the source folder and run command:
|
||||
`./tools/builder -t`
|
||||
(or `./tools/builder -ct` if you haven't compiled the mutator yet)
|
||||
|
||||
A local single-user test will be launched with parameters from `builder.cfg` (edit this file if you want to test mutator with different parameters).
|
||||
|
||||
# Bug reports
|
||||
## Bug reports
|
||||
If you find a bug, go to the [issue page](https://github.com/GenZmeY/KF2-CustomTraderInventory/issues) and check if there is a description of your bug. If not, create a new issue.
|
||||
Describe what the bug looks like and how reproduce it.
|
||||
|
||||
# License
|
||||
[GNU GPLv3](LICENSE)
|
||||
## License
|
||||
[](LICENSE)
|
||||
|
2
tools
2
tools
Submodule tools updated: d830a5ea16...fb458ac61f
Reference in New Issue
Block a user