Hi all,
I'm trying to create a new vehicle (subclassed of KVehicle) with added custom controls, so that i'm not restricted to just throttle and steering. I've tried this by subclassing PlayerController and adding my own state (+code) to it. For now, i just used a copy of the code found in PlayerController. The whole stuff compiles but getting the controller in the disered state turns out to be a real pain. I tried various things in the KDriverEnter function (casting, etc.) but nothing seems to help. code changes resulted in (when entering vehicle) either controls freezing, becomes a flycam or become pinned to a fixed location (still able to turn and shoot, just not move). I followed the tutorial
http://wiki.beyondunreal.com/wiki/Alternative_Vehicle_Control
but i couldn't get that to work either. (same problem)
I fear that i'm doing something wrong with subclassing or assigning. I think modifying the playercontroller class directly is just a little bit too crude for me. Anyway, i've been at this for days, hours on end and its really driving me nuts!
Anybody have any ideas? Help is much appreciated!
I'm trying to create a new vehicle (subclassed of KVehicle) with added custom controls, so that i'm not restricted to just throttle and steering. I've tried this by subclassing PlayerController and adding my own state (+code) to it. For now, i just used a copy of the code found in PlayerController. The whole stuff compiles but getting the controller in the disered state turns out to be a real pain. I tried various things in the KDriverEnter function (casting, etc.) but nothing seems to help. code changes resulted in (when entering vehicle) either controls freezing, becomes a flycam or become pinned to a fixed location (still able to turn and shoot, just not move). I followed the tutorial
http://wiki.beyondunreal.com/wiki/Alternative_Vehicle_Control
but i couldn't get that to work either. (same problem)
I fear that i'm doing something wrong with subclassing or assigning. I think modifying the playercontroller class directly is just a little bit too crude for me. Anyway, i've been at this for days, hours on end and its really driving me nuts!
Anybody have any ideas? Help is much appreciated!