TF2: Fire a projectile via entity/bot

Is there anyway to get an entity to shoot a rocket/pipebomb/sticky/arrow/flare/jarate/baseball/sent rocket?

I remeber the TF2 commentary map had a engie and pyro firing their weapons, is there anyway to get the same result with a different class in hammer? It’ll be a offline map anyway.

Do you need special programming or Hammering?

some console command… look at the bot article on the tf2 wiki