Attacks can apply a force to the target (i.e. monsters can throw characters around)
This commit is contained in:
@@ -49,6 +49,8 @@ namespace Barotrauma
|
||||
|
||||
public readonly float Force;
|
||||
|
||||
public readonly float TargetForce;
|
||||
|
||||
private Sound sound;
|
||||
|
||||
private ParticleEmitterPrefab particleEmitterPrefab;
|
||||
@@ -105,6 +107,8 @@ namespace Barotrauma
|
||||
|
||||
Force = ToolBox.GetAttributeFloat(element,"force", 0.0f);
|
||||
|
||||
TargetForce = ToolBox.GetAttributeFloat(element, "targetforce", 0.0f);
|
||||
|
||||
Stun = ToolBox.GetAttributeFloat(element, "stun", 0.0f);
|
||||
|
||||
string soundPath = ToolBox.GetAttributeString(element, "sound", "");
|
||||
|
||||
Reference in New Issue
Block a user