Debriefing > Impressions & Feedback

GunGame- Weapon Slots

<< < (4/5) > >>

WNxEuphonic:
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:
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

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

markpeterjameslegg:

--- Quote from: Troy on June 26, 2012, 09:56:30 am ---Now someone just needs to code it. :D

--- End quote ---

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

Troy:
*Sigh*

I guess I'll give it a try.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version