View Full Version : Changing a Weapons Firing Vector
11-15-2009, 06:48 PM
I extended the UTPawn class to modify the camera, giving me a top down persepective, and I'm trying to change the fire vector of weaponry so that it shoots straight from the player parallel to the ground, but I've not been able to find what code controls the vector of weapon fire. By default, it seems to be firing to the camera crosshair. I was hoping someone could point me in the right direction.
Thanks, all help is greatly appreciated!
11-15-2009, 06:58 PM
You might only need to change GetPlayerViewPoint() in your Controller class... If that doesn't do it, just start tracing it back from your weapon's firing functions.
11-15-2009, 07:02 PM
Well, Chris2009 posted a solution that worked for me over in this thread (http://forums.epicgames.com/showpost.php?p=26981288&postcount=5). I just put that GetAdjustedAimFor function into my extended PlayerController class, and it worked like a charm.
Thanks both of you for the quick help!
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.