Beanzilla / rangedweapons-1

a mod that adds ranged weapons to minetest.
Other
1 stars 1 forks source link

Bullets can (seemingly) ricochet indefinitely #14

Open ranguli opened 2 years ago

ranguli commented 2 years ago

While this is actually super amusing, the ricochet mechanics are dialed up a little bit too much.

If you build a room out of a material that causes a ricochet (i.e steel), and then fire a weapon inside that room, each bullet will ricochet a bunch of times, making the room a death trap. Depending on the angles of how you shoot and the geometry of the room, a bullet can keep ricocheting for a really long time.

One way to counteract this and also improve the mechanic in general is to have a small but randomized chance that a given bullet will ricochet (right now a ricochet is guaranteed each time), with an upper limit on the number of times a ricochet is possible (no more than twice).

Beanzilla commented 2 years ago

This will also need to take into account that bullets are entities, which means they could hit one another while moving.