Adding a flashlight to a weapon
-
- Posts: 463
- Joined: Mon Mar 28, 2005 6:32 pm
Adding a flashlight to a weapon
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?
-
- Posts: 463
- Joined: Mon Mar 28, 2005 6:32 pm
i wonder why...SantaMayCry wrote:serenity hates me

-
- Posts: 463
- Joined: Mon Mar 28, 2005 6:32 pm
could you explain that in a tad more detail?xbox7887 wrote:i wonder why...SantaMayCry wrote:serenity hates me. 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
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 followSantaMayCry wrote:could you explain that in a tad more detail?