GoldenEye: Source Forums

  • March 28, 2024, 01:49:13 pm
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: [ISSUE] Are The Arsenal Weapon Levels Incrementing Correctly?  (Read 5310 times)

0 Members and 1 Guest are viewing this topic.

Phivex

  • Agent
  • *
  • Posts: 21
  • Reputation Power: 3
  • Phivex has no influence.
  • Offline Offline
[ISSUE] Are The Arsenal Weapon Levels Incrementing Correctly?
« on: September 22, 2016, 12:27:41 am »

In the Arsenal game mode, players are meant to start with the most powerful weapon and as they level up, their current weapon changes to a progressively weaker one. The current implementation seems to be the opposite of that. This is most noticeable with the "Entropy Set".

When looking at the "weapon_sets_custom.txt" I noticed each weapon set has an index. It even mentions the following in the documentation header of that same file.

Quote
The slots go from weakest to strongest (0-7) AND MAPS ARE DESIGNED AROUND THIS, so plan accordingly

 In the ..\GamePlay\Arsenal.py file, there are at least a couple of functions (most notably ar_PrintCurLevel() & ar_GivePlayerWeapons()) that reference this list of weapons by saying the following.
Code: [Select]
self.weaponList[lvl] 

With the level incrementing, it's only getting the stronger weapon each time. Shouldn't the implementation be the following instead?
Code: [Select]
self.weaponList[::-1][lvl]

That way it'll reverse the order from "weakest -> strongest" to "strongest -> weakest" and return the appropriate weapon.

Logged

soupcan

  • Lead Systems Administrator
  • 00 Agent
  • *****
  • Posts: 279
  • Reputation Power: 214
  • soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!
  • Offline Offline
    • Steam Profile
Re: [ISSUE] Are The Arsenal Weapon Levels Incrementing Correctly?
« Reply #1 on: September 22, 2016, 02:52:09 am »

Each mode can get its own script files for weapon sets, and you have the ability to allow or disallow specific global sets for modes, so should not be a problem. The weapon sets (the default ones, at least) you see when playing Arsenal were specifically supposed to be used with that mode.
« Last Edit: September 22, 2016, 02:56:23 am by soupcan »
Logged

Phivex

  • Agent
  • *
  • Posts: 21
  • Reputation Power: 3
  • Phivex has no influence.
  • Offline Offline
Re: [ISSUE] Are The Arsenal Weapon Levels Incrementing Correctly?
« Reply #2 on: September 22, 2016, 11:45:02 am »

It shouldn't matter if you have the ability to allow custom sets. If the game mode is supposed to be "strongest -> weakest", then it should work as such. The user shouldn't have to create two weapon sets, set1 and set1-reversed, just to be able to properly play a game mode with a set they like. That's bad HCI.
Logged

soupcan

  • Lead Systems Administrator
  • 00 Agent
  • *****
  • Posts: 279
  • Reputation Power: 214
  • soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!
  • Offline Offline
    • Steam Profile
Re: [ISSUE] Are The Arsenal Weapon Levels Incrementing Correctly?
« Reply #3 on: September 22, 2016, 08:31:37 pm »

Generally speaking, with the progression of weapons and duplicating weapons between levels, most sets designed for other modes won't play well with Arsenal anyhow.
Logged

Phivex

  • Agent
  • *
  • Posts: 21
  • Reputation Power: 3
  • Phivex has no influence.
  • Offline Offline
Re: [ISSUE] Are The Arsenal Weapon Levels Incrementing Correctly?
« Reply #4 on: September 22, 2016, 09:03:57 pm »

Ah, that's a good point, but couldn't the duplicate weapons be removed programmatically with
Code: [Select]
 set(weaponList)

I know that'd change the possible number of levels, but in my mind that and the number of kills per level should be easily modifiable anyways.
Logged
Pages: [1]   Go Up