View unanswered posts | View active topics It is currently Mon Jan 06, 2025 10:51 pm



Reply to topic  [ 5 posts ] 
 Offset Help 
Author Message
User avatar

Joined: Thu Jun 03, 2010 3:17 pm
Posts: 12
Reply with quote
Post Offset Help
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:
Image
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 :grin:


Sat Jun 19, 2010 8:43 pm
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Offset Help
Post the .ini, I'll fix it for ya.

EDIT: Actually the entire folder.


Sat Jun 19, 2010 8:49 pm
Profile
User avatar

Joined: Thu Jun 03, 2010 3:17 pm
Posts: 12
Reply with quote
Post Re: Offset Help
Could you tell me what the problem is?

Also why do you need the folder?


Sat Jun 19, 2010 8:51 pm
Profile
User avatar

Joined: Wed Feb 10, 2010 4:06 am
Posts: 1294
Location: Comox, BC, Canada
Reply with quote
Post Re: Offset Help
You've got the offsets wrong. I guess that's obvious.

Go into an actor's .ini, and make him spawn with the gun. Then go into CC's actor viewer. Open the .ini for the gun in another window, and try tweaking the offsets. Everytime you try something, go to CC and press "load actor's data" again.

Saves you time from opening and closing the game a bunch.


Sat Jun 19, 2010 8:57 pm
Profile WWW
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post Re: Offset Help
The offsets for the gun are here:
Code:
StanceOffset = Vector
      X = 10
      Y = 10
   SharpStanceOffset = Vector
      X = 13
      Y = 11
   SupportOffset = Vector
      X = 8
      Y = 10


Sat Jun 19, 2010 9:04 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.030s | 13 Queries | GZIP : Off ]