人类一败涂地dll修改教程(纯文本)

视频教程

1. 安装dnspy

1.1. 下载dnspy

点击下面的链接下载dnspy软件包
Github: https://github.com/0xd4d/dnSpy/releases
根据系统选择下载位数x32或x64,也可以两个都下
github下载选择x32或x64
百度网盘: https://pan.baidu.com/s/1_TZzlYbA3YkFu_aDWruLMw 提取码:nlj7

1.2. 安装dnspy

解压后将解压后的文件夹拖到存放软件的目录

2. 房间内

2.1. 人数修改

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
NetChat.RegisterCommand(true, false, "maxplayer", new Action<string>(this.MaxPlayer), "/maxplayer 最大人数");

private void MaxPlayer(string txt)
{
if (string.IsNullOrEmpty(txt))
{
return;
}
string[] array = txt.Split(new char[]
{
' '
}, StringSplitOptions.RemoveEmptyEntries);
if (array.Length != 1)
{
return;
}
int num = 0;
if (!int.TryParse(array[0], out num))
{
return;
}
if(num < 1)
{
return;
}
if (NetGame.isClient)
{
return;
}
try
{
if (num != Options.lobbyMaxPlayers)
{
new MultiplayerLobbySettingsMenu().MaxPlayersChanged(num - 2);
}
}
catch
{
}
}

2.2. 仅限邀请

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
NetChat.RegisterCommand(true, false, "invite", new Action(this.InviteOnly), "/invite 仅限邀请");

void InviteOnly()
{
if (Options.lobbyInviteOnly == 0)
{
new MultiplayerLobbySettingsMenu().InviteOnlyChanged(1);
NetChat.Print("仅限邀请:开");
}
else
{
new MultiplayerLobbySettingsMenu().InviteOnlyChanged(0);
NetChat.Print("仅限邀请:关");
}
}

2.3. 参加正在进行的游戏

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
NetChat.RegisterCommand(true, false, "join", new Action(this.JoinInProgress), "/join 参加正在进行的游戏");

private void JoinInProgress()
{
if (Options.lobbyJoinInProgress == 0)
{
new MultiplayerLobbySettingsMenu().JoinInProgressChanged(1);
NetChat.Print("参加正在进行的游戏:开");
}
else
{
new MultiplayerLobbySettingsMenu().JoinInProgressChanged(0);
NetChat.Print("参加正在进行的游戏:关");
}
}

3. 飞天

3.1. 飞天原理

3.2. 飞天加强原理

3.3. 飞天

欢迎关注我的其它发布渠道