When a player spawns with the scram cannon (when using the ball launcher for the model) The weapon appears in the top middle of the screen. But shortly thereafter goes to its normal position. I put the default properties up because the rest of the code for it was bot ai stuff, so the problem must lie in there, i believe.
Also, since there is no pickup model for the ball launcher, I am using the attachment. But it rotates around the grip of the gun rather than and middle of it. How would one shift that point?
Also, since there is no pickup model for the ball launcher, I am using the attachment. But it rotates around the grip of the gun rather than and middle of it. How would one shift that point?
Code:
defaultproperties
{
FireModeClass(0)=Class'nfScramCannon.ScramFire'
FireModeClass(1)=Class'nfScramCannon.ScramAltFire'
SelectAnim="Pickup"
PutDownAnim="PutDown"
SelectSound=Sound'WeaponSounds.FlakCannon.SwitchToFlakCannon'
SelectForce="SwitchToFlakCannon"
AIRating=0.750000
CurrentRating=0.750000
EffectOffset=(X=200.000000,Y=32.000000,Z=-25.000000)
DisplayFOV=60.000000
Priority=8
DefaultPriority=8
InventoryGroup=7
PickupClass=Class'nfScramCannon.ScramCannonPickup'
PlayerViewOffset=(X=11.000000)
BobDamping=2.200000
AttachmentClass=Class'nfScramCannon.ScramAttachment'
IconMaterial=Texture'InterfaceContent.HUD.SkinA'
IconCoords=(X1=322,Y1=100,X2=444,Y2=200)
ItemName="Scram Cannon"
LightType=LT_Steady
LightEffect=LE_NonIncidence
LightHue=30
LightSaturation=150
LightBrightness=150.000000
LightRadius=4.000000
Mesh=SkeletalMesh'Weapons.BallLauncher_1st'
DrawScale=0.400000
//Mesh=SkeletalMesh'Weapons.Flak_1st'
UV2Texture=Shader'XGameShaders.WeaponShaders.WeaponEnvShader'
}