Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LF2 Engine Questions: Armour
#6
Whether the armor is intact or broken is stored in a variable (named Defend Point). If the value is higher than X, the armor will block things off (unless you are allergic to fire/ice, but we'll stick with Julian for now).

I'm feeling so free to shamelessly copy it out of the DLL Framework:
    ASM-Code:
mov eax,dword ptr ds:[esi+edi*4+194h]
		cmp dword ptr ds:[eax+0B8h],36			; the speed, the higher the more ridiculous the armor. Julian has 15.
		jg return2
		mov eax,dword ptr ds:[esi+ebx*4+194h]
		mov eax,dword ptr ds:[eax+368h]
		mov eax,dword ptr ds:[eax+6F4h]
		cmp eax,0D6h
		je return2
		cmp eax,0D0h
		je return2
		jmp dword ptr [ARMOR_JULIAN3]


Note that piercing attacks (Soul Bomb, Super Arrow, ...) will still bring 'em down instantly. I haven't cranked up that changable value to higher values than 50 but that one's already nuts and the char will almost never go into DOP.

Don't really have the time to go into detail right now, so please bear with me.

Stupid question, though, why no novel armor system? :p
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

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

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by: Bamboori , AmadisLFE


Messages In This Thread
LF2 Engine Questions: Armour - by Bamboori - 07-22-2014, 09:40 PM
RE: LF2 Engine Questions: Armour - by bashscrazy - 07-22-2014, 09:44 PM
RE: LF2 Engine Questions: Armour - by Ramond - 07-22-2014, 09:51 PM
RE: LF2 Engine Questions: Armour - by Bamboori - 07-22-2014, 11:27 PM
RE: LF2 Engine Questions: Armour - by STM1993 - 07-23-2014, 12:03 AM
RE: LF2 Engine Questions: Armour - by Silverthorn - 07-23-2014, 07:42 AM
RE: LF2 Engine Questions: Armour - by Bamboori - 07-23-2014, 11:20 AM
RE: LF2 Engine Questions: Armour - by Silverthorn - 07-23-2014, 11:45 AM
RE: LF2 Engine Questions: Armour - by Bamboori - 07-23-2014, 11:57 AM
RE: LF2 Engine Questions: Armour - by Shtrudel - 07-24-2014, 08:15 PM



Users browsing this thread: 4 Guest(s)