mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-24 21:11:03 +00:00
Academy-Bowcaster-angle-fix
This commit is contained in:
parent
5813c42b30
commit
4127f788e8
1 changed files with 6 additions and 1 deletions
|
@ -27,6 +27,8 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
#include "w_local.h"
|
#include "w_local.h"
|
||||||
#include "bg_local.h"
|
#include "bg_local.h"
|
||||||
|
|
||||||
|
#include <JKXR/VrClientInfo.h>
|
||||||
|
|
||||||
//-------------------
|
//-------------------
|
||||||
// Wookiee Bowcaster
|
// Wookiee Bowcaster
|
||||||
//-------------------
|
//-------------------
|
||||||
|
@ -116,7 +118,10 @@ static void WP_BowcasterMainFire( gentity_t *ent )
|
||||||
|
|
||||||
AngleVectors( angs, dir, NULL, NULL );
|
AngleVectors( angs, dir, NULL, NULL );
|
||||||
|
|
||||||
missile = CreateMissile( start, dir, vel, 10000, ent );
|
vec3_t rotatedDir;
|
||||||
|
VectorRotateAroundAxis(dir, forward, vr->weaponangles[ANGLES_ADJUSTED][ROLL], rotatedDir);
|
||||||
|
|
||||||
|
missile = CreateMissile( start, rotatedDir, vel, 10000, ent );
|
||||||
|
|
||||||
missile->classname = "bowcaster_proj";
|
missile->classname = "bowcaster_proj";
|
||||||
missile->s.weapon = WP_BOWCASTER;
|
missile->s.weapon = WP_BOWCASTER;
|
||||||
|
|
Loading…
Reference in a new issue