2025-01-04 23:00:19 +08:00

122 lines
2.8 KiB
Lua

GlobalConfigs = GlobalConfigs or {}
GlobalConfigs.DsDoOnce = true;
GlobalConfigs.IsDebug = true;
--- 游戏模式设置
GlobalConfigs.GameModeSetting = {
--- 队伍模式
TeamModeType = CustomEnum.ETeamMode.TeamSports;
--- 队伍所需玩家数
TeamNeedPlayerNum = 1;
--- 队伍数量
TeamNum = 4;
--- 最大玩家数量
MaxPlayerNum = 4;
--- 最小可玩人数
MinPlayerNum = 2;
--- 回合时间
RoundTime = 180;
--- 回合准备时间
RoundReadyTime = 3;
}
--- 游戏设置
GlobalConfigs.GameSetting = {
--- 启用补人
EnablePlayerJoin = false,
--- 等待及选地图时间
WaitTime = 60;
--- 游戏时长
GameTime = 480;
--- 玩家重生时间
RespawnTime = 3.;
--- 无敌时间
InvincibleTime = 3.;
--- Mechabusm
--- 玩家初始拥有的能量
InitEnergy = 200;
--- 等待阶段初始能量
WaitingInitEnergy = 1000;
--- 玩家每秒恢复的能量
EnergyRecovery = 3;
--- 玩家完成梯度增加的得分
FullGradientAddScore = 3;
--- 技术分占得分比重
TechnicalScoreProportion = 0.004;
--- 玩家默认选择的近战武器
DefaultMeleeWeapon = 108004;
--- 自动返回大厅的时间
DelayReturnToLobbyTime = 20.;
--- 玩家重生延迟给玩家发放默认武器
DelayTimeAddDefault = 3.;
--- 夺取的能量上限
SeizeEnergyMax = 300;
--- 友伤比例
FriendlyInjuryRatio = 0.;
--- 启用自己的伤害如手雷、火箭筒
bEnableSelfHarm = true;
--- 对自己的伤害比例
SelfHarmInjuryRatio = 1.;
--- 启用掉落伤害
bEnableDropDamage = false;
--- 启用死亡视角
EnableLerpCamera = true;
--- 等待客户端地图加载时间
ClientLoadMapTime = 2.;
--- 出生默认装备
BeBornItems = {
{ItemID = 502002, Count = 1},
{ItemID = 503002, Count = 1},
{ItemID = 602004, Count = 1},
-- {ItemID = 102005, Count = 1}, -- 野牛 测试用
};
--- 地图结束投票时随机滚动选择投票地图是时间
RollMapTime = 4.;
--- 近战伤害比例
MeleeDamageScale = 3.2;
--- 武器选择时间
WeaponSelectTime = 8;
}
function GlobalConfigs.GetAddScore(WeaponID)
return ((WeaponID > 0 and WeaponID < 108001) and 1 or 2)
end
--- 保存信息类型
GlobalConfigs.EArchive = {
--- 游玩次数
NumberOfVisits = 1,
--- 保存的快捷选择武器
SaveSelectWeapon = 2,
}
--- 获取悬赏分对应的金币
---@param RewardScore uint
GlobalConfigs.RewardScoreToGoldCoin = function(RewardScore)
return RewardScore * 100
end
--- 获取悬赏分对应的击杀得分
---@param RewardScore uint
GlobalConfigs.GetPlayerAddScoreFromRewardScore = function(DeadPlayerRewardScore)
return 3 + DeadPlayerRewardScore
end
return GlobalConfigs