Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchgod0 committed Sep 25, 2023
2 parents 96b384b + 7832942 commit c62bef9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
8 changes: 4 additions & 4 deletions binary/dlls/agdom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ void AgDOMControlPoint::Capture(CBasePlayer* pPlayer, const char* szTeamName)
// Inform all players that zone has been taken control of by playername
// really need identifiers for each control point!
char szText[300];
sprintf(szText, "%s captures CP at %s!", STRING(pPlayer->pev->netname), m_szLocation);
sprintf(szText, "%s captured %s!", STRING(pPlayer->pev->netname), m_szLocation);
AgConsole(szText);
UTIL_ClientPrintAll(HUD_PRINTCENTER, szText);
UTIL_ClientPrintAll(HUD_PRINTTALK, szText);
}

void AgDOMControlPoint::ChangeControllingTeam(const char* szTeamName)
Expand Down Expand Up @@ -381,9 +381,9 @@ void AgDOMControlPoint::Think(void)
// a neutral state.
if (m_iConsecutiveScores >= ag_dom_resetscorelimit.value) {
char szText[201];
sprintf(szText, "Neutral CP available at %s", m_szLocation);
sprintf(szText, "Control point available at %s", m_szLocation);
AgConsole(szText);
UTIL_ClientPrintAll(HUD_PRINTCENTER, szText);
UTIL_ClientPrintAll(HUD_PRINTTALK, szText);
Reset();
}

Expand Down
7 changes: 7 additions & 0 deletions binary/dlls/aghideandseek.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

//#if !defined(AFX_AGARENA_H__1929C55A_3034_4C89_8398_1F8243B83499__INCLUDED_)
#define AFX_AGARENA_H__1929C55A_3034_4C89_8398_1F8243B83499__INCLUDED_
#ifndef HIDEANDSEEK_H
#define HIDEANDSEEK_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



class AgHideandseek
{
typedef list<int> AgWaitList;
Expand Down Expand Up @@ -66,6 +70,8 @@ inline CBasePlayer* AgHideandseek::GetSeeker()
return NULL;
};



inline bool AgHideandseek::CanTakeDamage()
{
return Playing == m_Status || PlayerDied == m_Status;
Expand All @@ -78,3 +84,4 @@ inline bool AgHideandseek::CanHaveItem()


//#endif // !defined(AFX_AGARENA_H__1929C55A_3034_4C89_8398_1F8243B83499__INCLUDED_)
#endif // HIDEANDSEEK_H
4 changes: 2 additions & 2 deletions binary/dlls/agvote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ bool AgVote::HandleCommand(CBasePlayer* pPlayer)
return true;
}

if (FStrEq(CMD_ARGV(0), "aglistvotes"))
/*if (FStrEq(CMD_ARGV(0), "aglistvotes"))
{
for (int i = 0; i < sizeof(s_szVotes) / sizeof(s_szVotes[0]); i++)
AgConsole(s_szVotes[i], pPlayer);
GameMode.Help(pPlayer);
return true;
}
}*/
else if (FStrEq(m_sVote.c_str(), "agmaxtime"))
{
if (!ag_vote_setting.value)
Expand Down
2 changes: 1 addition & 1 deletion binary/dlls/op4_weapons/CGrapple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ int CGrapple::GetItemInfo(ItemInfo* p)
p->iPosition = 3;
p->iId = m_iId = WEAPON_GRAPPLE;
p->iFlags = 0;
p->iWeight = 21;
p->iWeight = GRAPPLE_WEIGHT;

return true;
}
3 changes: 2 additions & 1 deletion binary/dlls/weapons.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class CGrenade : public CBaseMonster
#define CROWBAR_WEIGHT 0
#define GLOCK_WEIGHT 10
#define PYTHON_WEIGHT 15
#define MP5_WEIGHT 15
#define MP5_WEIGHT 25
#define SHOTGUN_WEIGHT 15
#define CROSSBOW_WEIGHT 10
#define RPG_WEIGHT 20
Expand All @@ -117,6 +117,7 @@ class CGrenade : public CBaseMonster
#define SNARK_WEIGHT 5
#define SATCHEL_WEIGHT -10
#define TRIPMINE_WEIGHT -10
#define GRAPPLE_WEIGHT -10
#define EAGLE_WEIGHT 15
#define SPORELAUNCHER_WEIGHT 20
#define SHOCKRIFLE_WEIGHT 15
Expand Down
2 changes: 1 addition & 1 deletion binary/linux/Makefile.agdll
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ HLDLL_OBJS = \
$(HLDLL_OBJ_DIR)/agadmin.o \
$(HLDLL_OBJ_DIR)/agadmincache.o \
$(HLDLL_OBJ_DIR)/agarena.o \
$(HLDLL_OBJ_DIR)/aghideandseek.o \
$(HLDLL_OBJ_DIR)/agclient.o \
$(HLDLL_OBJ_DIR)/agcommand.o \
$(HLDLL_OBJ_DIR)/aggamerules.o \
$(HLDLL_OBJ_DIR)/agglobal.o \
$(HLDLL_OBJ_DIR)/aghideandseek.o \
$(HLDLL_OBJ_DIR)/agmatch.o \
$(HLDLL_OBJ_DIR)/agscore.o \
$(HLDLL_OBJ_DIR)/agscorecache.o \
Expand Down
Binary file modified maps/Crossfire.rmf
Binary file not shown.

0 comments on commit c62bef9

Please sign in to comment.