Crates, some new chemicals, statuseffects that are triggered on impact, explosions can trigger "OnFire" statuseffects, applying impulses to items (and not just characters) when the submarine hits something
This commit is contained in:
@@ -45,6 +45,8 @@ namespace Barotrauma
|
||||
|
||||
public readonly bool FireProof;
|
||||
|
||||
private float impactTolerance;
|
||||
|
||||
public string ConfigFile
|
||||
{
|
||||
get { return configFile; }
|
||||
@@ -87,6 +89,13 @@ namespace Barotrauma
|
||||
get { return offsetOnSelected; }
|
||||
}
|
||||
|
||||
|
||||
public float ImpactTolerance
|
||||
{
|
||||
get { return impactTolerance; }
|
||||
set { impactTolerance = Math.Max(value, 0.0f); }
|
||||
}
|
||||
|
||||
public bool CanUseOnSelf
|
||||
{
|
||||
get;
|
||||
@@ -213,7 +222,9 @@ namespace Barotrauma
|
||||
|
||||
CanUseOnSelf = ToolBox.GetAttributeBool(element, "canuseonself", false);
|
||||
|
||||
FireProof = ToolBox.GetAttributeBool(element, "fireproof", false);
|
||||
FireProof = ToolBox.GetAttributeBool(element, "fireproof", false);
|
||||
|
||||
ImpactTolerance = ToolBox.GetAttributeFloat(element, "impacttolerance", 0.0f);
|
||||
|
||||
|
||||
string categoriesStr = ToolBox.GetAttributeString(element, "category", "Misc");
|
||||
|
||||
Reference in New Issue
Block a user