mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
The new <BarrelConfiguration>-tag specifies how many bullets a gun shoots at once. Several values can be used. If no value is set, 1 will be used.
Toggling fire modes cycles between barrel configurations if several have been set. Requires GameDir >= r2461 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8652 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -13842,6 +13842,10 @@ void SOLDIERTYPE::ReLoadSoldierAnimationDueToHandItemChange( UINT16 usOldItem, U
|
||||
else
|
||||
this->bScopeMode = USE_BEST_SCOPE;
|
||||
|
||||
// Flugente: use lowest valid barrel configuration
|
||||
this->usBarrelMode = 1;
|
||||
this->usBarrelMode = GetNextBarrelMode( usNewItem, this->usBarrelMode );
|
||||
|
||||
if ( gAnimControl[this->usAnimState].uiFlags & ANIM_FIREREADY )
|
||||
{
|
||||
// Stop aiming!
|
||||
|
||||
Reference in New Issue
Block a user