GoldenEye: Source Forums

  • December 29, 2024, 03:06:10 pm
  • Welcome, Guest
Advanced search  

News:

Pages: 1 [2]  All   Go Down

Author Topic: GunGame- Weapon Slots  (Read 16847 times)

0 Members and 1 Guest are viewing this topic.

WNxEuphonic

  • 00 Agent
  • ***
  • Posts: 217
  • Reputation Power: 106
  • WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!WNxEuphonic is awe-inspiring!
  • Offline Offline
    • Euphonic.dev
Re: GunGame- Weapon Slots
« Reply #15 on: June 12, 2012, 05:24:25 am »

I might take a whack at recoding it this summer, but I have a lot of other modes to update as well. Definitely an easier to edit weaponlist(s) would be nice. Wouldn't be that hard to add something like gg_weaplist 0 (random) 1 (first list) 2 (second list) etc. that reads off a text file.

Well adding mines could work, there isn't a way through the python code to remove mines (Unless KM wants to add it, which would be nice)

Troy

  • GE:S Coder
  • 00 Agent
  • ***
  • Posts: 821
  • Reputation Power: 260
  • 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: GunGame- Weapon Slots
« Reply #16 on: June 26, 2012, 09:56:30 am »

I had an idea how to do this:

gg_weaplist 0 (random): random.shuffle(list's name)
gg_weaplist 1: Default list
gg_weaplist 2 (custom): Reads off a text file like so:

1. Open the file.
2. Runs a for loop.
3. Nested if statement to see if it's a valid weapon name comparing the names to a predefined list of valid weapons.
4. If it's valid, use split, and add it to the list.  Else, the weapon doesn't get added.

Or if you want to make a list comprehension

1. Open the file.
2. Runs a for loop.
3. Nested if statement to see if it's a valid weapon name comparing the names to a predefined list of valid weapons.
4. If it's valid, use split, and make the weapon name and the ammo count into it's own tuple.  Else skip the line completely.

Now someone just needs to code it. :D
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.

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: GunGame- Weapon Slots
« Reply #17 on: June 26, 2012, 10:43:53 am »

A fine suggestion Troy, now code it :-)
Logged

markpeterjameslegg

  • Did I fire six shots? Or only five?
  • 00 Agent
  • ***
  • Posts: 879
  • Reputation Power: 202
  • markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!
  • Offline Offline
Re: GunGame- Weapon Slots
« Reply #18 on: June 26, 2012, 11:10:09 am »

Now someone just needs to code it. :D

It says under your name that your a GE:S Coder? ???
Logged

Troy

  • GE:S Coder
  • 00 Agent
  • ***
  • Posts: 821
  • Reputation Power: 260
  • 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: GunGame- Weapon Slots
« Reply #19 on: June 27, 2012, 12:07:38 am »

*Sigh*

I guess I'll give it a try.
« Last Edit: June 27, 2012, 12:35:33 am 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.

markpeterjameslegg

  • Did I fire six shots? Or only five?
  • 00 Agent
  • ***
  • Posts: 879
  • Reputation Power: 202
  • markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!markpeterjameslegg is awe-inspiring!
  • Offline Offline
Re: GunGame- Weapon Slots
« Reply #20 on: June 27, 2012, 03:39:17 am »

*Sigh*

I guess I'll give it a try.

That's the spirit. ;) If I knew anything about coding I'd give a hand.
Logged
Pages: 1 [2]  All   Go Up