Compare commits
25 Commits
Author | SHA1 | Date | |
---|---|---|---|
522b609ebc | |||
8223dec827 | |||
e680270722 | |||
1f6de98e2f | |||
469c8bbd96 | |||
48e1b9ff1d | |||
464ba0f492 | |||
afadeba04c | |||
1c1b7f6e90 | |||
690aa2ba6f | |||
158c6b8a2e | |||
e354b714ca | |||
6fb5902567 | |||
8a26a40e90 | |||
edb2334ac8 | |||
c37b64c3be | |||
9635fb5007 | |||
e595daf7ca | |||
9b47405939 | |||
345e765a0e | |||
c724de802b | |||
da1f19cf9d | |||
777b2389c1 | |||
66d7dce3d0 | |||
b66f2e9fef |
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
|
115
.github/workflows/mega-linter.yml
vendored
Normal file
115
.github/workflows/mega-linter.yml
vendored
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
---
|
||||||
|
name: MegaLinter
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
APPLY_FIXES: none
|
||||||
|
APPLY_FIXES_EVENT: pull_request
|
||||||
|
APPLY_FIXES_MODE: commit
|
||||||
|
FILTER_REGEX_EXCLUDE: (mega-linter.yml)
|
||||||
|
DISABLE: SPELL
|
||||||
|
DISABLE_ERRORS_LINTERS: COPYPASTE_JSCPD
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref }}-${{ github.workflow }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
megalinter:
|
||||||
|
name: MegaLinter
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: MegaLinter
|
||||||
|
uses: oxsecurity/megalinter@7e042c726c68415475b05a65a686c612120a1232
|
||||||
|
id: ml
|
||||||
|
env:
|
||||||
|
VALIDATE_ALL_CODEBASE: true
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Archive production artifacts
|
||||||
|
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
|
||||||
|
if: success() || failure()
|
||||||
|
with:
|
||||||
|
name: MegaLinter reports
|
||||||
|
path: |
|
||||||
|
megalinter-reports
|
||||||
|
mega-linter.log
|
||||||
|
|
||||||
|
- name: Set APPLY_FIXES_IF var
|
||||||
|
run: |
|
||||||
|
printf 'APPLY_FIXES_IF=%s\n' "${{
|
||||||
|
steps.ml.outputs.has_updated_sources == 1 &&
|
||||||
|
(
|
||||||
|
env.APPLY_FIXES_EVENT == 'all' ||
|
||||||
|
env.APPLY_FIXES_EVENT == github.event_name
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
github.event_name == 'push' ||
|
||||||
|
github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
)
|
||||||
|
}}" >> "${GITHUB_ENV}"
|
||||||
|
|
||||||
|
- name: Set APPLY_FIXES_IF_* vars
|
||||||
|
run: |
|
||||||
|
printf 'APPLY_FIXES_IF_PR=%s\n' "${{
|
||||||
|
env.APPLY_FIXES_IF == 'true' &&
|
||||||
|
env.APPLY_FIXES_MODE == 'pull_request'
|
||||||
|
}}" >> "${GITHUB_ENV}"
|
||||||
|
printf 'APPLY_FIXES_IF_COMMIT=%s\n' "${{
|
||||||
|
env.APPLY_FIXES_IF == 'true' &&
|
||||||
|
env.APPLY_FIXES_MODE == 'commit' &&
|
||||||
|
(!contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref))
|
||||||
|
}}" >> "${GITHUB_ENV}"
|
||||||
|
|
||||||
|
- name: Create Pull Request with applied fixes
|
||||||
|
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
|
||||||
|
id: cpr
|
||||||
|
if: env.APPLY_FIXES_IF_PR == 'true'
|
||||||
|
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: env.APPLY_FIXES_IF_PR == 'true'
|
||||||
|
run: |
|
||||||
|
echo "PR Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||||
|
echo "PR URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||||
|
|
||||||
|
- name: Prepare commit
|
||||||
|
if: env.APPLY_FIXES_IF_COMMIT == 'true'
|
||||||
|
run: sudo chown -Rc $UID .git/
|
||||||
|
|
||||||
|
- name: Commit and push applied linter fixes
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d
|
||||||
|
if: env.APPLY_FIXES_IF_COMMIT == 'true'
|
||||||
|
with:
|
||||||
|
branch: >-
|
||||||
|
${{
|
||||||
|
github.event.pull_request.head.ref ||
|
||||||
|
github.head_ref ||
|
||||||
|
github.ref
|
||||||
|
}}
|
||||||
|
commit_message: "[MegaLinter] Apply linters fixes"
|
||||||
|
commit_user_name: "github-actions"
|
||||||
|
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
@ -183,6 +183,13 @@ public function bool PlayerIsKickProtected(PlayerReplicationInfo PRI)
|
|||||||
return (KickProtectedPlayers.Find('Uid', PRI.UniqueId.Uid) != INDEX_NONE);
|
return (KickProtectedPlayers.Find('Uid', PRI.UniqueId.Uid) != INDEX_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function bool PlayerPerkLoaded(PlayerReplicationInfo PRI)
|
||||||
|
{
|
||||||
|
`Log_Trace();
|
||||||
|
|
||||||
|
return (KFPlayerReplicationInfo(PRI) != None && KFPlayerReplicationInfo(PRI).CurrentPerkClass != None);
|
||||||
|
}
|
||||||
|
|
||||||
public function bool PlayerIsStartWaveKickProtected(KFPlayerController KFPC)
|
public function bool PlayerIsStartWaveKickProtected(KFPlayerController KFPC)
|
||||||
{
|
{
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
@ -1,60 +1 @@
|
|||||||
class CVCMut extends KFMutator;
|
class CVCMut extends Mut; // backward compatibility
|
||||||
|
|
||||||
var private CVC CVC;
|
|
||||||
|
|
||||||
public simulated function bool SafeDestroy()
|
|
||||||
{
|
|
||||||
return (bPendingDelete || bDeleteMe || Destroy());
|
|
||||||
}
|
|
||||||
|
|
||||||
public event PreBeginPlay()
|
|
||||||
{
|
|
||||||
Super.PreBeginPlay();
|
|
||||||
|
|
||||||
if (WorldInfo.NetMode == NM_Client) return;
|
|
||||||
|
|
||||||
foreach WorldInfo.DynamicActors(class'CVC', CVC)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (CVC == None)
|
|
||||||
{
|
|
||||||
CVC = WorldInfo.Spawn(class'CVC');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (CVC == None)
|
|
||||||
{
|
|
||||||
`Log_Base("FATAL: Can't Spawn 'CVC'");
|
|
||||||
SafeDestroy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function AddMutator(Mutator Mut)
|
|
||||||
{
|
|
||||||
if (Mut == Self) return;
|
|
||||||
|
|
||||||
if (Mut.Class == Class)
|
|
||||||
Mut.Destroy();
|
|
||||||
else
|
|
||||||
Super.AddMutator(Mut);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function NotifyLogin(Controller C)
|
|
||||||
{
|
|
||||||
Super.NotifyLogin(C);
|
|
||||||
|
|
||||||
CVC.NotifyLogin(C);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function NotifyLogout(Controller C)
|
|
||||||
{
|
|
||||||
Super.NotifyLogout(C);
|
|
||||||
|
|
||||||
CVC.NotifyLogout(C);
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultproperties
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -10,6 +10,9 @@ var private localized String PlayerIsStartWaveKickProtected;
|
|||||||
var const String PlayerCantStartKickVoteDefault;
|
var const String PlayerCantStartKickVoteDefault;
|
||||||
var private localized String PlayerCantStartKickVote;
|
var private localized String PlayerCantStartKickVote;
|
||||||
|
|
||||||
|
var const String PlayerPerkIsNotLoadedDefault;
|
||||||
|
var private localized String PlayerPerkIsNotLoaded;
|
||||||
|
|
||||||
var const String KickVoteNotEnoughPlayersDefault;
|
var const String KickVoteNotEnoughPlayersDefault;
|
||||||
var private localized String KickVoteNotEnoughPlayers;
|
var private localized String KickVoteNotEnoughPlayers;
|
||||||
|
|
||||||
@ -33,6 +36,7 @@ enum E_CVC_LocalMessageType
|
|||||||
CVC_PlayerIsKickProtected,
|
CVC_PlayerIsKickProtected,
|
||||||
CVC_PlayerIsStartWaveKickProtected,
|
CVC_PlayerIsStartWaveKickProtected,
|
||||||
CVC_PlayerCantStartKickVote,
|
CVC_PlayerCantStartKickVote,
|
||||||
|
CVC_PlayerPerkIsNotLoaded,
|
||||||
|
|
||||||
CVC_KickVoteNotEnoughPlayers,
|
CVC_KickVoteNotEnoughPlayers,
|
||||||
CVC_KickVoteStarted,
|
CVC_KickVoteStarted,
|
||||||
@ -88,6 +92,9 @@ public static function String GetLocalizedString(
|
|||||||
case CVC_PlayerCantStartKickVote:
|
case CVC_PlayerCantStartKickVote:
|
||||||
return ReplWaves(default.PlayerCantStartKickVote != "" ? default.PlayerCantStartKickVote : default.PlayerCantStartKickVoteDefault, String1);
|
return ReplWaves(default.PlayerCantStartKickVote != "" ? default.PlayerCantStartKickVote : default.PlayerCantStartKickVoteDefault, String1);
|
||||||
|
|
||||||
|
case CVC_PlayerPerkIsNotLoaded:
|
||||||
|
return ReplKickee(default.PlayerPerkIsNotLoaded != "" ? default.PlayerPerkIsNotLoaded : default.PlayerPerkIsNotLoadedDefault, String1);
|
||||||
|
|
||||||
case CVC_KickVoteNotEnoughPlayers:
|
case CVC_KickVoteNotEnoughPlayers:
|
||||||
return ReplWaves(default.KickVoteNotEnoughPlayers != "" ? default.KickVoteNotEnoughPlayers : default.KickVoteNotEnoughPlayersDefault, String1);
|
return ReplWaves(default.KickVoteNotEnoughPlayers != "" ? default.KickVoteNotEnoughPlayers : default.KickVoteNotEnoughPlayersDefault, String1);
|
||||||
|
|
||||||
@ -136,6 +143,7 @@ defaultproperties
|
|||||||
PlayerIsKickProtectedDefault = "<kickee> is protected from kick"
|
PlayerIsKickProtectedDefault = "<kickee> is protected from kick"
|
||||||
PlayerIsStartWaveKickProtectedDefault = "You can't kick <kickee> right now. He can be kicked when he plays at least <waves> wave(s)"
|
PlayerIsStartWaveKickProtectedDefault = "You can't kick <kickee> right now. He can be kicked when he plays at least <waves> wave(s)"
|
||||||
PlayerCantStartKickVoteDefault = "You can't start kick vote now. You can start kick vote when you play at least <waves> wave(s)"
|
PlayerCantStartKickVoteDefault = "You can't start kick vote now. You can start kick vote when you play at least <waves> wave(s)"
|
||||||
|
PlayerPerkIsNotLoadedDefault = "You can't kick a player who hasn't loaded yet (<kickee>)"
|
||||||
KickVoteNotEnoughPlayersDefault = "Not enough players to start vote (only players who have played at least <waves> wave(s) can vote)"
|
KickVoteNotEnoughPlayersDefault = "Not enough players to start vote (only players who have played at least <waves> wave(s) can vote)"
|
||||||
KickVoteStartedDefault = "<kicker> has started a vote to kick <kickee>"
|
KickVoteStartedDefault = "<kicker> has started a vote to kick <kickee>"
|
||||||
KickVoteStartedForPlayerDefault = "<kicker> started voting to kick you"
|
KickVoteStartedForPlayerDefault = "<kicker> started voting to kick you"
|
||||||
|
@ -38,6 +38,7 @@ public reliable client function WriteToChat(String Message, optional String HexC
|
|||||||
|
|
||||||
if (KFPC.MyGFxManager.PartyWidget != None && KFPC.MyGFxManager.PartyWidget.PartyChatWidget != None)
|
if (KFPC.MyGFxManager.PartyWidget != None && KFPC.MyGFxManager.PartyWidget.PartyChatWidget != None)
|
||||||
{
|
{
|
||||||
|
KFPC.MyGFxManager.PartyWidget.PartyChatWidget.SetVisible(true);
|
||||||
KFPC.MyGFxManager.PartyWidget.PartyChatWidget.AddChatMessage(Message, HexColor);
|
KFPC.MyGFxManager.PartyWidget.PartyChatWidget.AddChatMessage(Message, HexColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ var private String KickeeName;
|
|||||||
var private String YesVotesPlayers, NoVotesPlayers;
|
var private String YesVotesPlayers, NoVotesPlayers;
|
||||||
|
|
||||||
var private bool AllowHudNotification;
|
var private bool AllowHudNotification;
|
||||||
|
var private bool AllowSTPNotification; // SkipTrader and Pause
|
||||||
|
|
||||||
replication
|
replication
|
||||||
{
|
{
|
||||||
@ -92,6 +93,16 @@ public function ServerStartVoteKick(PlayerReplicationInfo PRI_Kickee, PlayerRepl
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!CVC.PlayerPerkLoaded(PRI_Kickee))
|
||||||
|
{
|
||||||
|
CVC.WriteToChatLocalized(
|
||||||
|
KFPC_Kicker,
|
||||||
|
CVC_PlayerPerkIsNotLoaded,
|
||||||
|
CfgKickVote.default.WarningColorHex,
|
||||||
|
KickeeName);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (CVC.PlayerIsStartWaveKickProtected(KFPC_Kickee))
|
if (CVC.PlayerIsStartWaveKickProtected(KFPC_Kickee))
|
||||||
{
|
{
|
||||||
CVC.WriteToChatLocalized(
|
CVC.WriteToChatLocalized(
|
||||||
@ -636,6 +647,8 @@ public function ServerStartVoteSkipTrader(PlayerReplicationInfo PRI)
|
|||||||
KFPRI.ShowSkipTraderVote(PRI, CurrentVoteTime, !(KFPRI == PRI) && PRI.GetTeamNum() != 255);
|
KFPRI.ShowSkipTraderVote(PRI, CurrentVoteTime, !(KFPRI == PRI) && PRI.GetTeamNum() != 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AllowSTPNotification = KFPRIs.Length > 1;
|
||||||
|
|
||||||
KFGI.BroadcastLocalized(KFGI, class'KFLocalMessage', LMT_SkipTraderVoteStarted, CurrentSkipTraderVote.PlayerPRI);
|
KFGI.BroadcastLocalized(KFGI, class'KFLocalMessage', LMT_SkipTraderVoteStarted, CurrentSkipTraderVote.PlayerPRI);
|
||||||
SetTimer(CurrentVoteTime, false, nameof(ConcludeVoteSkipTrader), Self);
|
SetTimer(CurrentVoteTime, false, nameof(ConcludeVoteSkipTrader), Self);
|
||||||
SetTimer(1, true, nameof(UpdateTimer), Self);
|
SetTimer(1, true, nameof(UpdateTimer), Self);
|
||||||
@ -682,7 +695,7 @@ public reliable server function RecieveVoteSkipTrader(PlayerReplicationInfo PRI,
|
|||||||
|
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
|
||||||
MustNotify = (PlayersThatHaveVoted.Find(PRI) == INDEX_NONE);
|
MustNotify = (PlayersThatHaveVoted.Find(PRI) == INDEX_NONE && AllowSTPNotification);
|
||||||
|
|
||||||
Super.RecieveVoteSkipTrader(PRI, bSkip);
|
Super.RecieveVoteSkipTrader(PRI, bSkip);
|
||||||
|
|
||||||
@ -797,6 +810,8 @@ public function ServerStartVotePauseGame(PlayerReplicationInfo PRI)
|
|||||||
KFPRI.ShowPauseGameVote(PRI, CurrentVoteTime, !(KFPRI == PRI));
|
KFPRI.ShowPauseGameVote(PRI, CurrentVoteTime, !(KFPRI == PRI));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AllowSTPNotification = KFPRIs.Length > 1;
|
||||||
|
|
||||||
KFGI.BroadcastLocalized(KFGI, class'KFLocalMessage', bIsEndlessPaused ? LMT_ResumeVoteStarted : LMT_PauseVoteStarted, CurrentPauseGameVote.PlayerPRI);
|
KFGI.BroadcastLocalized(KFGI, class'KFLocalMessage', bIsEndlessPaused ? LMT_ResumeVoteStarted : LMT_PauseVoteStarted, CurrentPauseGameVote.PlayerPRI);
|
||||||
SetTimer(CurrentVoteTime, false, nameof(ConcludeVotePauseGame), Self);
|
SetTimer(CurrentVoteTime, false, nameof(ConcludeVotePauseGame), Self);
|
||||||
SetTimer(1, true, nameof(UpdatePauseGameTimer), Self);
|
SetTimer(1, true, nameof(UpdatePauseGameTimer), Self);
|
||||||
@ -843,7 +858,7 @@ public reliable server function ReceiveVotePauseGame(PlayerReplicationInfo PRI,
|
|||||||
|
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
|
||||||
MustNotify = (PlayersThatHaveVoted.Find(PRI) == INDEX_NONE);
|
MustNotify = (PlayersThatHaveVoted.Find(PRI) == INDEX_NONE && AllowSTPNotification);
|
||||||
|
|
||||||
Super.ReceiveVotePauseGame(PRI, bSkip);
|
Super.ReceiveVotePauseGame(PRI, bSkip);
|
||||||
|
|
||||||
@ -1108,4 +1123,5 @@ public function int GetNextMap()
|
|||||||
defaultproperties
|
defaultproperties
|
||||||
{
|
{
|
||||||
AllowHudNotification = true;
|
AllowHudNotification = true;
|
||||||
|
AllowSTPNotification = true;
|
||||||
}
|
}
|
||||||
|
60
CVC/Classes/Mut.uc
Normal file
60
CVC/Classes/Mut.uc
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
class Mut extends KFMutator;
|
||||||
|
|
||||||
|
var private CVC CVC;
|
||||||
|
|
||||||
|
public simulated function bool SafeDestroy()
|
||||||
|
{
|
||||||
|
return (bPendingDelete || bDeleteMe || Destroy());
|
||||||
|
}
|
||||||
|
|
||||||
|
public event PreBeginPlay()
|
||||||
|
{
|
||||||
|
Super.PreBeginPlay();
|
||||||
|
|
||||||
|
if (WorldInfo.NetMode == NM_Client) return;
|
||||||
|
|
||||||
|
foreach WorldInfo.DynamicActors(class'CVC', CVC)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CVC == None)
|
||||||
|
{
|
||||||
|
CVC = WorldInfo.Spawn(class'CVC');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CVC == None)
|
||||||
|
{
|
||||||
|
`Log_Base("FATAL: Can't Spawn 'CVC'");
|
||||||
|
SafeDestroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function AddMutator(Mutator M)
|
||||||
|
{
|
||||||
|
if (M == Self) return;
|
||||||
|
|
||||||
|
if (M.Class == Class)
|
||||||
|
Mut(M).SafeDestroy();
|
||||||
|
else
|
||||||
|
Super.AddMutator(M);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function NotifyLogin(Controller C)
|
||||||
|
{
|
||||||
|
Super.NotifyLogin(C);
|
||||||
|
|
||||||
|
CVC.NotifyLogin(C);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function NotifyLogout(Controller C)
|
||||||
|
{
|
||||||
|
Super.NotifyLogout(C);
|
||||||
|
|
||||||
|
CVC.NotifyLogout(C);
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
GroupNames.Add("VoteCollector")
|
||||||
|
}
|
BIN
Localization/CHN/CVC.chn
Normal file
BIN
Localization/CHN/CVC.chn
Normal file
Binary file not shown.
BIN
Localization/CHT/CVC.cht
Normal file
BIN
Localization/CHT/CVC.cht
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -16,7 +16,10 @@ New vote collector with improvements and features.
|
|||||||
[i](it would be logical to separate these features into several mutators, but this is a bad idea for technical reasons)[/i]
|
[i](it would be logical to separate these features into several mutators, but this is a bad idea for technical reasons)[/i]
|
||||||
|
|
||||||
[h1]Whitelisted?[/h1]
|
[h1]Whitelisted?[/h1]
|
||||||
No. This mod is not whitelisted and will de-rank your server. Any XP gained will not be saved.
|
[b]No.[/b] But I really hope that it will be whitelisted.
|
||||||
|
|
||||||
|
[b]⚠️ I submitted whitelist request here:[/b]
|
||||||
|
https://forums.tripwireinteractive.com/index.php?threads/whitelisting-mods-and-mutators.120340/post-2353667
|
||||||
|
|
||||||
[h1]Usage (server)[/h1]
|
[h1]Usage (server)[/h1]
|
||||||
[b]Note:[/b] [i]If you don't understand what is written here, read the article [url=https://wiki.killingfloor2.com/index.php?title=Dedicated_Server_(Killing_Floor_2)][u]Dedicated Server (KF2 wiki)[/u][/url] before following these instructions.[/i]
|
[b]Note:[/b] [i]If you don't understand what is written here, read the article [url=https://wiki.killingfloor2.com/index.php?title=Dedicated_Server_(Killing_Floor_2)][u]Dedicated Server (KF2 wiki)[/u][/url] before following these instructions.[/i]
|
||||||
@ -28,7 +31,7 @@ No. This mod is not whitelisted and will de-rank your server. Any XP gained will
|
|||||||
[*]Add the following string to the [b][OnlineSubsystemSteamworks.KFWorkshopSteamworks][/b] section (create one if it doesn't exist):
|
[*]Add the following string to the [b][OnlineSubsystemSteamworks.KFWorkshopSteamworks][/b] section (create one if it doesn't exist):
|
||||||
[b]ServerSubscribedWorkshopItems=2847465899[/b]
|
[b]ServerSubscribedWorkshopItems=2847465899[/b]
|
||||||
[*]Start the server and wait until the mutator is downloading;
|
[*]Start the server and wait until the mutator is downloading;
|
||||||
[*]Add mutator to server start parameters: [b]?Mutator=CVC.CVCMut[/b] and restart the server.
|
[*]Add mutator to server start parameters: [b]?Mutator=CVC.Mut[/b] and restart the server.
|
||||||
[/olist]
|
[/olist]
|
||||||
|
|
||||||
[h1]Setup (KFCVC.ini)[/h1]
|
[h1]Setup (KFCVC.ini)[/h1]
|
||||||
@ -128,5 +131,8 @@ Version=0
|
|||||||
|
|
||||||
Then start the server and check the file again - config content should be generated.
|
Then start the server and check the file again - config content should be generated.
|
||||||
|
|
||||||
|
[h1]Translators:[/h1]
|
||||||
|
[url=https://steamcommunity.com/profiles/76561199126205919]cheungfatzong[/url] - Traditional [CHT] and Simplified [CHN] Chinese.
|
||||||
|
|
||||||
[h1]Sources[/h1]
|
[h1]Sources[/h1]
|
||||||
[url=https://github.com/GenZmeY/KF2-ControlledVoteCollector]https://github.com/GenZmeY/KF2-ControlledVoteCollector[/url] [b](GNU GPLv3)[/b]
|
[url=https://github.com/GenZmeY/KF2-ControlledVoteCollector]https://github.com/GenZmeY/KF2-ControlledVoteCollector[/url] [b](GNU GPLv3)[/b]
|
17
README.md
17
README.md
@ -1,15 +1,16 @@
|
|||||||
# Controlled Vote Collector
|
# Controlled Vote Collector
|
||||||
|
|
||||||
[![Steam Workshop](https://img.shields.io/static/v1?message=workshop&logo=steam&labelColor=gray&color=blue&logoColor=white&label=steam%20)](https://steamcommunity.com/sharedfiles/filedetails/?id=2847465899)
|
[![Steam Workshop](https://img.shields.io/static/v1?message=workshop&logo=steam&labelColor=gray&color=blue&logoColor=white&label=steam%20)](https://steamcommunity.com/sharedfiles/filedetails/?id=2847465899)
|
||||||
|
[![Steam Downloads](https://img.shields.io/steam/downloads/2847465899)](https://steamcommunity.com/sharedfiles/filedetails/?id=2848836389)
|
||||||
[![Steam Favorites](https://img.shields.io/steam/favorites/2847465899)](https://steamcommunity.com/sharedfiles/filedetails/?id=2847465899)
|
[![Steam Favorites](https://img.shields.io/steam/favorites/2847465899)](https://steamcommunity.com/sharedfiles/filedetails/?id=2847465899)
|
||||||
[![Steam Update Date](https://img.shields.io/steam/update-date/2847465899)](https://steamcommunity.com/sharedfiles/filedetails/?id=2847465899)
|
[![MegaLinter](https://github.com/GenZmeY/KF2-ControlledVoteCollector/actions/workflows/mega-linter.yml/badge.svg?branch=master)](https://github.com/GenZmeY/KF2-ControlledVoteCollector/actions/workflows/mega-linter.yml)
|
||||||
[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/GenZmeY/KF2-ControlledVoteCollector)](https://github.com/GenZmeY/KF2-ControlledVoteCollector/tags)
|
[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/GenZmeY/KF2-ControlledVoteCollector)](https://github.com/GenZmeY/KF2-ControlledVoteCollector/tags)
|
||||||
[![GitHub](https://img.shields.io/github/license/GenZmeY/KF2-ControlledVoteCollector)](LICENSE)
|
[![GitHub](https://img.shields.io/github/license/GenZmeY/KF2-ControlledVoteCollector)](LICENSE)
|
||||||
|
|
||||||
# Description
|
## Description
|
||||||
New vote collector with improvements and features.
|
New vote collector with improvements and features.
|
||||||
|
|
||||||
# Features
|
## Features
|
||||||
- map statistics;
|
- map statistics;
|
||||||
- default/next map setting;
|
- default/next map setting;
|
||||||
- anonymous or public voting;
|
- anonymous or public voting;
|
||||||
@ -17,10 +18,10 @@ New vote collector with improvements and features.
|
|||||||
- kick voting setup;
|
- kick voting setup;
|
||||||
- early kick protection.
|
- early kick protection.
|
||||||
|
|
||||||
# Usage & Setup
|
## Usage & Setup
|
||||||
[See steam workshop page](https://steamcommunity.com/sharedfiles/filedetails/?id=2847465899)
|
[See steam workshop page](https://steamcommunity.com/sharedfiles/filedetails/?id=2847465899)
|
||||||
|
|
||||||
# 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.
|
**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);
|
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:
|
2. open git-bash and go to any folder where you want to store sources:
|
||||||
@ -34,9 +35,9 @@ New vote collector with improvements and features.
|
|||||||
5. The compiled files will be here:
|
5. The compiled files will be here:
|
||||||
`C:\Users\<USERNAME>\Documents\My Games\KillingFloor2\KFGame\Unpublished\BrewedPC\Script\`
|
`C:\Users\<USERNAME>\Documents\My Games\KillingFloor2\KFGame\Unpublished\BrewedPC\Script\`
|
||||||
|
|
||||||
# Bug reports
|
## Bug reports
|
||||||
If you find a bug, go to the [issue page](https://github.com/GenZmeY/KF2-ControlledVoteCollector/issues) and check if there is a description of your bug. If not, create a new issue.
|
If you find a bug, go to the [issue page](https://github.com/GenZmeY/KF2-ControlledVoteCollector/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.
|
Describe what the bug looks like and how reproduce it.
|
||||||
|
|
||||||
# License
|
## License
|
||||||
[GNU GPLv3](LICENSE)
|
[![license](https://www.gnu.org/graphics/gplv3-with-text-136x68.png)](LICENSE)
|
||||||
|
2
tools
2
tools
@ -1 +1 @@
|
|||||||
Subproject commit 88b35bd7ebb7e30448579f1564220398f990541c
|
Subproject commit fb458ac61f7e6c6426b8dff366dd5e7499e0d95f
|
Loading…
Reference in New Issue
Block a user