注意:
- 下面是机器翻译的,有需要的朋友最好去看看英文版
Zombie-Sharp 是 CS2 的僵尸模式插件,参考了之前 SourcePawn Zombie:Reloaded 插件的特性和功能。你可以说这是 Zombie:Reloaded 重制版,但用的是 C#。以下是功能列表。

Zombie-Sharp的特点
- 基本僵尸感染倒计时功能
- 母体僵尸周期
- 感染和人类指挥
- Respawn Toggle 选项
- 玩家职业模块(除玩家速度外,大部分工作。
- 带有购买命令的武器模块。
- Hitgroups 模块
- Knockback 模块
- ZTeleport模块
- 感染设置的配置(以前称为:ConVar)
- Repeat Killer Module(现已过时)
要求
- MetaMod2开发版本 (2.x)。
- CSSharp
- 用于击退的 MovementUnlocker 插件。
- Newtonsoft.Json(这已经包含在 Release 中)
- PrecaheResource,用于僵尸和玩家模型等。
推荐插件
- NoBlock 用于僵尸逃生模式。
安装
- 安装带有运行时构建的 Metamod 和 CounterStrikeSharp。
- 将 zip 中的所有文件拖到 .csgo/addons/counterstrikesharp/
- 进行命令设置和文件配置。
- 启动服务器并享受。
命令设置
建议在使用插件之前设置这些 Convar,以防止崩溃和可能发生的问题。
mp_limitteams 0 // set in server.cfg mp_autoteambalance 0 // set in server.cfg mp_disconnect_kills_players 1 // set in gamemode_casual.cfg
配置
以下是所有可用配置文件的列表以及它们的作用。
weapons.json - 配置特定的武器设置。
{
"KnockbackMultiply": 1.0, // Knockback Multiply for all weapon
"WeaponDatas":{
"glock": { // The weaponname get from event when get fired.
"WeaponName": "Glock", // weapon name you wish
"WeaponEntity": "weapon_glock", // weapon entity
"Knockback": 1.1 // knockback
}
}
}
playerclasses.json - 播放器类配置。将服务器和客户端(播放器)的自定义模型置于game/csgo
例:game/csgo/characters/models/nozb1/2b_nier_automata_player_model/2b_nier_player_model.vmdl_c
{
"PlayerClasses":{
"human_default": { // Class unique name
"Name": "Human Default", // class name
"Description": "Default Class for human", // description
"Enable": true, // enable it or not
"Team": 1, // Team 0 = zombie, Team 1 = human
"Model": "characters\\models\\nozb1\\2b_nier_automata_player_model\\2b_nier_player_model.vmdl", // Model path for this class change .vmdl_c to .vmdl in this config
"MotherZombie": false, // Specify if this class is for mother zombie.
"Health": 150, // class health
"Regen_Interval": 0.0, // Specify how much second to regen health
"Regen_Amount": 0, // Regen Health amount
"Speed": 250.0, // class speed (not work yet)
"Knockback": 0.0, // class knockback
"Jump_Height": 3.0, // Jump height
"Jump_Distance": 1.0, // Jump Distance
"Fall_Damage": false // Disable fall damage or not
}
}
}
hitgroups.json - 击退的命中组配置。
{
"HitGroupDatas": {
"Generic": { // name of the part, doesn't affect anything
"HitgroupIndex": 0, // hitgroup index DO NOT CHANGE THIS
"HitgroupKnockback": 1.0 // knockback multiply when get hit to this hitgroup
},
"Head": {
"HitgroupIndex": 1,
"HitgroupKnockback": 1.2
}
}
}
default.json - 自定义设置。这些也可以为特定地图设置。示例:de_dust2.json。如果首先找不到 de_dust2.json,它将改用 default.json 文件。
{
"RespawnTimer": 5.0, // respawn timer when die
"FirstInfectionTimer": 15.0, // First infection timer in seconds
"MotherZombieRatio": 7.0, // Mother Zombie Spawn ratio (14 players / 7.0 ratio = 2 Mother zombie)
"TeleportMotherZombie": true, // Teleport mother zombie to spawn after get infected (Useful for Zombie Escape)
"EnableOnWarmup": false, // Enable Infection in warmup round or not?, this is not recommend to enable as it has potential memory corrupt to the server.
"RepeatKillerThreshold": 0.0, // Repeat Killer Threshould to prevent zombie dying from respawn over and over again. (Should disable it since ZE map has logic_relay trigger respawn.)
"Human_Default": "human_default", // Default Human Class
"Zombie_Default": "zombie_default", // Default Zombie Class
"Mother_Zombie": "motherzombie" // Default Mother Zombie Class
}
参考: