Kuribo64
Views: 19,850,551 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-28-24 11:42 AM
Guest:

0 users reading Miniboss Spawns Key | 1 bot

Main - General SM64DS hacking - Miniboss Spawns Key Hide post layouts | New reply


Sparsite
Posted on 06-07-16 04:14 AM (rev. 2 of 06-07-16 04:15 AM) Link | #71637
I have modified the Wiggler boss fight to spawn the Wario key instead of a regular star. You could easily do this with all the other mini bosses as well.

Not exactly sure why it says the star is breath taking view from the bridge(from tall, tall mountain), but I haven't bothered to look into it.

This was mainly inspired from Super Mario Star Road's first two bosses, as they were just mini bosses reprogrammed to give you a key when defeated.

Video:



Source Code:

#include "SM64DS.h"

const short int OBJ_ZZZ_ACTOR_ID = 0x011A;
short int param01 = 0x0004;
int TmpPos[3] = {0,0,0};
short int TmpRot[3] = {0,0,0};

void repl_0200FF50()
{
TmpPos[0] = PLAYER->xPos;
TmpPos[1] = PLAYER->yPos;
TmpPos[2] = PLAYER->zPos;
TmpRot[0] = 0;
TmpRot[1] = 0;
TmpRot[2] = 0;
SpawnActor(OBJ_ZZZ_ACTOR_ID,param01,TmpPos,TmpRot);
}


____________________
ASMR:
*quietly whispers*
move r0 r7
push r4 to r14
load register r4 into r0
POP

TheHappyFaceKing
Posted on 06-09-16 01:51 PM Link | #71753
What do I do with this code?


Sparsite
Posted on 06-09-16 11:18 PM (rev. 2 of 06-09-16 11:20 PM) Link | #71768
You patch it to your rom with the ASM Patch Template

Obviously, this only works with the Wiggler though. If you want it to work for other mini bosses, you can either do it yourself, or ask me.

____________________
ASMR:
*quietly whispers*
move r0 r7
push r4 to r14
load register r4 into r0
POP


Main - General SM64DS hacking - Miniboss Spawns Key Hide post layouts | New reply

Page rendered in 0.016 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 202/202, time: 0.009 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.