How to implement custom C++ camera shake

Is there a C++ example, in C++ even if you change the value of the variable and then use PlayCameraShake you still call the DefaultObject(Shake is 0)