Skip to content

Attack Defend gamemode#1971

Open
NotHosomi wants to merge 9 commits into
NeotokyoRebuild:masterfrom
NotHosomi:attack-defend
Open

Attack Defend gamemode#1971
NotHosomi wants to merge 9 commits into
NeotokyoRebuild:masterfrom
NotHosomi:attack-defend

Conversation

@NotHosomi

Copy link
Copy Markdown

Description

Adds the Attack/Defend gamemode
Non-parity: included cvars for atk overtime. Only the attacking team recieves overtime

Toolchain

  • Windows MSVC VS2022

Linked Issues

@DESTROYGIRL DESTROYGIRL requested a review from a team May 21, 2026 21:46
@NotHosomi NotHosomi marked this pull request as draft May 21, 2026 22:11
@NotHosomi NotHosomi marked this pull request as ready for review May 21, 2026 22:15

@blaberry blaberry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question about the attacking/defending neorules implementation

Comment thread src/game/shared/neo/neo_player_spawnpoint.cpp
@AdamTadeusz AdamTadeusz requested a review from a team May 29, 2026 10:47

float GetRoundRemainingTime() const;
float GetCTGOverTime() const;
float GetOverTime(NeoGameType eGameType) const;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why pass eGameType here, maybe read m_nGameTypeSelected same as GetRoundRemainingTime?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't worry about it ill refactor this a bit anyway once its merged

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why pass eGameType here, maybe read m_nGameTypeSelected same as GetRoundRemainingTime?

Following the pattern of the code that was in that block of Think originally, where it used a local var that had the current gamemode instead of the member. I think this may also be called in a second place

@Rainyan Rainyan requested a review from a team June 4, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attack / Defend Gamemode features are implemented natively

4 participants