Spent mag dropping is now optional and disabled by default.

This commit is contained in:
Mari the Deer 2021-08-05 15:39:35 +02:00
commit 670d8a601f
9 changed files with 13 additions and 2 deletions

View file

@ -157,6 +157,7 @@ Class Sparkster : SWWMWeapon
action void A_DropMag( bool stacc = false )
{
if ( swwm_nomagdrop ) return;
Vector3 x, y, z;
[x, y, z] = swwm_CoordUtil.GetAxes(pitch,angle,roll);
Vector3 origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),10*x-2*y-10*z);

View file

@ -191,6 +191,7 @@ Class ExplodiumGun : SWWMWeapon
action void A_DropMag()
{
if ( swwm_nomagdrop ) return;
Vector3 x, y, z;
[x, y, z] = swwm_CoordUtil.GetAxes(pitch,angle,roll);
Vector3 origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),10*x-2*y-10*z);
@ -658,6 +659,7 @@ Class DualExplodiumGun : SWWMWeapon
action void A_DropMag( int side = 1 )
{
if ( swwm_nomagdrop ) return;
Vector3 x, y, z;
[x, y, z] = swwm_CoordUtil.GetAxes(pitch,angle,roll);
Vector3 origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),10*x-2*side*y-10*z);

View file

@ -237,6 +237,7 @@ Class CandyGun : SWWMWeapon
action void A_DropMag()
{
if ( swwm_nomagdrop ) return;
Vector3 x, y, z;
[x, y, z] = swwm_CoordUtil.GetAxes(pitch,angle,roll);
Vector3 origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),10*x-2*y-10*z);

View file

@ -790,6 +790,7 @@ Class SilverBullet : SWWMWeapon
if ( min(ma.Amount,invoker.clipcount-dropamt) > 0 ) ma.PlayPickupSound(self);
}
invoker.ClipCount = 0;
if ( swwm_nomagdrop ) return;
Vector3 x, y, z;
[x, y, z] = swwm_CoordUtil.GetAxes(pitch,angle,roll);
Vector3 origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),6*x-15*z);