One half of "swinger" recoil system added.
This commit is contained in:
parent
cdfea51f31
commit
c15847a10a
7 changed files with 141 additions and 5 deletions
|
|
@ -662,8 +662,13 @@ Class BioRifle : UTWeapon
|
|||
{
|
||||
p = Spawn("BioGlob",origin);
|
||||
p.A_SetScale(1.0+invoker.charge*0.8);
|
||||
UTMainHandler.DoSwing(self,(FRandom[GES](-0.6,-1.3),FRandom[GES](-0.9,-0.2)),1+invoker.charge*0.3,-0.1,3,SWING_Spring2,3);
|
||||
}
|
||||
else
|
||||
{
|
||||
p = Spawn("BioGel",origin);
|
||||
UTMainHandler.DoSwing(self,(FRandom[GES](-0.6,-1.3),FRandom[GES](-0.9,-0.2)),2,-0.5,2,SWING_Spring2,2);
|
||||
}
|
||||
else p = Spawn("BioGel",origin);
|
||||
p.angle = angle;
|
||||
p.pitch = BulletSlope();
|
||||
p.vel = (cos(p.angle)*cos(p.pitch),sin(p.angle)*cos(p.pitch),-sin(p.pitch))*p.speed;
|
||||
|
|
@ -692,6 +697,7 @@ Class BioRifle : UTWeapon
|
|||
{
|
||||
Weapon weap = Weapon(invoker);
|
||||
if ( !weap ) return;
|
||||
UTMainHandler.DoSwing(self,(FRandom[GES](-1,1),FRandom[GES](-1,1)),0.02*invoker.charge,0,5,SWING_Spring2);
|
||||
if ( invoker.charge >= 5.1 ) return;
|
||||
if ( weap.Ammo1.Amount <= 0 ) return;
|
||||
if ( !weap.DepleteAmmo(weap.bAltFire,true,1) ) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue