124 lines
2.8 KiB
Lua
Raw Normal View History

2025-01-04 23:00:19 +08:00
GlobalConfigs = GlobalConfigs or {}
GlobalConfigs.DsDoOnce = true;
GlobalConfigs.IsDebug = false;
GlobalConfigs.GameName = "进阶之战";
GlobalConfigs.IsHaiDao = true; -- 判断是否为海岛继承的工程
--- 游戏模式设置
GlobalConfigs.GameModeSetting = {
--- 队伍模式
TeamModeType = CustomEnum.ETeamMode.TeamSports;
--- 队伍所需玩家数
2025-01-07 21:25:05 +08:00
TeamNeedPlayerNum = 4;
2025-01-04 23:00:19 +08:00
--- 队伍数量
TeamNum = 2;
--- 最大玩家数量
2025-01-07 21:25:05 +08:00
MaxPlayerNum = 8;
2025-01-04 23:00:19 +08:00
--- 最小可玩人数
MinPlayerNum = 2;
}
--- 游戏设置
GlobalConfigs.GameSetting = {
-- 启用补人
EnablePlayerJoin = false,
-- 等待及选地图时间
2025-01-07 21:25:05 +08:00
WaitTime = 50;
2025-01-04 23:00:19 +08:00
-- 游戏时长
GameTime = 1200;
-- 回合时间
RoundTime = 240;
--RoundTime = 60;
-- 最大回合数
MaxRound = 7;
-- 回合准备时间
RoundReadyTime = 10;
-- 准备阶段是否可移动
ReadyCanMove = true;
-- 准备阶段开启伤害
ReadyStateEnableDamage = false;
-- 目标比分
TargetTeamScore = 4;
-- 激活队伍出生点切换在回合数大于MaxRound//2时
ActiveChangeTeam = true;
-- 仅游玩阶段有伤害
JustPlayingEnableDamage = true;
-- 玩家重生时间
RespawnTime = 3.;
-- 无敌时间
InvincibleTime = 3.;
-- 启用描边
EnableStroke = true ;
-- 自动返回大厅的时间
DelayReturnToLobbyTime = 20.;
-- 地图结束投票时随机滚动选择投票地图是时间
RollMapTime = 4.;
-- 启用死亡视角
EnableLerpCamera = false;
-- 等待客户端地图加载时间
ClientLoadMapTime = 2.;
-- 武器选择时间
WeaponSelectTime = 20;
-- 可以自定义武器
CanCustomWeapon = true;
-- 友伤比例
FriendlyInjuryRatio = 0.;
-- 启用自己的伤害如手雷、火箭筒
bEnableSelfHarm = true;
-- 对自己的伤害比例
SelfHarmInjuryRatio = 1.;
-- 启用掉落伤害
bEnableDropDamage = false;
-- 忽略的伤害类型
IgnoreDamageType = {
-- 掉落伤害
EDamageType.FallingDamage,
};
-- 近战伤害比例
MeleeDamageScale = 1;
}
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