From 7f770e59f2aa8a392cc78285a0422120dc1d6ede Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 12 May 2013 23:25:49 +0200 Subject: added line lift nybble 11 --- src/randomcrap.S | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'src/randomcrap.S') diff --git a/src/randomcrap.S b/src/randomcrap.S index 88cba39..29bf758 100644 --- a/src/randomcrap.S +++ b/src/randomcrap.S @@ -317,6 +317,7 @@ BigMetSlidingFix: blr .global FuckLineLiftWithARake +.extern ContinueFromFuckLineLiftActivation FuckLineLiftWithARake: stfs f0, 0x324(r28) lis r4, sfsdfsdf@h @@ -325,6 +326,60 @@ FuckLineLiftWithARake: stfs f0, 0x318(r28) stfs f0, 0x31C(r28) blr +.global AlsoFuckTheLineLiftActivation +AlsoFuckTheLineLiftActivation: + stwu r1, -0x10(r1) + lwz r6, 4(r3) + extrwi. r6, r6, 4,24 + bne myLineLiftActivator + b ContinueFromFuckLineLiftActivation +myLineLiftActivator: + mflr r0 + stw r0, 0x14(r1) + stw r31, 0xC(r1) + li r31, 0 + stw r30, 0x8(r1) + lwz r30, 0x518(r3) + b llaStartLoop +llaLoop: + lwz r3, 4(r30) + lbz r0, 0x38C(r3) + cmplwi r0, 1 + bne llaNotPlayer + addi r31, r31, 1 + b llaNext +llaNotPlayer: + cmplwi r0, 2 + bne llaNext + lwz r12, 0x60(r3) + lwz r12, 0x6C(r12) + mtctr r12 + bctrl + lbz r0, 0(r3) + extsb r0, r0 + cmplwi r0, 4 + bge llaNext + addi r31, r31, 1 +llaNext: + lwz r30, 0xC(r30) +llaStartLoop: + cmpwi r30, 0 + bne llaLoop + + cmpwi r31, 0 + beq llaReturnZero + li r3, 1 + b llaReturn +llaReturnZero: + li r3, 0 +llaReturn: + lwz r31, 0xC(r1) + lwz r30, 8(r1) + lwz r0, 0x14(r1) + mtlr r0 + addi r1, r1, 0x10 + blr + .data sfsdfsdf: .float 512.0 -- cgit v1.2.3