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

@ -94,7 +94,7 @@ const EV_PIV_2000 = EV_USER + 103i; // What.
// Shot functions
SetPlayerSpell(99);
//SetPlayerSpell(99);
_CAVELaser();
_ShotType();
@ -119,10 +119,15 @@ const EV_PIV_2000 = EV_USER + 103i; // What.
// Delete effect
case(EV_DELETE_SHOT_PLAYER){
let graphic = GetEventArgument(2);
float[] position = GetEventArgument(1);
let obj = CreatePlayerShotA1(position[0], position[1], 0, ObjMove_GetAngle(GetEventArgument(0)), 0, 99999, graphic);
ObjShot_SetIntersectionEnable(obj, false); _DeleteEffect(obj, shotScale);
if(GetAreaCommonData("Config", "EffectCut", 0) >= 3){}
else{
let graphic = GetEventArgument(2);
float[] position = GetEventArgument(1);
let obj = CreatePlayerShotA1(position[0], position[1], 0, ObjMove_GetAngle(GetEventArgument(0)), 0, 99999, graphic);
ObjShot_SetIntersectionEnable(obj, false); _DeleteEffect(obj, shotScale);
}
//if(graphic == ELECTRIC_FIRE_ALT) {_DeleteEffectAlt(obj);}
//else{_DeleteEffect(obj);}
}