The problem is that if I increase the tics, the lines of code used for the weapon movement (A_SetAngle and A_SetPitch) won't be useful.
This is the original code:
Code: Select all
NULL A 0 A_StartSound("FKPlayer/breath",6,1,True);
W2ZG A 2 A_WeaponReady(WRF_ALLOWZOOM|WRF_NOSECONDARY);
NULL A 0 A_SetAngle(Angle-FRandom(-0.12,0.12));
NULL A 0 A_SetPitch(Pitch-FRandom(-0.12,0.12));
W2ZG A 2 A_WeaponReady(WRF_ALLOWZOOM|WRF_NOSECONDARY);
NULL A 0 A_SetAngle(Angle+FRandom(-0.12,0.12));
NULL A 0 A_SetPitch(Pitch+FRandom(-0.12,0.12));
I can make a change like this one :
Code: Select all
NULL A 0 A_StartSound("FKPlayer/breath",6,1,True);
W2ZG A 2 A_WeaponReady(WRF_ALLOWZOOM|WRF_NOSECONDARY);
NULL A 0 A_SetAngle(Angle-FRandom(-0.12,0.12));
NULL A 0 A_SetPitch(Pitch-FRandom(-0.12,0.12));
W2ZG A 2 A_WeaponReady(WRF_NOSECONDARY); // No WRF_ALLOWZOOM for this line.
NULL A 0 A_SetAngle(Angle+FRandom(-0.12,0.12));
NULL A 0 A_SetPitch(Pitch+FRandom(-0.12,0.12));