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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user