GoldenEye: Source Forums

  • February 21, 2020, 09:13:24 pm
  • Welcome, Guest
Advanced search  

News:

Pages: 1 [2]  All   Go Down

Author Topic: [Gameplay] Arsenal  (Read 11804 times)

0 Members and 1 Guest are viewing this topic.

Troy

  • GE:S Coder
  • 00 Agent
  • ***
  • Posts: 818
  • Reputation Power: 176
  • Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!
  • Offline Offline
Re: [Gameplay] Arsenal
« Reply #15 on: May 05, 2013, 10:55:43 am »

I've updated the download link.  The game mode now uses localization.  This now belongs to the GE:S team. :D
« Last Edit: May 05, 2013, 04:20:13 pm by Troy »
Logged
Complete - Arsenal, One Bullet is Enough, Tournament DM v2, TurboDM
Defunct - Agent Under Fire
VC - Being such a dick, KM must be stroked before springing into action.

Troy

  • GE:S Coder
  • 00 Agent
  • ***
  • Posts: 818
  • Reputation Power: 176
  • Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!
  • Offline Offline
Re: [Gameplay] Arsenal
« Reply #16 on: May 16, 2013, 09:19:12 pm »

KM took too long to do this:

http://forums.geshl2.com/index.php/topic,7534.msg78404.html#msg78404

I decided to code it:

Code: [Select]
    def PrintWeapons( self, player ):
        if not player:
            return

        arWeapons = ""
        for i in range( self.GetLevel( player ), len( weaponList ) ):
            name = GEWeapon.WeaponPrintName( weaponList[i][0] )
            arWeapons += "Level %i: %%%s\n" % ( i + 1, name )

            if arWeapons.count( ":" ) == 5:
                break

        if arWeapons:
            finalWeapon = GEWeapon.WeaponPrintName( weaponList[-1][0] )
            if not arWeapons.count( finalWeapon ):
                arWeapons += "Level %i: %%%s\n" % ( len( weaponList ), finalWeapon )
            GEUtil.PopupMessage( player, "#GES_GP_ARSENAL_NAME", arWeapons )

Download link updated. ;)
« Last Edit: May 16, 2013, 09:42:58 pm by Troy »
Logged
Complete - Arsenal, One Bullet is Enough, Tournament DM v2, TurboDM
Defunct - Agent Under Fire
VC - Being such a dick, KM must be stroked before springing into action.
Pages: 1 [2]  All   Go Up