Updated functions to spawn NPC projectiles