Practice playing the half diminished scale while listening to C-7b5. See what lines you can play over it. To train your ear, make a sincere effort to internalise the sound.
If you’re having trouble coming up with new ideas, my books are filled with several ideas on how to play intervals, scales, melodies, and more.