Projectile weapons working

Added some projectile weapon functionality - still very rough and not
quite fully ready to use.