[HL2DM] Restrictions

Discuss API design here.
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

[HL2DM] Restrictions

Postby Kami » Wed Jan 13, 2021 7:39 pm

Hey guys,

I recently noticed that the restrictions package does not work with HL2DM as some things are different there.

There is no buy_internal for example. Also the team index for deathmatch is always 0 which will result in "KeyError: '"0" is neither a team number nor an alias."

I'm not sure if the package is just ment for certain engines or if this just went unnoticed.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: [HL2DM] Restrictions

Postby L'In20Cible » Thu Jan 14, 2021 4:30 am

Kami wrote:Hey guys,

I recently noticed that the restrictions package does not work with HL2DM as some things are different there.

There is no buy_internal for example. Also the team index for deathmatch is always 0 which will result in "KeyError: '"0" is neither a team number nor an alias."

I'm not sure if the package is just ment for certain engines or if this just went unnoticed.

Should be fixed into: dae3ae8
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: [HL2DM] Restrictions

Postby Kami » Thu Jan 14, 2021 6:35 am

Thank you very much! It works perfectly now.
User avatar
PEACE
Member
Posts: 50
Joined: Mon Oct 12, 2020 1:13 pm

Re: [HL2DM] Restrictions

Postby PEACE » Fri Jan 15, 2021 12:49 am

Yes it sure does thank you

Return to “API Design”

Who is online

Users browsing this forum: No registered users and 27 guests