Skip to content

Commit

Permalink
:electron:
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Dec 17, 2023
1 parent af3499f commit 65836cb
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ public override void Initialize()

private void HandleLand(EntityUid uid, GunComponent component, ref LandEvent args)
{
var physicsComp = EntityManager.GetComponent<PhysicsComponent>(uid);

// TODO: This shouldn't be a hardcoded 10% roll. I wanted to base it off mass, but items don't seem
// to care about their mass (most guns had the same).
// Then I wanted to base it off of item size, but the minigun still has a size of 5 at the time of writing, so :shrug:
// TODO: This shouldn't be a hardcoded 10% roll. I wanted to base it off mass, but most items don't seem to care about their mass (most guns had the same).
// Then I wanted to base it off of item size, but the minigun still has a size of 5 at the time of writing, so ¯\_(ツ)_/¯
if (_random.Prob(0.1f))
_gun.AttemptShoot(uid, uid, component, Transform(uid).Coordinates.Offset(Transform(uid).LocalRotation.ToVec()));
// The gun fires itself (weird), with the target being its own position offset by its rotation as a point vector.
Expand Down

0 comments on commit 65836cb

Please sign in to comment.