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:
Regalis
2016-04-16 15:33:28 +03:00
parent c6df095a8b
commit 6876bdc481
18 changed files with 271 additions and 74 deletions
+12 -1
View File
@@ -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");