Merge with the master, it has Projectile::projectileName() 
You could however just create the Bullet and then check if it would hit the shooting object. We named it smartweapons, so I guess its okay of the gun decides whether to shoot or not. 
Friendlyfireprevention would have to happen inaccurate, still...