Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
broken weapon question
#1
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
Reply
Thanks given by:
#2
create the broken weapon sprites(?)
Reply
Thanks given by:
#3
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 :p)

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 :p - 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...
[Image: random.php?pic=random]
www.lf-empire.de
Once I had a fortune, it said: "Leave now. Life is short. Time is luck"
Don't dream your life, live your dream!
Reply
Thanks given by:
#4
@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
Reply
Thanks given by:
#5
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~
Reply
Thanks given by:
#6
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.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#7
http://lf-empire.de/forum/showthread.php?tid=690
[Image: doty7Xn.gif]

10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.


Reply
Thanks given by:
#8
(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).
make the dvx of the ik8 go to a frame that deletes itself.

i think i can understand something of this...but i don't know if i can do it...:confused:
Reply
Thanks given by:
#9
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?
Reply
Thanks given by:
#10
(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
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)