From 5d2d625d520c5f0a48f9df35aed35d1c94e55c95 Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Thu, 1 Jul 2010 17:19:21 +0000 Subject: [PATCH] fixing the knife range when crouched and attacking someone below http://forum.cubers.net/thread-16-post-2175.html#pid2175 git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5258 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/weapon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index a18f95da..aca14f18 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -1225,6 +1225,7 @@ bool knife::attack(vec &targ) unitv.mul(3); // punch range to = from; to.add(unitv); + if ( owner->pitch < 0 ) to.z += 2.5 * sin( owner->pitch * 0.01745329 ); hits.setsize(0); raydamage(from, to, owner);