mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-21 19:51:33 +00:00
Fix issue with frozen or enemy lasers firing in the wrong direction consistently
This commit is contained in:
parent
f4a6e66ed0
commit
1a6a99e2a7
3 changed files with 4 additions and 5 deletions
|
@ -45,7 +45,6 @@ void WP_FireBryarPistol( gentity_t *ent, qboolean alt_fire )
|
|||
if ( BG_UseVRPosition(ent))
|
||||
{
|
||||
BG_CalculateVRWeaponPosition(muzzle, angs);
|
||||
AngleVectors(angs, forward, NULL, NULL);
|
||||
}
|
||||
else {
|
||||
vectoangles(forwardVec, angs);
|
||||
|
@ -70,10 +69,10 @@ void WP_FireBryarPistol( gentity_t *ent, qboolean alt_fire )
|
|||
angs[PITCH] += ( Q_flrand(-1.0f, 1.0f) * ((5-ent->NPC->currentAim)*0.25f) );
|
||||
angs[YAW] += ( Q_flrand(-1.0f, 1.0f) * ((5-ent->NPC->currentAim)*0.25f) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AngleVectors( angs, forward, NULL, NULL );
|
||||
}
|
||||
}
|
||||
|
||||
WP_MissileTargetHint(ent, start, forward);
|
||||
|
||||
|
|
|
@ -3611,7 +3611,7 @@ qboolean R_LoadMDXM( model_t *mod, void *buffer, const char *mod_name, qboolean
|
|||
#ifndef JK2_MODE
|
||||
else
|
||||
{
|
||||
assert (tr.models[mdxm->animIndex]->mdxa->numBones == mdxm->numBones);
|
||||
//assert (tr.models[mdxm->animIndex]->mdxa->numBones == mdxm->numBones);
|
||||
if (tr.models[mdxm->animIndex]->mdxa->numBones != mdxm->numBones)
|
||||
{
|
||||
if ( isAnOldModelFile )
|
||||
|
|
|
@ -249,7 +249,7 @@ int irand( int min, int max )
|
|||
{
|
||||
int result;
|
||||
|
||||
assert((max - min) < QRAND_MAX);
|
||||
//assert((max - min) < QRAND_MAX);
|
||||
|
||||
max++;
|
||||
holdrand = (holdrand * 214013L) + 2531011L;
|
||||
|
|
Loading…
Reference in a new issue