GoldenEye: Source Forums

  • December 22, 2024, 05:57:51 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: How Do I Get The Name Of The Current Map In Python?  (Read 13455 times)

0 Members and 1 Guest are viewing this topic.

Phivex

  • Agent
  • *
  • Posts: 21
  • Reputation Power: 3
  • Phivex has no influence.
  • Offline Offline
How Do I Get The Name Of The Current Map In Python?
« on: September 24, 2016, 05:26:11 pm »

So I've gone through the game modes and integrated all the stat collection I want except for the current map. There's no intuitive way to obtain it. No variables, functions, event hooks, CVARs, nothing I can find anywhere in the code. Am I missing something? Is it not passed to Python?
« Last Edit: September 24, 2016, 08:18:53 pm by Phivex »
Logged

Phivex

  • Agent
  • *
  • Posts: 21
  • Reputation Power: 3
  • Phivex has no influence.
  • Offline Offline
Re: How Do I Get The Name Of The Current Map In Python?
« Reply #1 on: September 28, 2016, 12:21:31 am »

So I found out about the console commands "maps *" and "changelevel". When you use the "changelevel" command, text pops up saying the cvar "nextlevel" is being set to a new map name and the match restarts accordingly. I tried doing a GEUtil.GetCVarValue("nextlevel") to see if it'll show what the next map would be, but it's blank. Anyone have anything?
Logged

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: How Do I Get The Name Of The Current Map In Python?
« Reply #2 on: October 12, 2016, 08:16:04 pm »

You can get the maximum and minimum player count for the map. I don't recall a way to get the map name itself.
Pages: [1]   Go Up