Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- These are best viewed alongside the cutscene decomp:
- https://github.com/X-Hax/SADX-cutscene-decompilation
- For basics about what "task" etc. means, see the SADX Modding Guide:
- https://github.com/X-Hax/SADXModdingGuide/wiki
- ///Detect if an event is running with these:
- int EV_Check(); //Check if any event is running. Uncommon. Only used in the Chaos 0 map and for the doors after Casinopolis in Tails' story.
- int EV_CheckCansel(); //Check if event conditions are running. (No HUD in stages etc.)
- int EV_CheckExec(int no); //Check if a specific event is running.
- ///Script Functions:
- void EV_PadOn(); //Enable controls
- void EV_PadOff(); //Disable controls
- void EV_CanselOn(); //Enable event conditions. (Remove the HUD etc.)
- void EV_Msg(char* str); //Open a textbox. Note: Waits 20 Frames.
- void EV_MsgClose(); //Close a textbox. Note: Waits 20 Frames.
- void EV_MsgCls(); //Close text but don't close the textbox.
- task* EV_GetPlayer(int no); //Get Player [no]'s character's object.
- void EV_FreeObject(task** tp); //Delete an object.
- void EV_SetPos(task* tp, float x, float y, float z); //Set Position of a task.
- void EV_SetAng(task* tp, int x, int y, int z); //Set Rotation of a task.
- void EV_SetMode(task* tp, int mode); //Set Mode (Action ID) of a task.
- void EV_SetShadow(task* tp, float size); //Set shadow size of a task.
- void EV_SetColli(task* tp, float size); //Set collision size of a task.
- void EV_CreatePlayer(int n, void(* func)(task*), float px, float py, float pz, int ax, int ay, int az); //Create an NPC player character.
- void EV_RemovePlayer(int n); //Remove a player character.
- void EV_SetAction(task* tp, NJS_ACTION* ap, NJS_TEXLIST* lp, float speed, int mode, int linkframe); //Play an animation.
- void EV_SetMotion(task* tp, obj* op, NJS_MOTION* mp, NJS_TEXLIST* lp, float speed, int mode, int linkframe); //Event Library:Play an animation without a premade NJS_ACTION.
- void EV_ClrAction(task* tp); //Clear EV_SetAction/Motion commands.
- void EV_SetPath(task* tp, EPATHTAG* path, float speed, int mode); //Make an object follow a path.
- void EV_ClrPath(task* tp); //Clear EV_SetPath commands.
- void EV_LookFree(task* tp); //Clear Look commands.
- void EV_LookObject(task* tp, task* target, float x, float y, float z); //Focus a character's head on an object.
- void EV_LookPoint(task* tp, float x, float y, float z); //Focus a character's head on a point.
- void EV_LookAngle(task* tp, int x, int y, int z); //Rotate a character's head.
- void EV_MoveFree(task* tp); //Clear Move
- void EV_MovePoint(task* tp, float x, float y, float z); //Move a character to a point at a fixed speed.
- void EV_MovePoint2(task* tp, float x, float y, float z, float s, float a); //Move a character to a point at an adjustable speed and acceleration.
- void EV_MoveRotation(task* tp, int x, int y, int z); //Rotate a character.
- void EV_CameraOn(); //Create Event Camera
- void EV_CameraOff(); //Delete Event Camera
- void EV_CameraAng(int mode, int time, int x, int y, int z); //Set camera rotation.
- void EV_CameraPos(int mode, int time, float x, float y, float z); //Set camera position.
- void EV_CameraPosORY(char mode, int time, task* tp, float x, float y, float z); //Set camera position while orbiting an object.
- void EV_CameraTargetFree(); //Clear CameraTarget commands.
- void EV_CameraTargetPos(int mode, int time, float x, float y, float z, int az); //Make the camera look at a point.
- void EV_CameraTargetObj(int mode, int time, task* tp, float x, float y, float z, int az); //Make the camera look at an object from a position.
- void EV_CameraChaseFree(); //Clear CameraChase commands.
- void EV_CameraChase(task* tp); //Make the camera follow an object.
- void EV_CameraChaseRM(int mode, int time, task* tp, float height, int x0, int y0, int z0, float d0, int x1, int y1, int z1, float d1); //Make the camera follow an object while also running an animation (ROTMOVE).
- void EV_CameraPerspective(int mode, int time, int ang); //Set FOV.
- void EV_CameraPath(cpathtag* path, float speed); //Make the camera follow a path.
- void EV_SetFace(task* tp, const char* str); //Play a face animation.
- void EV_ClrFace(task* tp); //Reset a character's face.
- void EV_SerifStop(); //Stop a voice clip.
- void EV_Wait(int time); //Wait [time] Frames.
- void EV_MsgW(int time, char* str); //Display a message and wait.
- void EV_CreateObject(task** tpp, float px, float py, float pz, int ax, int ay, int az); //Create a generic object.
- void EV_CreateObjectFunc(task** tpp, task* (*func)(void), float x, float y, float z, int rx, int ry, int rz); //Create an object that has its own main/display functions.
- void EV_InitObject(task* tp); //Clear any existing Action/Path/Move/Face commands from a task.
- void EV_InitPlayer(int n); //Cleanup for the player before/after an event.
- void EV_WaitAction(task* tp); //Wait for a task to finish an Action command.
- void EV_WaitPath(task* tp); //Wait for a task to finish a Path command.
- void EV_PlayPad(int no, PADREC_DATA_TAG* tag); //Automated controller input
- void EV_WaitMove(task* tp); //Wait for a task to finish a Move command.
- void EV_SerifWait(); //Wait for a voice clip to end.
- void EV_SerifPlay(int id); //Play a voice clip
Advertisement
Add Comment
Please, Sign In to add comment