![]() |
|
broken weapon question - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: [1.9/1.9c] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=17) +--- Thread: broken weapon question (/showthread.php?tid=1895) |
broken weapon question - Wiro - 01-17-2009 Hi! i've never before made a weapon and it works well (and looks good) but when i is destoyed it just disappears without the broken images, so the question is how do i put the broken thing to my weapon? plz answear so i can do more weapons RE: broken weapon question - kururu - 01-17-2009 create the broken weapon sprites(?) RE: broken weapon question - MH-Razen - 01-17-2009 erm, as far as I remember silva once tryed to fix this problem and I think he could, but I dont have a cfg or so, so not sure. (and since this is always new for every id there wont be any cfg anyways )well, this should be in hex edit since there's no way with data changing.. edit: if you create a new weapon with a new idthere's no broken weapon, even if you create sprites and frames in broken_weapon.dat you need to code some new stuff into the exe - but... actually this should be for versions or at least weapon packs because noone will like to replace the exe just cause of a weapon...
RE: broken weapon question - Wiro - 01-17-2009 @sinow or who moved this thread: this should be in hex 1.9c or sth because it's in 1.9c i'm working (2.0 is cool for playing,but bad for modding) and can't i just do something in the broken_weapon.dat to make this work? and actually i haven't done the broken sprites yet because i just wanted to know how to do this RE: broken weapon question - Azriel - 01-17-2009 you can make the weapon keep opointing a t0 bdy which has ik8 and a bdy at the same spot, and have wait: 2 -> go to broken weapon sprites (or opoint the sprites). make the dvx of the ik8 go to a frame that deletes itself. Azriel~ RE: broken weapon question - Silverthorn - 01-17-2009 Imagine it the following way. The exe checks for the id of the weapon. If the weapon now has 0hp, the weapon will be deleted from the game and instead being replaced by some broken-weapon-sprites. But who tells the exe which ones are the right sprites? Well, the exe has some sort of list saved in it. Every pre-defined weapon has a certain frame assigned to it in broken_weapon.dat. Means, that new ids are not in the list and thus the exe don't knows which broken-sprites should be displayed. RE: broken weapon question - Boop - 01-17-2009 http://lf-empire.de/forum/showthread.php?tid=690 RE: broken weapon question - Wiro - 01-18-2009 (01-17-2009, 11:06 AM)Lord Silva Wrote: http://lf-empire.de/forum/showthread.php?tid=690 thanks very much, but i don't understand a thing...:confused: (01-17-2009, 10:54 AM)Azriel Wrote: you can make the weapon keep opointing a t0 bdy which has ik8 and a bdy at the same spot, and have wait: 2 -> go to broken weapon sprites (or opoint the sprites). i think i can understand something of this...but i don't know if i can do it...:confused: RE: broken weapon question - Lauli - 01-18-2009 I don't know if this has been said already, but you can make the weapon hold... a weapon. If the actual weapon breaks and disappears it lets the other weapon fall. If the other weapon touches the ground you can somehow make the broken thingy. Theoretically it works, but I once tried it and it was quite buggy... Wait, why did I make this post then? RE: broken weapon question - YinYin - 01-18-2009 (01-18-2009, 10:24 AM)Lauli Wrote: If the other weapon touches the ground you can somehow make the broken thingy.simply make frames 0-15 lead to an opoint sequence doing all your broken stuff no need to drop it beforehand edit: or rather the next of the frame the weapon is held in - it will act as soon as the wielder is deleted |