UE2 - UT2kX MiniGun altFire Barrell rotation

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

.:..:

New Member
Apr 11, 2006
61
0
0
Finland
It would probably help if you removed everything redefined in primary firemode:
Code:
class UCMinigunFire extends MinigunFire;

defaultproperties
{
}
 

.:..:

New Member
Apr 11, 2006
61
0
0
Finland
Well there's the problem (UCMinigun):
Code:
simulated function UpdateRoll(float dt, float speed, int mode)
{
	local rotator r;

	if ( Level.NetMode!=NM_DedicatedServer && mode == CurrentMode) // to limit to one mode
	{
		RollSpeed = speed;
		CurrentRoll += dt*RollSpeed;
		CurrentRoll = CurrentRoll % 65536.f;
		r.Roll = int(CurrentRoll);
		SetBoneRotation('Bone Barrels', r, 0, Blend);
	}
}
The second SetBoneRotation call reset the bone rotation back.

As for the third person mesh problem, it looks like a mesh problem but you could try with SetBoneDirection instead:
Code:
simulated function UpdateRoll(float dt)
{
	local rotator r;

	UpdateRollTime(false);

	if (mRollInc <= 0.f)
		return;

	mCurrentRoll += dt*mRollInc;
	mCurrentRoll = mCurrentRoll % 65536.f;
	r.Roll = int(mCurrentRoll);

	SetBoneDirection('Bone Barrels', r);
}
 
Last edited: