Kelvin Fights
[Experimental - being tested in multiplayer, may have bugs] Kelvin fights cannibals and mutants with real moves, in a style you pick in his notepad, and with the weapons you give him.[Experimental - being tested in multiplayer, may have bugs]
Kelvin Fights
What it does: Kelvin fights the cannibals and mutants near him with real moves, in the style you pick for him.
How to use: Open his notepad, pick a style on the fight page, and give him a weapon through his give bag if you like.
Multiplayer: The host installs it; guests who also have it see his moves and steps.
Kelvin fights cannibals and mutants with real moves, in the fighting style you pick for him in his notepad.
What it does
- Fight page in his notepad: pick a style for each Kelvin: Brawl, Boxing, Karate, Kickboxing, Taekwondo, Wrestling, Cannibal, Muay Thai, Wing Chun, MMA, Capoeira, or Avoid fights. He shows a short demo of the style when you pick it. A Kelvin stays as in the game until you pick a style for him. Each Kelvin keeps his own style, saved per game.
- He goes for enemies near him: he fights like a cannibal and chooses what to do the way the game's cannibals choose, with their own distances, angles, chances and waits: at close range a strike, a combo, a block, a dodge, backing away or circling; farther away a lunge, a walk-in, a running attack, flanking to the side, walking closer, watching or a taunt (he taunts once as a fight starts). He moves like them too: he speeds up, slows down to stop where he is going, turns gradually and slows in his turns, at the speeds of their own walk, run and side steps. He moves with the cannibals' own steps and steps back when he is hurt before coming back. Each strike goes to the body part its blow is made for (head, chest, hips or legs), never bent toward another. He prefers an enemy still standing; one lying on the ground gets his style's ground strikes (a kick into the body bare-handed, the weapon's own ground attack, a shot aimed down;
StrikeDownedEnemies), at most two Kelvins fight the same enemy, and every change of movement fades smoothly. Any other order from his notepad makes him leave the fight for a while (10 s by default). - Cannibal style: the cannibals' own attacks, blocks and dodges, played on Kelvin.
- Weapons: give him a weapon through his give bag, as you do with Virginia:
- Each weapon has its own moves, the ones the game plays for it: blades, axes, clubs, the taser stick, the chainsaw, the spear, the rock… and the flare, golf ball and severed limbs he throws. The guitar, shovel, rope gun and repair tool are not taken (the game has no attack for them).
- Guns, bows, the crossbow, the slingshot, grenades and molotovs: he shoots or throws at range, with the weapon's own projectiles and damage, and never runs out of ammo.
- Weapons the game's bag has no place for get one of their own, at real size, on the page of their type or on another page with room (a katana may lie among the plants): only the ones you own show. The crossbow, crafted bow, spear and fire axe are too large for any page and cannot be given.
- One weapon at a time: giving another swaps them (the old one back to your inventory), the same one is refused. Take it back with "Give back the weapon" in his notepad: into your inventory, on the ground only if it is full. If he dies, it drops on the ground.
- No knock-out from one blow: while he fights, his health is larger (2 times by default) and comes back to normal when the fight ends, keeping him on his feet if he is still standing.
- His own levels in the settings: each Kelvin's section of the settings ("Kelvin 1", "Kelvin 2"…, shown once he is in your game) has his levels (Off, Soft, Normal, Strong) for how his body moves in a fight and how he fights: his strength, his share of parries against dodges, how often his defences work and how long his guard lasts, among others. Levels picked in his notepad in earlier versions are kept.
- Reading the fight: against several enemies he turns to the one swinging at him and steps out from between them so none stands behind him; he defends only against blows aimed at him and never through a wall; he follows up at once on a stunned enemy; the last blow of his combinations can stagger an enemy as a player's combo finisher does.
PerfectDodges(off by default) makes him dodge every melee blow.
Multiplayer
- Install it on the host. The host runs the fights for everyone: every choice (when he strikes, defends, steps, what he aims at) and every point of damage is decided there, with the host's settings. Guests who also install it see his moves; players without it see him through the game alone.
- Guests who also install it can also pick his style and give him weapons, unless the host sets
WhoCanChangetoHostOnly. A weapon the host's settings refuse goes back to the guest. - Host and guests need the same version of the mod: a guest with another version gets a message on screen, and both logs say so.
- Dedicated servers: not supported (the mod talks through the host's Steam lobby).
What each player sees:
| Part of the fight | Host | Guest with the mod | Guest without the mod |
|---|---|---|---|
| His steps: walk, run and sprint blended by his speed, side steps, steps back, turns on the spot, the start and stop of a sprint | His own walk, run and sprint clips, feet on the ground | The same clips, run from the host's speed, direction and turns (his position comes from the host) | His position only: his body slides in the game's own animation |
| Feet planted during strikes and dodges | Yes | Yes, placed on that guest's machine from what it sees | The game's own pose |
| Strikes: the move, its overshoot, the limb reaching the body part aimed at | Yes | The same move and shape, his taunts and his style demos; the damage is the host's | Enemies take the hits; Kelvin stays in his standing pose, no swing sounds |
| Living body: lean, bounce, loose arms, chest and head toward his enemy | Yes | Yes, with the host's levels for him | Nothing |
| Parries, dodges, counters, the parried attacker pushed back | Yes | His defence poses (not the limb placed across the blow, not the attacker's tilt) | The game's knockback of the attacker, Kelvin standing |
| Blows he takes | Heavy: the game's reaction. Light: pushed back, chest and head flinch | The same | Heavy: the game's reaction. Light: the push only (set LightReactionsReplaceGame off to keep the game's hit animation for them) |
| How he picks his moments: reading a blow on its way, the distance he keeps, his pause after a miss, his aggression | Yes | The result: his position, guard and moves | The result: his position |
| Enemies in a tree or behind a wall, several enemies, stunned enemies, perfect dodges, combo finishers | Yes | The result: his position and moves | His position, and the game's own stagger of the enemy |
Friendly fire (FriendlyFire, on by default) |
His blows also hurt any player in their way, host or guest, as a cannibal's blow does; he never aims at a player | The same | The same |
| Footwork of each style, wrestling moves, creature moves and falls, key poses | Yes | The same (same tables in the mod) | The game's own animation |
| Weapons: the one in his hand, its moves, its size | Yes | Yes | No weapon in his hand |
| Ground strikes on an enemy lying down | Yes | The same move | The enemy takes the hits; Kelvin stays in his standing pose |
Settings
In BepInEx/config/aznan.sotf.kelvinfights.cfg, or in the Mods tab of the optional Mod Config Menu mod:
- Fight: the default style for new Kelvins (Avoid fights), which enemies he goes for and how far, the cannibal steps, how often he picks each of the cannibals' behaviours, his run speed, when he steps back after a hit, the pause after your orders, the smooth transitions, his health in a fight, how hard and how heavy his strikes hit, his aggression, friendly fire, several enemies, stunned enemies, perfect dodges, combo finishers.
- Kelvin 1, Kelvin 2…: one section per Kelvin of your game (his number shows when you pick his style). Turn on
OwnSettingsand that Kelvin uses his own fight settings (how far he goes for enemies, frozen enemies, cannibal steps, health, damage, stepping back after a hit, pause after your orders) instead of the shared ones. Kept per game. Set by the host. - Weapons: which items he accepts, which weapon names give which fighting style, and
WeaponPlaces(the bag places of the weapons the game has none for). - Sounds (the game's swing whoosh), Advanced (fine tuning: distances, rhythm, blocks and dodges, the game's internal names), Texts (texts follow the game's language: English or French), Multiplayer, Performance.
- Debug:
FullLoggingwrites every decision to the log, and everyCostLogSecondswhat the mod costs per frame.
Every strike is a line you can change: BepInEx/config/aznan.sotf.kelvinfights.moves.txt holds the whole table (damage, distance, body part aimed at, pause after it), commented out. Remove the # of a line to change it.
Performance
Without an enemy around, the mod only checks every 0.1 s whether a fighting Kelvin sees one. During a fight, each fighting Kelvin decides every 0.1 s, and his moves cost a few bone writes per frame. With FullLogging, the log gives the measured cost per frame.
Contact
Contact me on X (@aznantriks) or Reddit (u/aznan-triks).
Credits
- Motion capture: the data used in this project was obtained from mocap.cs.cmu.edu. The database was created with funding from NSF EIA-0196217. The moves were retargeted onto Kelvin's skeleton.
- Fight captures from Rokoko's free fight animations (rokoko.com), retargeted onto Kelvin's skeleton.
- Moves from Mixamo (Adobe), used under its terms: only the moves retargeted onto Kelvin's skeleton ship, no Mixamo file.
- Kicks, capoeira and martial footwork from the Open Motion Project by ACCAD/The Ohio State University (accad.osu.edu), licensed CC BY 3.0. Changed: cut, retargeted onto Kelvin's skeleton, some joints held in human ranges, one side step played backwards.
- The cannibal moves and the weapon animations are the game's own, played from the game. They are not included in this mod.
