Page 1 of 1

pistol

Posted: Sun Nov 09, 2008 5:48 pm
by Guest
how do i give the pistol secondary fire?

Re: pistol

Posted: Sun Nov 09, 2008 6:05 pm
by seabeast
Read the tutorial section! Gawd!
conure wrote:1.) Open the map of your prefernce in a editor that can extract meta/xml files. Once map
is open open a txt file and copy down the magic. Then browse to the tag and copy down were
it starts in the map file. Example on BG the magic is 0x3F777F94, and the tag offset for
the pistol is 0xEF6704. We add those 2 numbers together to find offsets in the extracted
meta files.

2.)Extract the meta file and open it in a hex editor. Go to 0x4f0 in the hex editor for the
magazines reflexive. It looks like this

0100 0000 B0ED 6640 0000 0000

Heres a break down of this

0100 0000 - is the chunk count, in this case 1.

B0ED 6640 - is the offset modified by magic

0000 0000 - Blank bytes, not usualy important.

3.)Go to the offset given by the magic offset, which is (0x4066edb0 - 0x3F777F94 - 0xEF6704)
That is offset 0x718 that you should be at. Now the chunk size is 112 bytes, so highlight
from 0x718 to 0x788. What you highlighted is the entire magazines chunk, this controls ammo
to gun. Now put your curser at 788 and paste all that data in, so a whole new chunk is
inserted (make sure not to overwrite anything.)

4.) Go back to 0x4f0 and change the reflexive to this

0200 0000 B0ED 6640 0000 0000

so it has 2 trigger count.

5.) Now we need to correct the recursive reflexives of magazine 1 and 2. Go to 0x718 + 0x64
for the magazine recursive reflexive. You will se this

0100 0000 20EE 6640 0000 0000

change it to this

0100 0000 90EE 6640 0000 0000

We did this because we moved the sub-reflexive chunk forward 112 bytes

Next go to 0x718 + 0x70 + 0x64

and change the reflexive from

0100 0000 20EE 6640 0000 0000

to

0000 0000 90EE 6640 0000 0000

This will make it so it doesnt see a firing effect chunk.We also need to update the triggers
reflexive at 0x4fc, so change this

0100 0000 3CEE 6640 0000 0000

to

0100 0000 ACEE 6640 0000 0000


6.) Now go to the start of the triggers relfexive which is at (0x4066eeac - 0x3F777F94 - 0xEF6704)
or 0x814. First thing we gona do in this chunk is duplicate it one time. The chunk size is
276 bytes, so copy from 0x814 to 0x928 and insert at 0x928.

7.)go to (0x814 + 0x108) = 0x91c to get the firing effects chunk location. This is what the
reflexive looks like

0100 0000 50EF 6640 0000 0000

change it to

0100 0000 d4f0 6640 0000 0000

we did that becuase we added on magazine chunk (112 bytes) and one trigger chunk (276 bytes)


8.)Now go to the start of the firing effect chunk which is at (0x4066f0d4 - 0x3F777F94 - 0xEF6704)
or 0xa3c. The chunk size of this bit is 132. Sense we did all this duplication right we just
copy from a3c to the end of the file, then insert it at end.


9.)Now we need to put in the final touchs for the new secondary trigger reflexive, it starts
at 0x814 + 0x114 = 0x928 now got + 0x1e to get to 0x946 and replace the four bytes of this
0000 0000
with
0001 0000

(note this value may be in correct so if u dont care bout experimental shit like this,
dont change it because all it does is let the secondary have its own magazine)

Now we need to go to 0x928 + 0x108 for the firing effects reflexive

0100 0000 50EF 6640 0000 0000

change to

0100 0000 58f1 6640 0000 0000


check it to make sure its right. (0x4066f158 - 0x3F777F94 - 0xEF6704) = 0xac0, which is
correct.

Re: pistol

Posted: Sun Nov 09, 2008 10:49 pm
by Fonzeh
Ah, Good Ol Hex! ]

Re: pistol

Posted: Mon Nov 10, 2008 6:12 pm
by (KHC) Shadow
can someone make a tut thats alittle more descriptive?

2.)Extract the meta file and open it in a hex editor. Go to 0x4f0 in the hex editor for the
magazines reflexive. It looks like this

0100 0000 B0ED 6640 0000 0000

What meta file? the pistols .weap meta file?

Re: pistol

Posted: Mon Nov 10, 2008 8:13 pm
by Altimit01
Open the .weap meta file in your hexeditor yes.

Re: pistol

Posted: Mon Nov 10, 2008 9:36 pm
by TaxiService
or you could duplicate a weapon that already has a secondary fire (plasma pistol, scorpion cannon, banshee gun) and edit it t make it look and act as a pistol. <_<

Re: pistol

Posted: Mon Nov 10, 2008 10:18 pm
by Allex a2
Heh... This is the kinda thing that scares new modders away...

Re: pistol

Posted: Tue Nov 11, 2008 11:04 am
by TaxiService
that's a good thing. <_< we got only new spammers, or new kids, or new noobs... not much new modders >_>

Re: pistol

Posted: Tue Nov 11, 2008 3:01 pm
by Slapzy
^Amen