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
|
|
@ -291,6 +291,7 @@ Class Enforcer : UTWeapon
|
|||
else A_Overlay(-3,"LeftMuzzleFlash");
|
||||
A_OverlayFlags(-3,PSPF_RENDERSTYLE|PSPF_FORCESTYLE,true);
|
||||
A_OverlayRenderstyle(-3,STYLE_Add);
|
||||
UTMainHandler.DoSwing(self,(FRandom[Enforcer](0.5,0.2),FRandom[Enforcer](-0.3,0.2)),2,0,1,SWING_Spring2);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -298,6 +299,7 @@ Class Enforcer : UTWeapon
|
|||
else A_Overlay(-2,"MuzzleFlash");
|
||||
A_OverlayFlags(-2,PSPF_RENDERSTYLE|PSPF_FORCESTYLE,true);
|
||||
A_OverlayRenderstyle(-2,STYLE_Add);
|
||||
UTMainHandler.DoSwing(self,(FRandom[Enforcer](-0.2,-0.5),FRandom[Enforcer](-0.3,0.2)),2,0,1,SWING_Spring2);
|
||||
}
|
||||
Vector3 x, y, z, x2, y2, z2;
|
||||
[x, y, z] = Matrix4.GetAxes(pitch,angle,roll);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue