Added Karma, harming players reduces it

This commit is contained in:
juanjp600
2017-12-03 21:51:12 -03:00
parent 4a1eea8c30
commit 6841bb154b
3 changed files with 30 additions and 1 deletions
@@ -108,10 +108,11 @@ namespace Barotrauma.Items.Components
projectile.body.ResetDynamics();
projectile.SetTransform(TransformedBarrelPos, rotation);
projectileComponent.User = character;
projectileComponent.IgnoredBodies = new List<Body>(limbBodies);
projectile.Use(deltaTime);
projectileComponent.User = character;
projectile.body.ApplyTorque(projectile.body.Mass * degreeOfFailure * Rand.Range(-10.0f, 10.0f));