GoldenEye: Source Forums

  • May 25, 2018, 05:25:02 PM
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: [ISSUE] Are The Arsenal Weapon Levels Incrementing Correctly?  (Read 1330 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 21, 2016, 01:27:41 PM »

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

  • Systems Administrator
  • 00 Agent
  • *
  • Posts: 240
  • Reputation Power: 137
  • 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 21, 2016, 03:52:09 PM »

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 21, 2016, 03:56:23 PM 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, 12: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

  • Systems Administrator
  • 00 Agent
  • *
  • Posts: 240
  • Reputation Power: 137
  • 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, 09:31:37 AM »

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, 10:03:57 AM »

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