mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-26 14:01:26 +00:00
Make barrels rotate on weapon selector items
pretty silly
This commit is contained in:
parent
bd68d221af
commit
992e98a51d
1 changed files with 4 additions and 1 deletions
|
@ -2145,7 +2145,10 @@ void CG_DrawHolsteredWeapons( void )
|
|||
refEntity_t barrel;
|
||||
memset(&barrel, 0, sizeof(barrel));
|
||||
barrel.hModel = cg_weapons[weapons[w]].barrelModel;
|
||||
AnglesToAxis(vec3_origin, barrel.axis);
|
||||
vec3_t barrelAngles;
|
||||
VectorClear(barrelAngles);
|
||||
barrelAngles[ROLL] = AngleNormalize360(cg.time * 0.9f);
|
||||
AnglesToAxis(barrelAngles, barrel.axis);
|
||||
CG_PositionRotatedEntityOnTag(&barrel, &ent, cg_weapons[weapons[w]].weaponModel,
|
||||
"tag_barrel");
|
||||
trap_R_AddRefEntityToScene(&barrel);
|
||||
|
|
Loading…
Reference in a new issue