One Shot Protection
- 100% 服务端运行,可加载至 Forge 服务器,无需依赖项或玩家额外下载
- 完全可配置且功能灵活
- 专为玩家、服务器管理员及整合包开发者打造
关于模组
"One Shot Protection" 是一款添加“一击保护”机制的模组,类似于 ROR2
该模组在设计时充分考虑了整合包开发者和服务器管理员的需求,您可以配置其忽略某些伤害来源,或执行不同的操作,例如:
功能特性
OSP(一击保护)
- 当受到的伤害会导致生命值低于 90% 而死亡时,您将被保留至最大生命值的 10%,并获得短暂的免疫期,在此期间不再受到伤害
- 当此效果触发时,会有简短的声音提示和粒子效果;在免疫期间也会有粒子效果提示
- 在免疫期内,所有针对您的伤害都将被完全抵消,为您提供短暂的缓冲时间以逃脱或做出适当反应
- 坠落伤害、虚空、通用击杀等无效伤害来源不会触发此效果
- 无效的 damage sources 以及模组内的所有功能均可根据您的喜好进行配置,包括考虑模组新增的伤害来源。例如,如果您希望 OSP 考虑坠落伤害,只需简单配置即可
配置说明
本节将详细分解并解释模组中的所有配置选项,帮助您根据个人喜好自定义模组
所有配置选项均位于游戏目录 config 文件夹下的 "OSP" 文件夹中
编辑无效伤害来源
剧透
- OSP 允许您定义“无效伤害来源”,这意味着由定义的伤害来源导致的死亡不会触发“一击保护”
- 在 config 文件夹中,您应该能看到一个 "InvalidDamageSources.json" 文件
- 添加伤害来源非常简单,只需插入带有空格的 " \ " 然后写下伤害来源名称即可。移除 " \ " 结构会导致问题,请务必保持结构一致
- 除非自定义伤害来源名称中明确包含模组 ID,否则在定义自定义伤害来源时无需包含模组 ID

调整 OSP 机制
剧透
- 要调整 OSP 的机制,您需要调整 "OneShotProtectionConfig" 中的设置
- "OneShotProtectionCooldown" 影响一击保护的冷却时间,将其设置为 0 可使 OSP 无冷却地连续触发
- "ProcHealthPercentage" 定义 OSP 激活所需的最低生命值百分比。默认值为 0.9,意味着玩家生命值必须达到 90% 才会激活 OSP
- "LeftoverHealthOnProcPercentage" 定义 OSP 触发后玩家剩余的生命值百分比。默认值为 0.1,意味着 OSP 触发后玩家将被保留至最大生命值的 10%
- "DoInvalidMaximumHealth" 默认为 false,影响下一个机制
- "DoInvalidMaximumHealth" 定义玩家拥有多少总最大生命值时 OSP 才会触发,仅在启用 "DoInvalidMaximumHealth" 时才计算此项。
^ 将此数值设置为 10 意味着如果玩家的总最大生命值少于 10,则 OSP 不会对其触发。
- "DoSoundQue" 禁用声音提示
- "DoParticlesOnProc" 禁用 OSP 触发时出现的粒子效果
- "DoParticlesOnImmunityFrames" 禁用在免疫帧生效时出现的粒子效果

配置免疫机制
剧透
- 如果您想调整免疫机制,可以在 "ImmunityConfig.json" 文件中找到相关设置
- "DoImmunityTicks" 启用/禁用死亡后获得的免疫效果。禁用此选项将完全禁用免疫机制。
- "ImmunityTicksOnDeath" 定义 OSP 触发后您将拥有多少刻的免疫时间。

致谢 / 支持 / 常见问题
- 特别感谢 Vami 对模组的贡献
- 如果您有任何建议、错误报告或希望加入我的模组社区,请前往 Discord 加入我们
- 我鼓励并允许此模组用于整合包和服务器中
- 如果您喜欢这个模组,欢迎查看我的其他模组
One Shot Protection
- 100% Server sided, Can be loaded into forge servers with no dependencies or required downloads for players
- Fully configurable & versatile configurations
- Built for players, server owners & modpack developers
About the mod
" One Shot Protection " Is a mod that adds one shot protection, similar to ROR2
The mod was built with modpack developers and server owners in mind, and it can be configured to disregard certain damage sources or do different things for example
Features
OSP
- Taking damage above 90% health that would be fatal will instead leave you at 10% of your maximum health and give you a brief immunity period to where you no longer take damage
- A short soundque and particles will signify when this effect has procced, as well as particles to signify your immunity
- During your immunity period, all damage torwards you will be fully nullified giving you a brief grace period to where you can escape or react appropriately
- Damage sources such as fall damage, void, generic kill, ect will not proc this effect
- Invalid damage sources and every feature within the mod can be configured to your liking, including factoring in modded damage sources. So for example, if you would like OSP to account for fall damage then you can simply configure the mod to do so
Configuration
This section will break down and explain all configurations within the mod, giving you everything you need to personalize the mod to your liking
All configuration options can be found within the " OSP " folder within the game directory's config folder
Editing invalid damagesources
Spoiler
- OSP allows you to define invalid damagesources, meaning that getting killed by a defined damage source will not proc one shot protection
- Within the config folder you should see a "InvalidDamageSources.json"
- Adding a damagesource is as simple as inserting a " \ " with spaces and then writing down the damagesource name. Removing the " \ " structures will cause complications, it is important to keep it all structurally the same
- You shouldn't have to include a modID when defining custom damage sources unless it is specifically within the damagesource name

Adjusting OSP mechanics
Spoiler
- In order to adjust the mechanics of OSP, you will have to adjust settings found within "OneShotProtectionConfig"
- "OneShotProtectionCooldown" affects the cooldown that one shot protection has, setting this to 0 can allow OSP to continually proc with no cooldowns
- "ProcHealthPercentage" defines what percentage of health is required for OSP to activate. By default this is set to 0.9, meaning that a player has to be at 90% HP for OSP to activate
-"LeftoverHealthOnProcPercentage" defines the percentage of health a player will be set to after OSP procs. By default this is set to 0.1 meaning that a player will be left at 10% of there maximum HP after OSP procs
-"DoInvalidMaximumHealth" is set to false by default and affects the next mechanic
-"DoInvalidMaximumHealth" defines how much total maximum health a player needs in order for OSP to proc, this is only factored once "DoInvalidMaximumHealth" is turned on.
^ Setting this number to 10 means that if a player has less than 10 total maximum health then OSP will not proc on them.
- "DoSoundQue" disables the soundque
- "DoParticlesOnProc" disables the particles that appear once OSP procs
- "DoParticlesOnImmunityFrames" disables the particles that appear if you have immunity frames active

Configurating Immunity
Spoiler
- If you would like to adjust Immunity then it can be found in the "ImmunityConfig.json" file
- "DoImmunityTicks" disables / enables the immunity gained after dying. Disabling this will completely disable the immunity mechanic.
- "ImmunityTicksOnDeath" defines how many ticks of immunity you will have after OSP procs.

Credits / Support / Q&A
- Special thanks Vami for contributing to the mod
- If you have any suggestions, bug reports or you would like to join my community for mods then join us on over at Discord
- I encourage and allow this mod to be used within modpacks and servers
- If you enjoyed this mod, consider checking out my other mods
评论 0
登录后参与评分
还没有评论,来抢沙发吧