Skip to content

Commit

Permalink
EPA holograms: fixed duplicating timer events
Browse files Browse the repository at this point in the history
  • Loading branch information
phobos2077 committed May 2, 2024
1 parent 33ef266 commit d73cb7c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion scripts_src/epa/epac4.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ variable Only_Once := 0;

procedure start
begin
add_timer_event(self_obj, game_ticks(random(4, 7)), 3);
end

procedure combat_p_proc
Expand Down Expand Up @@ -222,6 +221,9 @@ end
procedure map_enter_p_proc
begin
Only_Once := 0;
if (not is_loading_game) then begin
add_timer_event(self_obj, game_ticks(random(4, 7)), 3);
end
end

procedure timed_event_p_proc
Expand Down
4 changes: 3 additions & 1 deletion scripts_src/epa/epac5.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ variable Only_Once := 0;

procedure start
begin
add_timer_event(self_obj, game_ticks(random(5, 8)), 3);
end

procedure combat_p_proc
Expand Down Expand Up @@ -205,6 +204,9 @@ end
procedure map_enter_p_proc
begin
Only_Once := 0;
if (not is_loading_game) then begin
add_timer_event(self_obj, game_ticks(random(5, 8)), 3);
end
end

procedure timed_event_p_proc
Expand Down
4 changes: 3 additions & 1 deletion scripts_src/epa/epac6.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ variable Only_Once := 0;

procedure start
begin
add_timer_event(self_obj, game_ticks(random(5, 8)), 3);
end

procedure combat_p_proc
Expand Down Expand Up @@ -218,6 +217,9 @@ end
procedure map_enter_p_proc
begin
Only_Once := 0;
if (not is_loading_game) then begin
add_timer_event(self_obj, game_ticks(random(5, 8)), 3);
end
end

procedure timed_event_p_proc
Expand Down
4 changes: 3 additions & 1 deletion scripts_src/epa/epac7.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ variable Only_Once := 0;

procedure start
begin
add_timer_event(self_obj, game_ticks(random(5, 8)), 3);
end

procedure combat_p_proc
Expand Down Expand Up @@ -217,6 +216,9 @@ end
procedure map_enter_p_proc
begin
Only_Once := 0;
if (not is_loading_game) then begin
add_timer_event(self_obj, game_ticks(random(5, 8)), 3);
end
end

procedure timed_event_p_proc
Expand Down

0 comments on commit d73cb7c

Please sign in to comment.