![]() |
|
Hex for Project/Beginner - 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: Hex for Project/Beginner (/showthread.php?tid=7350) Pages:
1
2
|
RE: Hex for Project/Beginner - 支倉凍砂 - 12-28-2011 @Blue Phoenix, MH-Razen, Lord Silva: Thanks for clearing that out. @xmfcx Okay, but if I can only have MP or the other, I am going with the MP. Is it possible to add a SP gauge that everyone has then? RE: Hex for Project/Beginner - mfc - 12-31-2011 Here is your stamina bar. (without hex:P) www.lf-empire.de/forum/showthread.php?tid=4448&highlight=stamina by Snomin RE: Hex for Project/Beginner - Dominate - 01-01-2012 is there anything to edit lf2 i use reshack but no use it doesnt open the lf2 after why does that happen?
RE: Hex for Project/Beginner - 支倉凍砂 - 01-01-2012 (12-31-2011, 12:42 PM)xmfcx Wrote: Here is your stamina bar. Difference is that bar is located under the character, and not in the "status bar". : p Though, I might try to use that if deemed necessary. RE: Hex for Project/Beginner - Boop - 01-01-2012 Making a stamina bar shouldn't be too difficult. You need to allocate memory for it. Lets say stamina goes up to 500, so we can store that in 2 bytes, you will need to allocate 400(since there are 400 possible objects in lf2) * 2 (since stamina will take 2 bytes). Then just access it by doing something like: add word ptr ds:[memAlloc + player_id * 2], 1 Or something. Then search for my winamp controller. It includes a method to get the DC from the direct draw interface in lf2, this will allow you to "draw" on the lf2 screen. You can use that to draw rectangles and stuff (a.k.a the stamina bar). Then just use some basic math to figure out how big the rectangle should be, and you are done. RE: Hex for Project/Beginner - 支倉凍砂 - 01-02-2012 Can you make it work like the mp-tag then? So that some attacks have like <frame> X stamina_attack pic: ? [...] sp: 200 ? Also, as Julian and Firzen's IDs have enhanced MP regeneration, I guess it would be possible to have the SP regeneration also vary whith each character? |