Hey all!
I have made this gun and the offsets are messed up, could anybody help me please?
Here is an image of the non-sharp aim and the sharp aim:
Here is the HDFirearm code:
Code:
AddDevice = HDFirearm
PresetName = Assault Shotgun
AddToGroup = Weapons
Mass = 6
HitsMOs = 0
GetsHitByMOs = 1
SpriteFile = ContentFile
FilePath = Whitebots.rte\Devices\Weapons\AssaultShotgun.bmp
FrameCount = 2
SpriteOffset = Vector
X = -17
Y = -5
EntryWound = AEmitter
CopyOf = Dent Metal
ExitWound = AEmitter
CopyOf = Dent Metal
GoldValue = 175
AtomGroup = AtomGroup
AutoGenerate = 1
Material = Material
CopyOf = Military Stuff
Resolution = 4
Depth = 0
DeepGroup = AtomGroup
AutoGenerate = 1
Material = Material
CopyOf = Military Stuff
Resolution = 4
Depth = 10
DeepCheck = 0
JointStrength = 75
JointStiffness = 0.5
JointOffset = Vector
X = 7
Y = -2
DrawAfterParent = 0
StanceOffset = Vector
X = 3
Y = 6
SharpStanceOffset = Vector
X = 4
Y = -1
SupportOffset = Vector
X = 3
Y = -3
SharpLength = 150
Magazine = Magazine
CopyOf = Magazine Assault Shotgun
Flash = Attachable
CopyOf = Muzzle Flash Shotgun
FireSound = Sound
AddSample = ContentFile
FilePath = Whitebots.rte/Devices/Sounds/AssaultShotgun.wav
EmptySound = Sound
AddSample = ContentFile
FilePath = Base.rte/Devices/EmptyClick3.wav
ReloadStartSound = Sound
AddSample = ContentFile
FilePath = Whitebots.rte/Devices/Sounds/AssaultShotgunReload1.wav
ReloadEndSound = Sound
AddSample = ContentFile
FilePath = Whitebots.rte/Devices/Sounds/AssaultShotgunReload2.wav
RateOfFire = 300
ReloadTime = 4050
FullAuto = 1
FireIgnoresThis = 1
ShakeRange = 10
SharpShakeRange = 3
NoSupportFactor = 2
ParticleSpreadRange = 3
MuzzleOffset = Vector
X = -14
Y = 1
EjectionOffset = Vector
X = -4
Y = -2
AddGib = Gib
GibParticle = MOPixel
CopyOf = Spark Yellow 1
Count = 6
Spread = 2.25
MaxVelocity = 20
MinVelocity = 8
AddGib = Gib
GibParticle = MOPixel
CopyOf = Spark Yellow 2
Count = 5
Spread = 2.25
MaxVelocity = 20
MinVelocity = 8
AddGib = Gib
GibParticle = MOPixel
CopyOf = Drop Oil
Count = 4
Spread = 2.25
MaxVelocity = 10
MinVelocity = 1
AddGib = Gib
GibParticle = MOSParticle
CopyOf = Gib Metal Rust Micro A
Count = 6
Spread = 2.25
MaxVelocity = 15
MinVelocity = 5
AddGib = Gib
GibParticle = MOSParticle
CopyOf = Gib Metal Grey Micro A
Count = 5
Spread = 2.25
MaxVelocity = 15
MinVelocity = 5
AddGib = Gib
GibParticle = MOSRotating
CopyOf = Gib Device Small H
Count = 1
Spread = 2.25
MaxVelocity = 10
MinVelocity = 1
AddGib = Gib
GibParticle = MOSRotating
CopyOf = Gib Device Small J
Count = 1
Spread = 2.25
MaxVelocity = 10
MinVelocity = 1
GibWoundLimit = 3
Any help will be appreciated.
Thanks
Cyrill