Skip to content

Commit 8e4d245

Browse files
author
bytemaniak
committed
Improve Grenade speed and bounce
1 parent 2784659 commit 8e4d245

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/bytemaniak/mcquake3/entity/projectile/Grenade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void onCollision(HitResult hitResult)
6262
case UP -> velocity.multiply(1, -.55, 1);
6363
};
6464

65-
if (velocity.y > 0 && velocity.y < 0.1f) velocity = velocity.multiply(1, 0, 1);
65+
if (velocity.y > 0 && velocity.y < 0.075f) velocity = velocity.multiply(1, 0, 1);
6666
else world.playSound(null, getBlockPos(), Sounds.GRENADE_BOUNCE, SoundCategory.PLAYERS, 1, 1);
6767

6868
setVelocity(velocity);

src/main/java/com/bytemaniak/mcquake3/items/GrenadeLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
public class GrenadeLauncher extends Weapon {
1818
private static final long GRENADE_REFIRE_RATE = 15;
19-
private static final float GRENADE_PROJECTILE_SPEED = 1.5f;
19+
private static final float GRENADE_PROJECTILE_SPEED = .85f;
2020

2121
public GrenadeLauncher() {
2222
super(QuakePlayer.WeaponSlot.GRENADE_LAUNCHER, new Identifier("mcquake3:grenade_launcher"),

0 commit comments

Comments
 (0)