View unanswered posts | View active topics It is currently Thu Jan 09, 2025 11:58 pm



Reply to topic  [ 5 posts ] 
 My mod is almost done, but I am having trouble with offsets 
Author Message
User avatar

Joined: Sat Nov 18, 2006 8:11 pm
Posts: 267
Reply with quote
Post My mod is almost done, but I am having trouble with offsets
I have a gun and my gun has a magazine. No matter what I do to the code, my magazine won't move. I want it in the middle of the gun, but there isn't a single variable available to change it.

I tried changing
Code:
   Magazine = Magazine
      CopyOf = Magazine C4 Shotgun
      ParentOffset = Vector
         X = 9
         Y = 0


and

Code:
   EjectionOffset = Vector
      X = 9
      Y = 0


Neither of them change where the magazine goes. I have searched the forum and no one seems to know how to move the magazine.


Wed Jun 24, 2009 6:51 am
Profile WWW
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Reply with quote
Post Re: My mod is almost done, but I am having trouble with offsets
Doin' it wrong.
Find "JointOffset" in the magazine code and change it.

ParentOffset doesn't seem to do ♥♥♥♥, and EjectionOffset determines where the casings come out of.


Wed Jun 24, 2009 6:56 am
Profile
User avatar

Joined: Sat Nov 18, 2006 8:11 pm
Posts: 267
Reply with quote
Post Re: My mod is almost done, but I am having trouble with offsets
Yeah, I actually figured it out :/


I hate when that happens. You try for 20 minutes trying to figure something out, and the moment you post for help you figure it out.

Well while I'm here, any way to change the direction the magazine ejects?


Wed Jun 24, 2009 7:08 am
Profile WWW
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Reply with quote
Post Re: My mod is almost done, but I am having trouble with offsets
Uhhhh... Apply force to magazine in the direction desired using lua? :???:


Wed Jun 24, 2009 7:13 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: My mod is almost done, but I am having trouble with offsets
MaximDude wrote:
ParentOffset doesn't seem to do crap

Sometimes you have to name the copied magazine (actually, anything that is being offsetted). Not sure exactly what makes it require the change, but to be safe you can always name your copy.


Wed Jun 24, 2009 11:38 am
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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.038s | 13 Queries | GZIP : Off ]