I am planning on doing some modifications to the RPG in a hl2 for a SP mod. There were two main ideas that stuck out... I wanted to have a Heat Seeking RPG and also a Remote Controlled RPG.
For the heat seeking.. So far the only way I've been able to even remotely getting this to work is modifying weapon_rpg.cpp and making it always use "autoaim". That's disgusting... There are obvious issues with this... to make it work well I would need to modify autoaim variables so it will do autoaim for very far distances and how close you have to aim.. But if someone were actually playing on easy mode it would change the values for every weapon (and that's garbage.) Anyone have any idea how I could implement this?
As for the remote controlled RPG... The idea is basically.. On fire, change camera to the rpg with mouse control and have missile constantly fly until impact or if player presses mouse 1 again explode, on impact camera goes back to the player. I have no idea where to start with this.. I'm assuming it's somewhere inside of in_camera.cpp but I believe some code would also need to be changed inside of weapon_rpg.cpp for the mouse control aiming of the missile. I couldn't find anything on people doing things with the camera like how I am trying.. So any input/recommendations would be greatly appreciated!



