Sable Player Ragdolls 的插件,将布娃娃模式转变为具有实际后果的真实物理状态。
以下所有功能默认开启,并可在配置文件中关闭或调整。服务器设置位于 SERVER 配置中;视图和渲染设置位于 CLIENT 配置中。
从倾斜的子层级跌落
站在超过阈值的 Sable 子层级上时,你的玩家会进入布娃娃状态。
- 模组通过射线检测向下穿过子层级,以找到你脚下实际的面,因此如果甲板旋转导致原本的墙壁变成地板,会被识别为平坦;而陡峭的甲板则被识别为陡峭。
- 静止站立会增加你跌倒前的角度阈值,冲刺则会降低该阈值。
- 任何布娃娃状态结束后,都会有一段短暂的宽限期,之后倾斜触发器才能再次将你抛下,让你有机会逃离仍处于倾斜状态的地板。
配置组:ragdoll(包含 ragdollAngle、standingStillAngleBonus、sprintingAngleReduction)。
倾斜视角与实体渲染
- 你的第一人称视角(以及瞄准方向)会根据你所站立的表面进行倾斜,支持可配置的平滑度。
- 其他实体会根据其所站立子层级的表面法线进行对齐渲染。
配置组:rendering(包含 viewTilted、entitiesTilted、smoothSpeed)。
主动平衡
当一名清醒的布娃娃状态玩家的脚靠近地面时,身体会像 Euphoria 风格的物理角色一样努力保持站立。
- 腿部会迈步以接住坠落,并向捕捉点踉跄移动。
- 躯干由可调的“核心肌肉”扶正,头部保持水平,而手臂的挥舞幅度会随着身体不稳定性的增加而加大。
- 腿部支撑仅在脚实际接触地面时施加推力,因此无法让倒下的身体悬浮,且所有力均有限制,不会导致轻量的布娃娃部件飞散。
- 在倾斜的子层级上,甲板被视为地板:身体垂直于其站立并抵抗滑动,直到达到可配置的倾斜阈值,然后放弃抵抗并沿斜坡翻滚至第二个可配置的倾斜阈值之下。
- 稳定站立的身体会自动起身。
配置组:balance。
肢体乱舞
一名清醒的布娃娃状态玩家在 airborne(空中)时,手臂和腿会因坠落或爆炸冲击而剧烈甩动。昏迷的玩家则保持松弛。纯视觉效果增强。
配置组:flail。
击退
击中活跃的布娃娃状态会将其推开并可能导致其失去平衡。
- 打击会将身体推向挥击的方向,并以支撑点为中心使整个连锁身体倒下,加上微小的线性踢击,以及对受击肢体的额外踢击。
- 可选地根据造成的伤害进行缩放,因此重型武器比拳头造成更大的击退效果。
- 对布娃娃状态玩家受到伤害做出反应,而非针对特定攻击事件,因此它既适用于原版近战,也适用于战斗重构模组,无需硬性依赖。
配置组:knockback。
受伤代理
出于设计原因,布娃娃状态玩家自身的实体是不可被击中的,通过扫描实体来寻找目标的战斗模组也无法触及它。此插件在每个活跃布娃娃状态上放置了一个不可见的替身碰撞盒。这是专门为 BetterCombat 设计的,但也允许生物攻击布娃娃状态玩家。
- 武器模组击中碰撞盒,伤害直接传递给真实玩家。PVP 规则、护甲和免疫帧仍然适用。
- 针对布娃娃状态玩家的目标会被引导至身体实际所在的位置以便发动攻击,一旦你站起来,追踪行为立即恢复。
配置组:hurtProxy。
布娃娃状态下攻击
默认关闭,布娃娃状态玩家无法攻击。服务器端的伤害和客户端的动画及声音都会被阻止,因此即使使用战斗重构模组,躺在地板上的身体也不会播放完整的剑技连招。左键挖矿也会被阻止。但受到攻击、抓取和拖拽仍然有效。同样,这也是专为 BetterCombat 考虑的。
配置选项:attackWhileRagdolled。
恢复门控
每种退出布娃娃模式的方式都是独立的开关和一组可调参数。当门控开启时,布娃娃模组自身的过期计时器将被抑制。
- 自动起身: 稳定站立的身体会结束布娃娃状态并将你弹起。支持可配置的倾斜、速度和旋转限制以及保持时间。对于由倾斜触发的布娃娃状态,地板必须先恢复水平。
- 手动解除: 满足可配置的姿态、速度和旋转条件后,潜行即可起身。在水中潜水会立即解除。
- 故障保护: 如果玩家被困在布娃娃状态过久,无论稳定性如何都会被强制释放,以防止软锁死。
- 退出视角: 你的视角会 snap(瞬间切换)到头部实际瞄准的位置,而不是自由视角摄像机的方向。
配置组:recovery(包含 standUp、manualDismount 和 failsafe 子组)。
离线布娃娃
当玩家注销时,他们的身体会以穿着其皮肤和装备的昏迷布娃娃状态留在世界中。
- 右键点击身体以打开其物品栏。Shift 键可拾取所有物品。
- 如果安装了 Curios,Curios 槽位中的物品也会被掠夺。
- 当玩家重新登录时,他们会回到身体所在位置,保留剩余的物品栏内容。他们的实时数据在此期间保持不变,因此崩溃不会导致任何数据丢失。
- 关闭此功能会停止生成新的离线身体。现有的身体仍会在玩家登录时归还给其所有者。
配置选项:offlineRagdollEnabled。
昏迷与击晕
一种本应杀死玩家,但相对于其最大生命值而言较小的打击,会使他们直接昏迷过去,而不是死亡。
- 当生命值很低时,玩家会以一具无力的昏迷布娃娃状态存活,再受到一次伤害即死亡。
- 已经处于昏迷状态的玩家必定会真正死亡,因此补刀是有效的。
/kill 命令和虚空同样会导致死亡。
- 昏迷的玩家会在计时器结束后自行苏醒,或者如果有人将其生命值恢复到一定比例以上,则会提前苏醒。
- 昏迷状态会给予失明效果,因此从内部视角来看也是看不见的。
- 其他玩家可以对昏迷的躯体按住 Shift 并右键点击以浏览其物品栏(双向操作),并在手持任何食物、药水或消耗品时右键点击以强制喂食。被喂下的物品会经过受害者自身的处理流程,因此所有效果依然生效,且喂食者承担成本并获得任何剩余容器的返还。
- 这适用于任何仍在线的昏迷玩家。离线躯体则使用上述离线布娃娃处理逻辑。
配置组:unconscious。
死亡尸体
当玩家真正死亡时,其身体会留下一具布娃娃,持有所有原本会掉落的物品,包括 Curios 和 Accessories 模组中的物品。
- 按住 Shift 并右键点击尸体以取回你的物品。你可以从尸体中取出物品,但无法向其添加物品。
- 只有真正死亡时才会生成尸体,昏迷不会生成尸体。
- 攻击尸体会将其推开,在达到可配置的打击次数后,尸体会破碎并散落剩余的物品。
- 默认情况下,如果没有掉落物则不生成尸体,因此
keepInventory 不会让世界中充满空无一物的尸体。
- 请移除其他任何尸体模组,以避免重复生成尸体。
配置组:deathCorpse。
管理员命令
/offbalance(权限等级 2):
| 命令 |
效果 |
unconscious <targets> [true|false] |
将玩家标记为昏迷或清醒,或查询其状态 |
knockout <targets> |
使玩家在原地昏迷 |
ragdoll <targets> |
强制使玩家变为原地布娃娃状态 |
getup <targets> |
强制释放活跃的布娃娃状态,绕过稳定性检查门限 |
示例视频
如果你正在制作整合包
你可能对我用于整合包的其他模组感兴趣:
AttributeSetter
RPGDamageOverhaul
FoodAttributes
或者对于服务器/SMP 服务器,可以尝试 Claims n Raids!
An add-on for Sable Player Ragdolls that
turns ragdoll mode into a real physical state with consequences.
Everything below is on by default and can be turned off or tuned in the config. Server
settings live in the SERVER config; view and rendering settings live in the CLIENT config.
Falling off tilted sub-levels
Stand on a Sable sub-level that tilts past a threshold and your player drops into ragdoll.
- The mod raycasts down through the sub-level to find the face actually under your feet,
so a deck spun so a former wall is now the floor reads as flat, and a steep
deck reads as steep.
- Standing still raises the angle you can take before falling. Sprinting lowers it.
- After any ragdoll ends there is a short grace period before the tilt trigger can throw
you again, so you get a moment to scramble clear of a still-tilted floor.
Config group: ragdoll (ragdollAngle, standingStillAngleBonus, sprintingAngleReduction).
Tilted view and entity rendering
- Your first-person view (and your aim) tilts to line up with the surface you are standing
on, with configurable smoothing.
- Other entities render aligned to the surface normal of the sub-level they stand on.
Config group: rendering (viewTilted, entitiesTilted, smoothSpeed).
Active balance
While a conscious ragdolled player has their feet near the ground, the body fights to stay
standing the way a Euphoria-style physics character would.
- Legs step to catch the fall and stagger toward the capture point.
- The torso is righted by tunable "core muscles", the head is held level, and the arms
windmill harder the more unstable the body is.
- Leg support only pushes while a foot is actually touching ground, so it can never
levitate a fallen body, and all of it is bounded so it cannot blow the light ragdoll
parts apart.
- On a tilted sub-level the deck is treated as the floor: the body stands perpendicular
to it and resists sliding, up to a configurable tilt, then gives up and tumbles down
the slope past a second configurable tilt.
- A body that stays stably standing gets back up on its own.
Config group: balance.
Limb flailing
A conscious ragdolled player's arms and legs whip around while airborne, from a fall or an
explosion launch. Unconscious players stay limp. Pure visual juice.
Config group: flail.
Knockback
Hitting an active ragdoll shoves it and can tip it off its feet.
- The blow pushes the body the way the swing went and topples the whole linked body about
its support, plus a small linear kick, plus an extra kick on the limb that was struck.
- Optionally scales with the damage dealt, so a heavy weapon knocks harder than a fist.
- Reacts to the ragdolled player taking damage rather than to a specific attack event, so
it works with vanilla melee and with combat overhauls alike, with no hard dependency.
Config group: knockback.
Hurt proxy
A ragdolled player's own entity is deliberately un-hittable by design, and combat mods
that find targets by scanning for entities cannot touch it. This add-on puts an invisible
stand-in hitbox on every active ragdoll. This is made with specifically BetterCombat in mind,
but also allows mobs to attack ragdolled players.
- Weapon mods hit the hitbox, and the damage passes straight to the real player. PVP
rules, armor, and immunity frames all still apply.
- Mobs that target a ragdolled player are sent to where the body actually lies so they can
land a blow, and pursuit is handed back the instant you stand up.
Config group: hurtProxy.
Attacking while ragdolled
Off by default, a ragdolled player cannot attack. Both the server-side damage and the
client-side animation and sound are blocked, so a combat overhaul does not play a full
sword combo from a body on the floor. Left-click mining is blocked too. Being hit,
grabbing, and dragging still work. Again, this was all made with BetterCombat in mind.
Config option: attackWhileRagdolled.
Recovery gate
Every way out of ragdoll mode is its own toggle and set of tunables. While the gate is on,
the ragdoll mod's own expiry timers are suppressed.
- Auto stand-up: a stably standing body ends the ragdoll and pops you back up.
Configurable tilt, speed, and spin limits and a hold time. For tilt-triggered ragdolls,
the floor must have leveled back out first.
- Manual dismount: sneak to get up once configurable posture, speed, and spin criteria
hold. Submerging in water dismounts immediately.
- Failsafe: a player locked in ragdoll too long is force-released regardless of
stability, so nobody softlocks.
- View on exit: your view snaps to where the head was actually aiming rather than the
free-look camera direction.
Config group: recovery (with standUp, manualDismount, and failsafe sub-groups).
Offline ragdolls
When a player logs out, their body stays in the world as an unconscious ragdoll wearing
their skin and gear.
- Right-click the body to open its inventory. Shift to grab everything.
- Curios slots are looted too when Curios is present.
- When the player logs back in they return to the body with whatever inventory is left.
Their live data is untouched until then, so a crash cannot lose anything.
- Turning the feature off stops new offline bodies from being made. Existing ones are
still returned to their owner on login.
Config option: offlineRagdollEnabled.
Unconsciousness and knockouts
A blow that would kill a player, but is small relative to their maximum health, knocks them
out cold instead of killing them.
- They stay alive as a limp unconscious ragdoll on low health, one hit from death.
- A player who is already unconscious always dies for real, so finishing someone off works.
/kill and the void always kill too.
- Knocked-out players wake on their own after a timer, or sooner if someone heals them past
a health fraction.
- Being out cold gives Blindness so it reads from the inside.
- Other players can shift-right-click an unconscious body to go through its inventory (both
ways), and right-click it holding any food, potion, or consumable to force-feed it. The
fed item runs through the victim's own use pipeline so every effect still applies, and
the feeder pays the cost and gets any leftover container back.
- This applies to any unconscious player who is still online. Offline bodies use the
offline-ragdoll handling above.
Config group: unconscious.
Death corpses
When a player actually dies, their body is left as a ragdoll holding everything that would
have dropped, including Curios and Accessories items.
- Shift-right-click the corpse to take your items back. You can take from a corpse but
never add to it.
- A corpse is only made for a real death, never for a knockout.
- Striking a corpse shoves it, and after a configurable number of hits it breaks and
scatters its remaining items.
- By default no corpse spawns when nothing dropped, so keepInventory does not litter the
world with empty bodies.
- Remove any other corpse mod so bodies are not spawned twice.
Config group: deathCorpse.
Admin commands
/offbalance (permission level 2):
| Command |
Effect |
unconscious <targets> [true|false] |
Mark players unconscious or conscious, or query their state |
knockout <targets> |
Put players out cold where they stand |
ragdoll <targets> |
Force players into ragdoll where they stand |
getup <targets> |
Force-release active ragdolls, bypassing the stability gate |
Example Videos
If you are building a modpack
you might be interested in some of my other mods for modpacks:
AttributeSetter
RPGDamageOverhaul
FoodAttributes
Or Claims n Raids for servers/smp!
评论 0
登录后参与评分
还没有评论,来抢沙发吧