AllPlayerCommands
Host-only all-player commands: kill/revive/heal/summon/truck, knockback/damage/heal+/emote/TTS, tumble/wings, HP max, flicker, anim/pupil. ホスト専用全員コマンド。キル/蘇生/回復/召喚/トラックTP、KB/ダメ/回復量/表情/TTS、タンブル/羽、最大HP、点滅、アニメ/瞳孔
By REPO_JP
| Last updated | 4 days ago |
| Total downloads | 2839 |
| Total rating | 3 |
| Categories | Mods Server-side |
| Dependency string | REPO_JP-AllPlayerCommands-1.2.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2304README
AllPlayerCommands
Host-only chat command mod for R.E.P.O. that applies actions to all players. No config required. Everything is controlled from in-game chat commands.
Overview
AllPlayerCommands hooks chat send events and lets the host (Master Client) run admin/test commands against every detected PlayerAvatar.
Version 1.2.0 is a major expansion from 0.1.0. The original release only covered 5 basic commands (kill / revive / full heal / summon / truck return). This version adds many new control commands, timed actions, pink wings keep-alive, chained shortcuts, and broader player-state control.
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 types these commands, the mod does not execute them. They may be sent as normal chat depending on the game state.
Installation
- Place
AllPlayerCommands.dllinto your BepInEx plugins folder - Start the game
- Host a lobby (or singleplayer)
- Open chat and send commands
Quick Start
Examples.
/ra
/ha
/sa
/ttsa Hello everyone
/tumbleall 3
/hpmaxall 200
/tumblewingsall pink
/animspeedall 0.5 0.05 0.2 3
/pupilall 1.8 10 25 0.8 12 0.8 3
Full Command Reference
1) Kill All
Kills all detected players.
Aliases.
/ka/killall/killallplayers/killplayerall
Notes.
- Immediate forced death call for each target
2) Revive All
Revives all dead players.
Aliases.
/ra/reviveall/reviveallplayers/reviveplayerall
Notes.
- Only revives players that are currently dead
- Uses the player death head extraction flag workaround before revive
3) Heal Full All
Fully heals all players.
Aliases.
/ha/healall/healallplayers/healplayerall
Notes.
- Internally uses a large heal amount (
HealOther(9999, true))
4) Summon All to Host
Teleports all players to the host.
Aliases.
/sa/summonall/summonallplayers/summonplayerall
Notes.
- Runs a stand-up step first to reduce tumble-related issues before teleport
- If a target is dead, teleport logic attempts to move the death head object
5) Return All to Truck
Teleports all players to the truck safety spawn point.
Aliases.
/ta/truckall/truckallplayers/returntotruckall
Notes.
- Runs a stand-up step first to reduce tumble-related issues before teleport
6) Knockback All
Applies knockback to all players.
Aliases.
/kba/knockbackall/knockall/impulseall
Syntax.
/kba [strength]
Parameters.
strength(int, optional, default5)
Notes.
- Knockback direction is calculated from host to target when possible
- Adds a small upward impulse component
7) Damage All
Deals damage to all players.
Aliases.
/dga/damageall/hurtall/hitall
Syntax.
/dga [damage]
Parameters.
damage(int, optional, default10)
8) Heal Amount All
Heals all players by a specified amount.
Aliases.
/hga/healamountall/healaddall/healplusall
Syntax.
/hga [amount]
Parameters.
amount(int, optional, default10)
9) Expression All
Sets facial expression index for all players.
Aliases.
/exa/expressionall/faceall/emoteall
Syntax.
/exa [index]
Parameters.
index(int, optional, default4)
Notes.
- Safely checks expression list bounds before applying
10) TTS All
Makes all players speak a TTS/chat message.
Aliases.
/ttsa/ttsall/sayall/speakall
Syntax.
/ttsa [message]
Parameters.
message(string, optional, defaultHello!!!)
Notes.
- If the message starts with
/, the mod prepends a space to avoid command-like parsing
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 visualsoff= disable wings visualspink= pink wings mode with a 0.5 second keep-alive loop
Notes.
- Pink wings are reapplied every 0.5 seconds because that visual can expire quickly
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, default3.0when a numeric mode is used)
Important behavior.
/tumbleall onkeeps tumble on until another command changes it/tumbleall offturns tumble off/tumbleall 3turns tumble on, waits 3 seconds, then turns tumble off/tumbleallwith no argument is treated as timed mode and defaults to 3 seconds
13) HP Max All
Sets max HP for all players.
Aliases.
/hpmaxall/hpmaxa
Syntax.
/hpmaxall [max]
Parameters.
max(int, optional, default200, minimum1)
Notes.
- Uses
UpdateHealthRPCto synchronize HP/max HP - Current HP is clamped to the new max and never set below 1
14) Flicker All
Triggers flashlight flicker for all players.
Aliases.
/flickerall/flickera
Syntax.
/flickerall [multiplier]
Parameters.
multiplier(float, optional, default2.0, minimum0)
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, default0.5)inSec(float, default0.05)outSec(float, default0.2)time(float, default3.0)
Notes.
offsends a disable RPC with safe default timing values
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, default1.8)prio(int, default10)springIn(float, default25)dampIn(float, default0.8)springOut(float, default12)dampOut(float, default0.8)time(float, default3.0)
Notes.
offdisables the override and sends a short reset timing
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
18) Reset Push All
Resets phys pusher state for all players via RPC.
Aliases.
/resetpushall/resetpusha/rpa/pushresetall
Syntax.
/resetpushall
19) Chained Short Commands
Executes multiple safe short commands in sequence.
Supported tokens.
ra= revive allha= heal full allka= kill all
Syntax examples.
/raka
/raha
/rahaka
Notes.
- Chained parsing only works with 2-letter tokens and no parameters
- Order is preserved exactly as typed
- Only
ra,ha,kaare accepted in chained mode
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 states and scenes.
Error Handling
The mod uses broad null checks and try/catch blocks around per-player execution.
If one target fails, the remaining players still continue.
Logging
Logs use [AllPlayerCommands] prefix and are written to both.
- Unity console
- BepInEx logger
What Changed Since 0.1.0
Major additions in 1.2.0.
- New commands for knockback, damage, heal amount, expression, TTS
- New host control commands for tumble, max HP, flashlight flicker
- New RPC-based player state commands for animation speed, pupil size, falling, phys pusher reset
- New tumble wings command with pink mode keep-alive loop
- Timed tumble coroutine (
/tumbleall [seconds]) - Safer summon/truck teleport flow with forced stand-up step
- Chained short command execution (
/rakastyle) - Reflection cache for reading current/max HP before HP max sync
- More robust player resolution fallback logic
AllPlayerCommands
R.E.P.O.向けのホスト専用チャットコマンドMODです。 ゲーム内チャットから全プレイヤーへ一括操作を実行できます。 設定ファイル不要です。
概要
AllPlayerCommands はチャット送信イベントをフックして、ホスト(Master Client)が全 PlayerAvatar に対して管理用 / 検証用コマンドを実行できるようにします。
1.2.0 は 0.1.0 からの大幅拡張版です。 初期版は基本5コマンド(キル / 蘇生 / 全回復 / 召喚 / トラック帰還)のみでした。 このバージョンでは、多数の制御コマンド、時間指定処理、ピンク羽維持ループ、連結短縮コマンド、プレイヤー状態制御が追加されています。
ホスト専用の動作条件
このMODは以下の条件をすべて満たしたときだけコマンドを実行します。
- 送信者がローカルプレイヤー本人
- ローカルプレイヤーがホスト(Master Client)またはシングルプレイのホスト
- チャットメッセージが
/で始まる
非ホストが同じコマンドを入力しても、このMODは実行しません。 ゲームの状態によっては通常チャットとして送信されます。
導入方法
AllPlayerCommands.dllを BepInEx の plugins フォルダに配置- ゲーム起動
- ロビーをホストする(またはシングルプレイ)
- チャットを開いてコマンド送信
クイックスタート
使用例です。
/ra
/ha
/sa
/ttsa Hello everyone
/tumbleall 3
/hpmaxall 200
/tumblewingsall pink
/animspeedall 0.5 0.05 0.2 3
/pupilall 1.8 10 25 0.8 12 0.8 3
全機能コマンド解説
1) Kill All
全プレイヤーを強制死亡させます。
別名。
/ka/killall/killallplayers/killplayerall
補足。
- 各対象に即時の強制死亡呼び出しを行います
2) Revive All
死亡中プレイヤーを全員蘇生します。
別名。
/ra/reviveall/reviveallplayers/reviveplayerall
補足。
- 死亡中プレイヤーのみ対象です
- 蘇生前に death head の extraction フラグを一時操作する処理が入っています
3) Heal Full All
全員を最大HPまで回復します。
別名。
/ha/healall/healallplayers/healplayerall
補足。
- 内部的には大きい回復量(
HealOther(9999, true))を使います
4) Summon All to Host
全員をホスト位置にテレポートします。
別名。
/sa/summonall/summonallplayers/summonplayerall
補足。
- テレポート前にタンブル解除寄りの立ち上がり処理を先に実行します
- 対象が死亡中の場合は death head オブジェクト側の移動を優先的に試します
5) Return All to Truck
全員をトラックの安全スポーン地点へテレポートします。
別名。
/ta/truckall/truckallplayers/returntotruckall
補足。
- テレポート前にタンブル解除寄りの立ち上がり処理を先に実行します
6) Knockback All
全員にノックバックを与えます。
別名。
/kba/knockbackall/knockall/impulseall
構文。
/kba [strength]
引数。
strength(int、省略可、既定値5)
補足。
- 可能な場合はホストから対象への方向でノックバック方向を計算します
- 少し上方向の力も加えます
7) Damage All
全員にダメージを与えます。
別名。
/dga/damageall/hurtall/hitall
構文。
/dga [damage]
引数。
damage(int、省略可、既定値10)
8) Heal Amount All
全員を指定量だけ回復します。
別名。
/hga/healamountall/healaddall/healplusall
構文。
/hga [amount]
引数。
amount(int、省略可、既定値10)
9) Expression All
全員の表情インデックスを設定します。
別名。
/exa/expressionall/faceall/emoteall
構文。
/exa [index]
引数。
index(int、省略可、既定値4)
補足。
- 表情配列の範囲外アクセスを避けるチェックありです
10) TTS All
全員にTTS/チャット発話を行わせます。
別名。
/ttsa/ttsall/sayall/speakall
構文。
/ttsa [message]
引数。
message(string、省略可、既定値Hello!!!)
補足。
- メッセージ先頭が
/の場合はコマンド誤認防止のため先頭に半角スペースを付けます
11) Tumble Wings All
全員のタンブル羽ビジュアルを強制します。
別名。
/tumblewingsall/wingsall/wa
構文。
/tumblewingsall on
/tumblewingsall off
/tumblewingsall pink
モード。
on= 通常羽ビジュアルoff= 羽ビジュアル無効pink= 0.5秒間隔で再付与するピンク羽維持モード
補足。
- ピンク羽は自然に消えやすいため 0.5 秒ごとの維持ループで再付与します
12) Tumble All
全員のタンブル状態を強制します。 ON / OFF / 時間指定に対応しています。
別名。
/tba/tumbleall
構文。
/tumbleall on
/tumbleall off
/tumbleall [seconds]
引数。
seconds(float、省略可、数値モード時の既定値3.0)
重要な挙動。
/tumbleall onは解除されるまで継続/tumbleall offは解除/tumbleall 3はONにして3秒後に自動OFF/tumbleallのように引数なしは時間指定扱いになり既定3秒になります
13) HP Max All
全員の最大HPを変更します。
別名。
/hpmaxall/hpmaxa
構文。
/hpmaxall [max]
引数。
max(int、省略可、既定値200、最小1)
補足。
UpdateHealthRPCを使って最大HPと現在HPを同期更新します- 現在HPは新しい最大値を超えず、最低1になるように補正します
14) Flicker All
全員のライトのフリッカーを発生させます。
別名。
/flickerall/flickera
構文。
/flickerall [multiplier]
引数。
multiplier(float、省略可、既定値2.0、最小0)
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を安全な既定タイミングで送ります
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を送ります
17) Falling All
RPCで全員の落下フラグを上書きします。
別名。
/fallingall/fallinga/fallall
構文。
/fallingall on
/fallingall off
挙動。
- 引数省略時は
on扱いです
18) Reset Push All
RPCで全員の Phys Pusher 状態をリセットします。
別名。
/resetpushall/resetpusha/rpa/pushresetall
構文。
/resetpushall
19) 連結短縮コマンド
安全な短縮コマンドを連続で実行します。
対応トークン。
ra= 全員蘇生ha= 全員全回復ka= 全員キル
構文例。
/raka
/raha
/rahaka
補足。
- 2文字トークンのみの連結に限定されています
- 引数付きは不可です
rahaka以外は連結モードで受け付けません- 入力順のまま実行されます
技術メモ
プレイヤー取得方法
対象プレイヤーの取得は次の順で行います。
- まず
SemiFunc.PlayerGetList()を使用 - 失敗時は
Resources.FindObjectsOfTypeAll<PlayerAvatar>()にフォールバック - Unity の instance ID で重複排除
シーン状態による取りこぼしを減らすための構成です。
エラーハンドリング
各プレイヤー処理は広めの null チェックと try/catch で保護されています。
1人の処理失敗で全体が止まりにくい作りです。
ログ
ログは [AllPlayerCommands] プレフィックスで以下へ出力されます。
- Unity コンソール
- BepInEx ロガー
0.1.0 からの主な追加点
1.2.0 での主要追加です。
- ノックバック / ダメージ / 指定回復 / 表情 / TTS コマンド追加
- タンブル / 最大HP / フリッカーの制御コマンド追加
- アニメ速度 / 瞳孔 / 落下 / 押し戻しリセットのRPC制御コマンド追加
- ピンク羽維持ループ付きの羽コマンド追加
- 時間指定タンブル(
/tumbleall [seconds])追加 - 召喚 / トラック帰還前の立ち上がり処理追加
/raka形式の連結短縮コマンド追加- 最大HP同期用の反射フィールドキャッシュ追加
- プレイヤー取得フォールバック強化