Skip to content

Commit

Permalink
CTF: Add missing code on capture
Browse files Browse the repository at this point in the history
  • Loading branch information
rtxa committed Jul 5, 2023
1 parent 979e149 commit 3178248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion valve/addons/amxmodx/scripting/agmodx_ctf.sma
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public OnCapturePointTouch(touched, toucher) {

new points = get_pcvar_num(gCvarCapturePoints);
AddPoints(toucher, points);
AddPointsToTeammates(BLUE_TEAM, get_pcvar_num(gCvarTeamCapturePoints));
AddPointsToTeammates(RED_TEAM, get_pcvar_num(gCvarTeamCapturePoints));
gRedScore++;
UpdateTeamScore();

Expand All @@ -499,6 +499,7 @@ public OnCapturePointTouch(touched, toucher) {

new points = get_pcvar_num(gCvarCapturePoints);
AddPoints(toucher, points);
AddPointsToTeammates(BLUE_TEAM, get_pcvar_num(gCvarTeamCapturePoints));
gBlueScore++;
UpdateTeamScore();

Expand Down

0 comments on commit 3178248

Please sign in to comment.