The Meaning of Life, the Universe, and Everything.
So, I'm trying to make my custom entity act like a fireball, so I used some ghast and entityfireball code. However, everytime I right click, instead of the entity spawning in front of me and then going where I was looking, it spawns somewhere randomly within a couple blocks, and then goes in a random direction at a random speed.
Why are you using 0.5F in your player.getLook() method? Otherwise your projectile looks alright. As I already said try running the impact code server side only. Make sure to kill the entity on both sides.