From e065de3bf7f15b895c7a22e9fdbf8125c94406b3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Oct 2012 21:45:00 +0000 Subject: Set localcontrol aaim while target tracking. --- src/client/targets.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client') diff --git a/src/client/targets.cc b/src/client/targets.cc index c3b618d..eff1512 100644 --- a/src/client/targets.cc +++ b/src/client/targets.cc @@ -328,6 +328,11 @@ void frame() Vector3f cursor = render::Camera::eye() + render::Camera::axis().forward() * (render::FRUSTUMFRONT + 0.001); cursor -= render::Camera::axis().left() * x; cursor -= render::Camera::axis().up() * y; + + // set aim + if (core::localcontrol()) { + core::localcontrol()->set_target_aim(cursor); + } //math::Vector3f center = render::Camera::eye() + (render::Camera::axis().forward() * (render::FRUSTUMFRONT + 0.001f)); for (core::Zone::Content::iterator it = zone->content().begin(); it != zone->content().end(); it++) { -- cgit v1.2.3