Skip to content

Commit

Permalink
CTF: Add missing cvars
Browse files Browse the repository at this point in the history
Not implemented yet
  • Loading branch information
rtxa committed Jul 4, 2023
1 parent 4fcc17f commit 31ffe5e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions valve/addons/amxmodx/scripting/agmodx_ctf.sma
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ new gHudCtfMessage;
new gTeamListModels[HL_MAX_TEAMS][HL_MAX_TEAMNAME_LENGTH];

new gCvarCtfDebug;
new gCvarCapturePoints;
new gCvarFlagReturnTime;
new gCvarCaptureLimit; // the number of captures before map ends.
new gCvarCapturePoints; // the amount of points his teammates get.
new gCvarTeamCapturePoints; // the amount of points his teammates get.
new gCvarDefendPoints; // the amount of points the defender gets.
new gCvarStealPoints; // the amount of points the stealer gets.
new gCvarCarrierKillPoints; // the amount of points the killer gets.
new gCvarReturnPoints; // the amount of points the returner gets.
new gCvarFlagReturnTime; // the time that a dropped flag lays in the world before respawning.
new gCvarFlagDelayTime;

public plugin_precache() {
Expand All @@ -80,8 +86,14 @@ public plugin_precache() {
precache_sound(VOX_SOUNDS[i]);

gCvarCtfDebug = create_cvar("sv_ag_ctf_debug", "0");
gCvarCapturePoints = create_cvar("sv_ag_ctf_capturepoints", "10");
gCvarFlagReturnTime = create_cvar("sv_ag_ctf_flag_returntime", "30");
gCvarCaptureLimit = create_cvar("sv_ag_ctf_capturelimit", "10");
gCvarCapturePoints = create_cvar("sv_ag_ctf_capturepoints", "4");
gCvarTeamCapturePoints = create_cvar("sv_ag_ctf_teamcapturepoints", "1");
gCvarDefendPoints = create_cvar("sv_ag_ctf_defendpoints", "1");
gCvarReturnPoints = create_cvar("sv_ag_ctf_returnpoints", "1");
gCvarStealPoints = create_cvar("sv_ag_ctf_stealpoints", "1");
gCvarCarrierKillPoints = create_cvar("sv_ag_ctf_carrierkillpoints", "1");
gCvarFlagReturnTime = create_cvar("sv_ag_ctf_flag_resettime", "30");
gCvarFlagDelayTime = create_cvar("sv_ag_ctf_flag_delaytime", "3");
}

Expand Down

0 comments on commit 31ffe5e

Please sign in to comment.