Add effect cut options (+fix effect-related replay desyncs)
This commit is contained in:
parent
5effb5cfa3
commit
b9c85d7580
13 changed files with 54 additions and 24 deletions
|
@ -171,7 +171,8 @@ task _DropPointItem(float[] posEnm, int killTimer, int maxTimer, int pointMin, i
|
|||
|
||||
}
|
||||
|
||||
_ScorePopup(posEnm[0], posEnm[1], "POINT", pointFinal);
|
||||
if(GetAreaCommonData("Config", "EffectCut", 0) >= 1){}
|
||||
else{_ScorePopup(posEnm[0], posEnm[1], "POINT", pointFinal);}
|
||||
|
||||
return;
|
||||
|
||||
|
@ -193,7 +194,8 @@ task _DropPIVItemEnemy(int IDPlayer, float[] posEnm, int pointMin, int pointMax,
|
|||
|
||||
}
|
||||
|
||||
_ScorePopup(posEnm[0], posEnm[1], "PIV", pointFinal);
|
||||
if(GetAreaCommonData("Config", "EffectCut", 0) >= 1){}
|
||||
else{_ScorePopup(posEnm[0], posEnm[1], "PIV", pointFinal);}
|
||||
|
||||
return;
|
||||
|
||||
|
|
|
@ -64,16 +64,16 @@ task _ExplosionEffect(float enmX, float enmY, int targetList){
|
|||
//TExplosionA(enmX, enmY, 255/effectLength, 9/effectLength);
|
||||
|
||||
/*ascent(i in 0..effectNum){
|
||||
_CreatePetal(rand(5, 10)*dir, rand(5, 10)*dir, rand(0, 360));
|
||||
_CreatePetal(prand(5, 10)*dir, prand(5, 10)*dir, prand(0, 360));
|
||||
dir *= -1;
|
||||
//_CreatePetal(rand(50, 80), rand(-80, -50), rand(0, 360));
|
||||
//_CreatePetal(prand(50, 80), prand(-80, -50), prand(0, 360));
|
||||
}*/
|
||||
|
||||
_CreatePetal(rand(8, 11), rand(-8, -11), rand(0, 360));
|
||||
_CreatePetal(rand(-11, -8), rand(-2, 2), rand(0, 360));
|
||||
_CreatePetal(rand(8, 8), rand(-2, 2), rand(0, 360));
|
||||
_CreatePetal(rand(-11, -8), rand(8, 11), rand(0, 360));
|
||||
_CreatePetal(rand(8, 11), rand(8, 11), rand(0, 360));
|
||||
_CreatePetal(prand(8, 11), prand(-8, -11), prand(0, 360));
|
||||
_CreatePetal(prand(-11, -8), prand(-2, 2), prand(0, 360));
|
||||
_CreatePetal(prand(8, 8), prand(-2, 2), prand(0, 360));
|
||||
_CreatePetal(prand(-11, -8), prand(8, 11), prand(0, 360));
|
||||
_CreatePetal(prand(8, 11), prand(8, 11), prand(0, 360));
|
||||
|
||||
ObjSound_Play(sfxBoom);
|
||||
|
||||
|
@ -85,7 +85,7 @@ task _ExplosionEffect(float enmX, float enmY, int targetList){
|
|||
float x = enmX, y = enmY;
|
||||
let x_speed = spdX;
|
||||
let y_speed = spdY;
|
||||
let z_add = rand(-5, 5);
|
||||
let z_add = prand(-5, 5);
|
||||
|
||||
ascent(i in 0..effectLength){
|
||||
_PetalMovement(Interpolate_Decelerate(1.5, 0.5, i/effectLength), Interpolate_Decelerate(255, 0, i/effectLength));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue