- item sprites visible in fabricator menu
- deth charge rotation fix - sonar tweaking (ruin walls look slightly different from cave walls) - connector sprite positioning fix - repairtool is active when in use
This commit is contained in:
@@ -20,6 +20,8 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
private string particles;
|
||||
|
||||
private float activeTimer;
|
||||
|
||||
[HasDefaultValue(0.0f, false)]
|
||||
public float Range
|
||||
{
|
||||
@@ -92,11 +94,11 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
//public override void Update(float deltaTime, Camera cam)
|
||||
//{
|
||||
// base.Update(deltaTime, cam);
|
||||
|
||||
//}
|
||||
public override void Update(float deltaTime, Camera cam)
|
||||
{
|
||||
activeTimer -= deltaTime;
|
||||
if (activeTimer <= 0.0f) IsActive = false;
|
||||
}
|
||||
|
||||
public override bool Use(float deltaTime, Character character = null)
|
||||
{
|
||||
@@ -127,6 +129,9 @@ namespace Barotrauma.Items.Components
|
||||
ignoredBodies.Add(limb.body.FarseerBody);
|
||||
}
|
||||
|
||||
IsActive = true;
|
||||
activeTimer = 0.1f;
|
||||
|
||||
|
||||
for (int n = 0; n < 2; n++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user