Adds ragdoll button. Because why not.
Also adds admin ragdoll command to force people into ragdoll mode. The networking/syncing wasn't yet tested for this but hopefully everything should work. Updates config.xml to add default keybinds for radio chat and ragdoll
This commit is contained in:
@@ -647,6 +647,24 @@ namespace Barotrauma
|
||||
if (Character.Controlled != null) Character.Controlled.AnimController.Frozen = !Character.Controlled.AnimController.Frozen;
|
||||
}));
|
||||
|
||||
commands.Add(new Command("ragdoll", "ragdoll [character name]: Force-ragdoll the specified character. If the name parameter is omitted, the controlled character will be ragdolled.", (string[] args) =>
|
||||
{
|
||||
Character ragdolledCharacter = null;
|
||||
if (args.Length == 0)
|
||||
{
|
||||
ragdolledCharacter = Character.Controlled;
|
||||
}
|
||||
else
|
||||
{
|
||||
ragdolledCharacter = FindMatchingCharacter(args);
|
||||
}
|
||||
|
||||
if (ragdolledCharacter != null)
|
||||
{
|
||||
ragdolledCharacter.IsForceRagdolled = !ragdolledCharacter.IsForceRagdolled;
|
||||
}
|
||||
}));
|
||||
|
||||
commands.Add(new Command("freecamera|freecam", "freecam: Detach the camera from the controlled character.", (string[] args) =>
|
||||
{
|
||||
Character.Controlled = null;
|
||||
|
||||
Reference in New Issue
Block a user