Add effect cut options (+fix effect-related replay desyncs)

This commit is contained in:
kevinmonitor 2022-09-18 19:12:19 +07:00
parent 5effb5cfa3
commit b9c85d7580
13 changed files with 54 additions and 24 deletions

View file

@ -29,10 +29,13 @@ int[] enmGround = [];
int[] rankAvg = [];
let SYSTEMID_PTR_2 = LoadAreaCommonDataValuePointer("ScriptID", "SystemID", 0);
// Includes ahoy
#include "script/KevinSystem/Universal_Lib.txt"
#include "script/game/99Sec_EnmLib.dnh"
#include "script/KevinSystem/kevin_system/Lib_Const.dnh"
@Initialize {
@ -60,11 +63,14 @@ int[] rankAvg = [];
//_RenderBossDaiyousei(bossObj);
SetEnemyAutoDeleteClip(165, 257, 165, 256);
//testTask();
bossTask();
mainTask();
groundTask();
curEnmManage();
//SetCommonData("Rank", 9);
//_FadeInvincibility(bossObj, 150, 150, 1);
//endingnew();
}
@ -552,12 +558,12 @@ task _BossExplosion(
//NotifyEventAll(EV_DROP_POINT_ENEMY, [enmX, enmY], timer, maxTimer, minPoint, maxPoint);
ObjSound_Play(bossBoom);
NotifyEvent(GetCommonDataPtr("SystemIDPtr", ID_INVALID), EV_EXPLODE, [enmX, enmY]);
NotifyEvent(GetCommonDataPtr(SYSTEMID_PTR_2, 0), EV_EXPLODE, [enmX, enmY]);
loop(30){
//LoadEx(bossBoom, "script/game/resourceLib/bigBoom.ogg", 30 * SFXVol);
ObjSound_Play(bossBoom);
NotifyEvent(GetCommonDataPtr("SystemIDPtr", ID_INVALID), EV_EXPLODE, [shipX+rand(-240, 240), shipY+rand(-150, 150)]);
NotifyEvent(GetCommonDataPtr(SYSTEMID_PTR_2, 0), EV_EXPLODE, [shipX+rand(-240, 240), shipY+rand(-150, 150)]);
wait(6);
}
@ -574,7 +580,7 @@ task _BossExplosion(
_EndShake(120, 120);
loop(120){
NotifyEvent(GetCommonDataPtr("SystemIDPtr", ID_INVALID), EV_EXPLODE, [shipX+rand(-240, 240), STG_HEIGHT+rand(0, -150)]);
NotifyEvent(GetCommonDataPtr(SYSTEMID_PTR_2, 0), EV_EXPLODE, [shipX+rand(-240, 240), STG_HEIGHT+rand(0, -150)]);
}
ObjSound_Play(bossBoom);
@ -693,6 +699,23 @@ task RankManagement(){
}
task testTask(){
wait(15);
while(ObjEnemyBossScene_GetInfo(objScene, INFO_TIMER) > 20){
//Wave4();
WaveGround1();
wait(15);
//SetCommonData("Rank", clamp(GetCommonData("Rank", 1)+1, 1, 9));
//SetCommonData("Ground Loops Cleared", GetCommonData("Ground Loops Cleared", 0)+1);
yield;
}
}
task groundTask(){
wait(15);

Binary file not shown.

Binary file not shown.