Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

WitherSkull, SmallFireball, and LargeFireball launched incorrectly #539

Closed
SocraticPhoenix opened this issue Feb 14, 2016 · 4 comments
Closed
Assignees

Comments

@SocraticPhoenix
Copy link

Tested On Build 1151

Simply put, whenever launchProjectile is called (at least on a player), every projectile other than arrows launch from the player's feet rather than the player's head. In addition, small fireballs are launched in an extremely erratic fashion, not going anywhere near the player's aim, half the time.

@bloodmc
Copy link
Contributor

bloodmc commented Apr 2, 2016

@SocraticPhoenix is this with SpongeForge installed on client? If so try removing it and test again.

@SocraticPhoenix
Copy link
Author

@bloodmc
At the time I believe it was on the server.

Edit: I can test again on latest anyway... (I'll do that)

Edit 2: Can't test on latest (see here)

@Lunaphied
Copy link
Contributor

I suspect the source of this error is the ProjectileLogic class SpongeCommon uses that causes the linked issue. This is almost certainly not a SpongeForge specific issue.

@simon816
Copy link
Contributor

Note that the position and velocity of a projectile when calling launchProjectile is calculated to be a sensible default. If you'd like more control over the position etc. then you can use setLocation, setVelocity etc for adjustment.

Most projectiles seem to work OK. I have fixed WitherSkull and the two fireballs not spawning at the player head. I have hopefully fixed SmallFireball's odd behavior, but also I noticed how the vanilla code for creating fireballs differs quite a bit from EntityThrowable for example, notably the randomization is greater. (Some projectiles have a slight randomization on their exact angle).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants