Page 1 of 1

Adding a flashlight to a weapon

Posted: Tue Aug 02, 2005 10:42 pm
by santamaycry
Ok i understand you need the chunk adder for this, but i havnt really messed with the idea, i used the search button but to no avail, any pointers?

Posted: Tue Aug 02, 2005 10:53 pm
by Aequitas
No you don't need "the chunk adder"...

You need to add chunks, though. Try Insolence, Hex Workshop, and a few interflexives.

Posted: Tue Aug 02, 2005 10:56 pm
by santamaycry
Aequitas wrote:No you don't need "the chunk adder"...

You need to add chunks, though. Try Insolence, Hex Workshop, and a few interflexives.
i hate insolence, because then i need serenity

i dont want to use hex

doesnt the chunk adder do that for me?

Posted: Tue Aug 02, 2005 10:57 pm
by Aequitas
Well, if you don't use stuff like "the chunk adder" that creates improper maps, you'll be set to use Serenity and there won't be any problems.

Posted: Tue Aug 02, 2005 11:00 pm
by santamaycry
serenity hates me

Posted: Tue Aug 02, 2005 11:50 pm
by xbox7887
SantaMayCry wrote:serenity hates me
i wonder why... :roll:. u can use glitchys chunk adder but you would have to add the reflexive to the plugin and then like aequitas said, it wouldnt be compatable with serenity patches. another way without making interflexes would be to just extract the weapon tag u wish to edit, copy the chunk that u wanna use and put it at the end of the weapon meta and then just add reflexive info in the meta.data, then u can just inject it back into the map over something else and it will automatically translate the reflexives for u so u dont need to do any converting. it doesnt get much easier than that

Posted: Wed Aug 03, 2005 1:19 am
by Aequitas
I usually just use Insolence to make an extra tag that's around the size I need, then handle the rest in Hex Workshop. I'll have to try ADI instead of Hex Workshop... might be quicker. ;x

Posted: Wed Aug 03, 2005 3:51 am
by santamaycry
xbox7887 wrote:
SantaMayCry wrote:serenity hates me
i wonder why... :roll:. u can use glitchys chunk adder but you would have to add the reflexive to the plugin and then like aequitas said, it wouldnt be compatable with serenity patches. another way without making interflexes would be to just extract the weapon tag u wish to edit, copy the chunk that u wanna use and put it at the end of the weapon meta and then just add reflexive info in the meta.data, then u can just inject it back into the map over something else and it will automatically translate the reflexives for u so u dont need to do any converting. it doesnt get much easier than that
could you explain that in a tad more detail?

Posted: Wed Aug 03, 2005 4:10 am
by Extrinsic
ok i understand every thing accept how do i just add reflexive info in the meta.data?

Posted: Wed Aug 03, 2005 10:08 am
by xbox7887
SantaMayCry wrote:could you explain that in a tad more detail?
ive never actually added light to a weapon but first you need to extract the meta of the weapon u wish to add the flashlight to, i prefer ADI but any map editor will do. then you need to find the location of where the light reflexive should be, i think its at decimal offset 148 but im referring to a really old plug i made a while ago so it could be wrong. you cant just put reflexives anywhere u want, the game has specified locations on where each one should be so make sure its in the right place or the game will most likely freeze. now youre gonna want to add a light chunk to the end of the weapon meta, if i was right before then it has a chunk size of 24 bytes. there should be a light dependency at offset 0 of the chunk, then a couple of string ids that follow and i dunno what else. after u build the chunk and reference it to the light u wanna add then you can save the weapon meta. now its time to edit the meta.data...im gonna use adis format as an example. just add "Reflexive|152|X|1", "X" being the offset of where your injected chunk is located. the offsets i gave might be incorrect and knowing me probly are :woops: but at least u have some sort of example to follow