pistol

Everything about HD, MD, and their mods.

Moderator: Halo Moderators

Post Reply
Guest

pistol

Post by Guest » Sun Nov 09, 2008 5:48 pm

how do i give the pistol secondary fire?

seabeast
Green Beret
Posts: 3320
Joined: Thu Dec 27, 2007 12:07 pm
Location: Eating your cat! >_>

Re: pistol

Post by seabeast » Sun Nov 09, 2008 6:05 pm

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.

Fonzeh
Ranger
Posts: 1894
Joined: Tue Oct 16, 2007 3:57 am
Location: "I didn't just take your mom out to dinner. I ate your mom for dinner."
Contact:

Re: pistol

Post by Fonzeh » Sun Nov 09, 2008 10:49 pm

Ah, Good Ol Hex! ]
G[v]N wrote:HUGE NOTIFICATION
THIS GRAVY HAS BRAINS
Mota-Lev was here 30/4/2010@2:18pm
Image

(KHC) Shadow
SEAL
Posts: 527
Joined: Tue Jul 22, 2008 10:38 am

Re: pistol

Post by (KHC) Shadow » Mon Nov 10, 2008 6:12 pm

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?
Image

Altimit01
Eschaton Dev
Eschaton Dev
Posts: 2108
Joined: Sun Apr 15, 2007 7:43 pm

Re: pistol

Post by Altimit01 » Mon Nov 10, 2008 8:13 pm

Open the .weap meta file in your hexeditor yes.
Disclaimer: I am no longer active. Any posts, PMs or other communication I use has no guarantee of accuracy or follow up.
Download Eschaton: Mediafire

TaxiService
Night Stalker
Posts: 6887
Joined: Thu May 24, 2007 5:52 am
Location: 41.896198, 12.4165945
Contact:

Re: pistol

Post by TaxiService » Mon Nov 10, 2008 9:36 pm

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. <_<
  • TaxiService! Shitposting since 2007!
MGM Sig

Allex a2
Veteran
Posts: 273
Joined: Tue Jul 22, 2008 6:36 pm
Location: Where the grass is greener.

Re: pistol

Post by Allex a2 » Mon Nov 10, 2008 10:18 pm

Heh... This is the kinda thing that scares new modders away...
Image

TaxiService
Night Stalker
Posts: 6887
Joined: Thu May 24, 2007 5:52 am
Location: 41.896198, 12.4165945
Contact:

Re: pistol

Post by TaxiService » Tue Nov 11, 2008 11:04 am

that's a good thing. <_< we got only new spammers, or new kids, or new noobs... not much new modders >_>
  • TaxiService! Shitposting since 2007!
MGM Sig

Slapzy

Re: pistol

Post by Slapzy » Tue Nov 11, 2008 3:01 pm

^Amen

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 25 guests