REPO_JP-AllPlayerCommands icon

AllPlayerCommands

【Host Only MOD】Host chat commands that execute actions on all participants. ホストが全参加者へ一括実行するチャットコマンドMOD

By REPO_JP
Last updated a week ago
Total downloads 9011
Total rating 8 
Categories Mods Tools Server-side
Dependency string REPO_JP-AllPlayerCommands-1.5.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2304 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2304

README

AllPlayerCommands

Host-only chat command mod for R.E.P.O. that lets the host execute commands against all participants from in-game chat. No config is required. Everything is controlled through chat commands.

Overview

AllPlayerCommands hooks the chat send event and allows the host to run bulk commands against every detected PlayerAvatar. It is intended for testing, hosting, event play, debugging, and quick party control.

Version 1.5.0 keeps all commands from previous versions and improves the reliability of Summon All and Truck All. Living players are now prepared and teleported with a more stable sequence. Dead players are moved by teleporting their death-head / corpse object directly. When the host is dead, Summon All can now use the current spectate target as the summon destination.

Host-only Behavior

This mod executes commands only when all conditions below are met.

  • The sender is the local player
  • The local player is the host (Master Client) or singleplayer host
  • The chat message starts with /

If a non-host enters the same commands, the mod does not execute them. Depending on game state, they may simply be sent as normal chat.

Installation

  • Place AllPlayerCommands.dll into your BepInEx plugins folder
  • Start the game
  • Host a lobby or start singleplayer
  • Open chat and enter a command

Quick Start

Examples.

/ra
/ha
/sa
/ta
/kba 10
/dga 25
/hga 50
/exa 4
/ttsa Hello everyone
/tumbleall 3
/hpmaxall 200
/flickerall 2
/animspeedall 0.5 0.05 0.2 3
/pupilall 1.8 10 25 0.8 12 0.8 3
/tumblewingsall pink
/raka

Full Command Reference

1) Kill All

Kills all detected players.

Aliases.

  • /ka
  • /killall
  • /killallplayers
  • /killplayerall

Behavior.

  • Sends an immediate forced death call to each detected player
  • Intended for host-side event control or testing

2) Revive All

Revives all dead players.

Aliases.

  • /ra
  • /reviveall
  • /reviveallplayers
  • /reviveplayerall

Behavior.

  • Only dead players are affected
  • Uses the death-head based revive path so the revive is forced cleanly

3) Heal Full All

Fully heals all players.

Aliases.

  • /ha
  • /healall
  • /healallplayers
  • /healplayerall

Behavior.

  • Applies a very large heal amount internally
  • Intended to bring all players back to full health quickly

4) Summon All to Host / Spectate Target

Teleports all players to the host. If the host is dead, the summon destination can become the current spectate target.

Aliases.

  • /sa
  • /summonall
  • /summonallplayers
  • /summonplayerall

Behavior.

  • Living players are prepared before teleport
  • Preparation includes tumble clear, stand-up request, and movement stabilization
  • Dead players are not revived and are moved by teleporting their death-head / corpse object directly

Version 1.5.0 teleport destination rules.

  • If the host is alive, summon destination is the host
  • If the host is dead and spectating someone, summon destination is that spectated player
  • If that spectated player is also dead, summon destination is that spectated player's death head
  • If no valid spectate target exists, summon falls back to the host death head

Purpose.

  • Gather everyone to the host or watched player quickly
  • Useful for events, regrouping, debugging, and custom game modes

5) Return All to Truck

Teleports all players to the truck safety spawn point.

Aliases.

  • /ta
  • /truckall
  • /truckallplayers
  • /returntotruckall

Behavior.

  • Living players are prepared before teleport just like Summon All
  • Dead players are moved by teleporting their death-head / corpse object directly
  • Destination is the truck safety spawn point

Purpose.

  • Force regroup at the truck
  • Reset the party position quickly after a fight or event

6) Knockback All

Applies knockback to all players.

Aliases.

  • /kba
  • /knockbackall
  • /knockall
  • /impulseall

Syntax.

/kba [strength]

Parameters.

  • strength (int, optional, default 5)

Behavior.

  • Applies an impulse to all players
  • When possible, direction is calculated from host to target
  • Also adds a small upward component

Examples.

/kba
/kba 15

7) Damage All

Deals damage to all players.

Aliases.

  • /dga
  • /damageall
  • /hurtall
  • /hitall

Syntax.

/dga [damage]

Parameters.

  • damage (int, optional, default 10)

Examples.

/dga
/dga 30

8) Heal Amount All

Heals all players by a specified amount.

Aliases.

  • /hga
  • /healamountall
  • /healaddall
  • /healplusall

Syntax.

/hga [amount]

Parameters.

  • amount (int, optional, default 10)

Examples.

/hga
/hga 25

9) Expression All

Changes facial expression index for all players.

Aliases.

  • /exa
  • /expressionall
  • /faceall
  • /emoteall

Syntax.

/exa [index]

Parameters.

  • index (int, optional, default 4)

Behavior.

  • Safely checks expression list bounds before applying
  • Useful for synchronized reactions or event scenes

Examples.

/exa
/exa 2

10) TTS All

Makes all players speak a TTS / chat message.

Aliases.

  • /ttsa
  • /ttsall
  • /sayall
  • /speakall

Syntax.

/ttsa [message]

Parameters.

  • message (string, optional, default Hello!!!)

Behavior.

  • Sends a message through each player's chat / speech path
  • If the message starts with /, the mod prepends a space to avoid command-style parsing issues

Examples.

/ttsa Hello!!!
/ttsa Welcome back

11) Tumble Wings All

Forces tumble wings visuals for all players.

Aliases.

  • /tumblewingsall
  • /wingsall
  • /wa

Syntax.

/tumblewingsall on
/tumblewingsall off
/tumblewingsall pink

Modes.

  • on = regular wings visuals
  • off = disable wings visuals
  • pink = pink wings mode with a 0.5 second keep-alive loop

Behavior.

  • Pink wings are reapplied every 0.5 seconds because that visual can expire quickly

Examples.

/wa on
/wa pink
/wa off

12) Tumble All

Forces tumble state for all players. Supports on, off, or timed mode.

Aliases.

  • /tba
  • /tumbleall

Syntax.

/tumbleall on
/tumbleall off
/tumbleall [seconds]

Parameters.

  • seconds (float, optional, default 3.0 when numeric mode is used)

Behavior.

  • /tumbleall on keeps tumble enabled until another command changes it
  • /tumbleall off disables tumble
  • /tumbleall 3 enables tumble, waits 3 seconds, then disables it
  • /tumbleall with no argument is treated as timed mode and defaults to 3 seconds

Examples.

/tba on
/tba off
/tba 5

13) HP Max All

Sets max HP for all players.

Aliases.

  • /hpmaxall
  • /hpmaxa

Syntax.

/hpmaxall [max]

Parameters.

  • max (int, optional, default 200, minimum 1)

Behavior.

  • Uses UpdateHealthRPC for synchronization
  • Reads current HP / max HP before updating
  • Current HP is clamped to the new max and never set below 1

Examples.

/hpmaxall
/hpmaxall 300

14) Flicker All

Triggers flashlight flicker for all players.

Aliases.

  • /flickerall
  • /flickera

Syntax.

/flickerall [multiplier]

Parameters.

  • multiplier (float, optional, default 2.0, minimum 0)

Examples.

/flickerall
/flickerall 4

15) Anim Speed All

Overrides animation speed settings for all players via RPC.

Aliases.

  • /animspeedall
  • /animspeeda
  • /asall
  • /animall

Syntax.

/animspeedall off
/animspeedall [speed] [inSec] [outSec] [time]

Parameters.

  • speed (float, default 0.5)
  • inSec (float, default 0.05)
  • outSec (float, default 0.2)
  • time (float, default 3.0)

Behavior.

  • off sends a disable RPC with safe reset timing values
  • Lets the host temporarily exaggerate or damp animation playback

Examples.

/animspeedall off
/animspeedall 0.5 0.05 0.2 3
/animspeedall 2 0.05 0.2 5

16) Pupil All

Overrides pupil size settings for all players via RPC.

Aliases.

  • /pupilall
  • /pupila
  • /eyesall

Syntax.

/pupilall off
/pupilall [mult] [prio] [springIn] [dampIn] [springOut] [dampOut] [time]

Parameters.

  • mult (float, default 1.8)
  • prio (int, default 10)
  • springIn (float, default 25)
  • dampIn (float, default 0.8)
  • springOut (float, default 12)
  • dampOut (float, default 0.8)
  • time (float, default 3.0)

Behavior.

  • off disables the override and sends a short reset timing
  • Useful for funny events, fear scenes, or synchronized visual changes

Examples.

/pupilall off
/pupilall 1.8 10 25 0.8 12 0.8 3

17) Falling All

Overrides the falling flag for all players via RPC.

Aliases.

  • /fallingall
  • /fallinga
  • /fallall

Syntax.

/fallingall on
/fallingall off

Behavior.

  • No argument defaults to on

Examples.

/fallingall on
/fallingall off

18) Reset Push All

Resets phys pusher state for all players via RPC.

Aliases.

  • /resetpushall
  • /resetpusha
  • /rpa
  • /pushresetall

Syntax.

/resetpushall

Purpose.

  • Useful when players are stuck in odd push / force states

19) Chained Short Commands

Executes multiple short commands in sequence.

Supported tokens.

  • ra = revive all
  • ha = heal full all
  • ka = kill all

Syntax examples.

/raka
/raha
/rahaka

Behavior.

  • Chained parsing only works with 2-letter tokens and no parameters
  • Order is preserved exactly as typed
  • Only ra, ha, ka are accepted in chained mode

Examples.

  • /raka = revive all, then kill all
  • /raha = revive all, then heal all
  • /rahaka = revive all, heal all, then kill all

Technical Notes

Player Target Resolution

The mod collects player targets with this strategy.

  • First tries SemiFunc.PlayerGetList()
  • Falls back to Resources.FindObjectsOfTypeAll<PlayerAvatar>()
  • Deduplicates by Unity instance ID

This improves reliability across different scenes and player states.

Error Handling

The mod uses broad null checks and try/catch blocks around per-player execution. If one target fails, the remaining players continue.

Logging

Logs use the [AllPlayerCommands] prefix and are written to both.

  • Unity console
  • BepInEx logger

Teleport Reliability in v1.5.0

Summon All and Truck All now use a more reliable teleport flow.

Living targets.

  • Tumble clear
  • Stand-up request
  • Velocity reset
  • Spawn(...)
  • Tumble rigidbody teleport
  • Final direct transform correction
  • Retry across multiple frames

Dead targets.

  • Death-head / corpse teleport only
  • No revive attempt
  • Velocity reset applied to corpse movement path

This is the core reason teleport reliability is much better in v1.5.0.

Notes

  • This mod is host-only
  • Commands are triggered from chat send events
  • No config entries are required in this version

※Mod created by AI

AllPlayerCommands

REPOが好きな日本人のための日本人のみのREPOのDiscordサーバーあります! 参加は以下のリンクから! https://discord.gg/h5ATY4m5bZ

R.E.P.O.向けのホスト専用チャットコマンドMODです。 ゲーム内チャットから、ホストが全参加者へ一括コマンドを実行できます。 設定ファイル不要です。

概要

AllPlayerCommands はチャット送信イベントをフックし、ホストが全 PlayerAvatar に対して管理用 / 検証用コマンドを実行できるようにします。

v1.5.0 では、既存の全コマンドを維持したまま、Summon AllTruck All の転送安定性を大きく改善しています。 生存者は立ち上がりや速度初期化を行ってから安定したシーケンスで転送され、死亡者は死体頭 / 死体オブジェクトを直接テレポートするように変更されています。 さらに、ホスト死亡中の Summon All は、可能であれば現在の観戦対象者を召喚先として使うようになりました。

ホスト専用の動作条件

このMODは以下の条件をすべて満たしたときだけコマンドを実行します。

  • 送信者がローカルプレイヤー本人
  • ローカルプレイヤーがホスト(Master Client)またはシングルプレイのホスト
  • チャットメッセージが / で始まる

非ホストが同じコマンドを入力しても、このMODは実行しません。 ゲームの状態によっては通常チャットとして送信されます。

導入方法

  • AllPlayerCommands.dll を BepInEx の plugins フォルダに配置
  • ゲームを起動
  • ロビーをホストする、またはシングルプレイを開始
  • チャットを開いてコマンドを入力

クイックスタート

使用例です。

/ra
/ha
/sa
/ta
/kba 10
/dga 25
/hga 50
/exa 4
/ttsa Hello everyone
/tumbleall 3
/hpmaxall 200
/flickerall 2
/animspeedall 0.5 0.05 0.2 3
/pupilall 1.8 10 25 0.8 12 0.8 3
/tumblewingsall pink
/raka

全コマンド詳細

1) Kill All

全プレイヤーを強制死亡させます。

別名。

  • /ka
  • /killall
  • /killallplayers
  • /killplayerall

挙動。

  • 検出された全プレイヤーに対して即時の死亡呼び出しを行います
  • テスト、イベント進行、状況リセットに向いています

2) Revive All

死亡中のプレイヤーを全員蘇生します。

別名。

  • /ra
  • /reviveall
  • /reviveallplayers
  • /reviveplayerall

挙動。

  • 死亡中のプレイヤーだけが対象です
  • death head 経由の蘇生処理を使って安全に蘇生します

3) Heal Full All

全員を全回復させます。

別名。

  • /ha
  • /healall
  • /healallplayers
  • /healplayerall

挙動。

  • 内部的には非常に大きい回復量を使って全快にします

4) Summon All

全員をホスト位置へ召喚します。 ホスト死亡中は観戦対象が召喚先になります。

別名。

  • /sa
  • /summonall
  • /summonallplayers
  • /summonplayerall

挙動。

  • 生存者は立ち上がり・タンブル解除・速度初期化などの準備後に転送されます
  • 死亡者は蘇生せず、死体頭 / 死体オブジェクトを直接テレポートします

v1.5.0 の召喚先ルール。

  • ホストが生存中ならホスト本体へ召喚
  • ホストが死亡中で誰かを観戦しているなら、その観戦対象へ召喚
  • 観戦対象も死亡中なら、その観戦対象の死体頭へ召喚
  • 有効な観戦対象がなければホストの死体頭へフォールバック

用途。

  • パーティーの再集合
  • デバッグ時の位置合わせ
  • イベント進行

5) Truck All

全員をトラック安全地点へ転送します。

別名。

  • /ta
  • /truckall
  • /truckallplayers
  • /returntotruckall

挙動。

  • 生存者は Summon All と同様の準備をしてから転送します
  • 死亡者は死体頭 / 死体オブジェクトを直接トラック側へ転送します

用途。

  • 全員帰還
  • 戦闘後のリセット
  • トラック集合イベント

6) Knockback All

全員にノックバックを与えます。

別名。

  • /kba
  • /knockbackall
  • /knockall
  • /impulseall

構文。

/kba [strength]

引数。

  • strength(int、省略可、既定値 5

挙動。

  • 可能な場合はホストから対象への方向を基準に吹き飛ばします
  • 少し上方向の力も加えます

使用例。

/kba
/kba 15

7) Damage All

全員に指定ダメージを与えます。

別名。

  • /dga
  • /damageall
  • /hurtall
  • /hitall

構文。

/dga [damage]

引数。

  • damage(int、省略可、既定値 10

使用例。

/dga
/dga 30

8) Heal Amount All

全員を指定量だけ回復します。

別名。

  • /hga
  • /healamountall
  • /healaddall
  • /healplusall

構文。

/hga [amount]

引数。

  • amount(int、省略可、既定値 10

使用例。

/hga
/hga 25

9) Expression All

全員の表情インデックスを設定します。

別名。

  • /exa
  • /expressionall
  • /faceall
  • /emoteall

構文。

/exa [index]

引数。

  • index(int、省略可、既定値 4

挙動。

  • expression 配列の範囲外アクセスを防いでから適用します
  • 同時リアクションやイベント演出向けです

使用例。

/exa
/exa 2

10) TTS All

全員にTTS / チャット発話を行わせます。

別名。

  • /ttsa
  • /ttsall
  • /sayall
  • /speakall

構文。

/ttsa [message]

引数。

  • message(string、省略可、既定値 Hello!!!

挙動。

  • 各プレイヤーの発話経路でメッセージを送ります
  • 先頭が / の文字列はコマンド誤認防止のため先頭にスペースを足します

使用例。

/ttsa Hello!!!
/ttsa Welcome back

11) Tumble Wings All

全員のタンブル羽ビジュアルを強制します。

別名。

  • /tumblewingsall
  • /wingsall
  • /wa

構文。

/tumblewingsall on
/tumblewingsall off
/tumblewingsall pink

モード。

  • on = 通常羽表示
  • off = 羽表示無効
  • pink = 0.5秒ごと再付与のピンク羽モード

挙動。

  • ピンク羽は自然に消えやすいため維持ループで再付与します

使用例。

/wa on
/wa pink
/wa off

12) Tumble All

全員のタンブル状態を強制します。 ON / OFF / 時間指定に対応しています。

別名。

  • /tba
  • /tumbleall

構文。

/tumbleall on
/tumbleall off
/tumbleall [seconds]

引数。

  • seconds(float、省略可、数値モード時の既定値 3.0

挙動。

  • /tumbleall on は解除されるまで継続
  • /tumbleall off は解除
  • /tumbleall 3 は 3 秒後に自動解除
  • /tumbleall は引数なしでも 3 秒モード扱い

使用例。

/tba on
/tba off
/tba 5

13) HP Max All

全員の最大HPを変更します。

別名。

  • /hpmaxall
  • /hpmaxa

構文。

/hpmaxall [max]

引数。

  • max(int、省略可、既定値 200、最小 1

挙動。

  • UpdateHealthRPC で同期します
  • 現在HPは新しい最大値に合わせて補正されます
  • 1 未満にはなりません

使用例。

/hpmaxall
/hpmaxall 300

14) Flicker All

全員のライトをフリッカーさせます。

別名。

  • /flickerall
  • /flickera

構文。

/flickerall [multiplier]

引数。

  • multiplier(float、省略可、既定値 2.0、最小 0

使用例。

/flickerall
/flickerall 4

15) Anim Speed All

全員のアニメ速度上書きを RPC で行います。

別名。

  • /animspeedall
  • /animspeeda
  • /asall
  • /animall

構文。

/animspeedall off
/animspeedall [speed] [inSec] [outSec] [time]

引数。

  • speed(float、既定値 0.5
  • inSec(float、既定値 0.05
  • outSec(float、既定値 0.2
  • time(float、既定値 3.0

挙動。

  • off は解除用 RPC を送ります
  • アニメ速度を遅くしたり速くしたりできます

使用例。

/animspeedall off
/animspeedall 0.5 0.05 0.2 3
/animspeedall 2 0.05 0.2 5

16) Pupil All

全員の瞳孔サイズ上書きを RPC で行います。

別名。

  • /pupilall
  • /pupila
  • /eyesall

構文。

/pupilall off
/pupilall [mult] [prio] [springIn] [dampIn] [springOut] [dampOut] [time]

引数。

  • mult(float、既定値 1.8
  • prio(int、既定値 10
  • springIn(float、既定値 25
  • dampIn(float、既定値 0.8
  • springOut(float、既定値 12
  • dampOut(float、既定値 0.8
  • time(float、既定値 3.0

挙動。

  • off は解除用 RPC を送ります
  • 演出やイベント用に目の見た目を強く変えられます

使用例。

/pupilall off
/pupilall 1.8 10 25 0.8 12 0.8 3

17) Falling All

全員の落下フラグを RPC で上書きします。

別名。

  • /fallingall
  • /fallinga
  • /fallall

構文。

/fallingall on
/fallingall off

挙動。

  • 引数省略時は on 扱いです

使用例。

/fallingall on
/fallingall off

18) Reset Push All

全員の Phys Pusher 状態をリセットします。

別名。

  • /resetpushall
  • /resetpusha
  • /rpa
  • /pushresetall

構文。

/resetpushall

用途。

  • 押し戻しや位置ズレが変になった時の復旧向けです

19) 連結短縮コマンド

短縮コマンドを順番に連続実行します。

対応トークン。

  • ra = 全員蘇生
  • ha = 全員全回復
  • ka = 全員キル

構文例。

/raka
/raha
/rahaka

挙動。

  • 2文字トークンだけで構成された文字列のみ有効です
  • 順番は入力通りです
  • 引数付きコマンドは使えません

例。

  • /raka = 蘇生 → キル
  • /raha = 蘇生 → 全回復
  • /rahaka = 蘇生 → 全回復 → キル

技術メモ

プレイヤー取得方法

対象プレイヤーの取得は次の順です。

  • まず SemiFunc.PlayerGetList()
  • 取得できない場合は Resources.FindObjectsOfTypeAll<PlayerAvatar>()
  • Unity instance ID で重複排除

エラーハンドリング

各プレイヤー処理は広めの null チェックと try/catch で保護されています。 1人で失敗しても全体が止まりにくい構成です。

ログ

ログは [AllPlayerCommands] プレフィックスで以下へ出力されます。

  • Unity コンソール
  • BepInEx ロガー

v1.5.0 の転送安定化

Summon AllTruck All は次のような安定化を行っています。

生存者。

  • タンブル解除
  • 立ち上がり要求
  • 速度初期化
  • Spawn(...)
  • tumble rigidbody の teleport
  • 最後に transform 直接補正
  • 複数フレーム再試行

死亡者。

  • 死体頭 / 死体オブジェクトだけを直接 teleport
  • revive はしない
  • 死体側の速度も初期化

これが v1.5.0 での安定性改善の本体です。

補足

  • このMODはホスト専用です
  • コマンド実行はチャット送信イベントから行います
  • このバージョンでは設定ファイルは不要です

※AI生成MOD