Zakk wisheth - Thilo answereth (#4070)
Use cg_drawWeapon 2/3 to make weapon left-handed/centered
This commit is contained in:
parent
3cb58d7cc5
commit
eee5498019
2 changed files with 76 additions and 45 deletions
|
@ -923,8 +923,18 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) {
|
|||
case EV_RAILTRAIL:
|
||||
DEBUGNAME("EV_RAILTRAIL");
|
||||
cent->currentState.weapon = WP_RAILGUN;
|
||||
|
||||
if(es->clientNum == cg.snap->ps.clientNum && !cg.renderingThirdPerson)
|
||||
{
|
||||
if(cg_drawGun.integer == 2)
|
||||
VectorMA(es->origin2, 8, cg.refdef.viewaxis[1], es->origin2);
|
||||
else if(cg_drawGun.integer == 3)
|
||||
VectorMA(es->origin2, 4, cg.refdef.viewaxis[1], es->origin2);
|
||||
}
|
||||
|
||||
CG_RailTrail(ci, es->origin2, es->pos.trBase);
|
||||
|
||||
// if the end was on a nomark surface, don't make an explosion
|
||||
CG_RailTrail( ci, es->origin2, es->pos.trBase );
|
||||
if ( es->eventParm != 255 ) {
|
||||
ByteToDir( es->eventParm, dir );
|
||||
CG_MissileHitWall( es->weapon, es->clientNum, position, dir, IMPACTSOUND_DEFAULT );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue