Initialize Sheen HMG at 700 RPM.

This commit is contained in:
Mari the Deer 2022-08-31 10:07:48 +02:00
commit 24ae3ee3b7
2 changed files with 12 additions and 2 deletions

View file

@ -9,6 +9,7 @@ Class HeavyMahSheenGun : SWWMWeapon
bool incooldown, stopfire, firstshot;
int firetimer, shotcnt;
int tcol; // for random
bool initialized;
transient ui SmoothDynamicValueInterpolator HeatInter;
transient SpreadSlugTracer st;
@ -294,6 +295,15 @@ Class HeavyMahSheenGun : SWWMWeapon
}
return Super.CheckAmmo(firemode,autoswitch,requireammo,ammocount);
}
override void AttachToOwner( Actor other )
{
if ( !initialized )
{
initialized = true;
firespeed = 1; // default to 700 RPM
}
Super.AttachToOwner(other);
}
Default
{