Author Topic: Vote gamemode?  (Read 3112 times)

0 Members and 2 Guests are viewing this topic.

Offline FBIepidemic

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Vote gamemode?
« on: December 20, 2009, 12:26:26 AM »
I run a build server wil ULX and I was wondering if there was some way to have a vote gamemode option. So a user would type vote gamemode darkrp or vote gamemode melonracer. Thanks

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Vote gamemode?
« Reply #1 on: December 20, 2009, 11:34:31 AM »
ULX has no feature to do this by default.
A module could be written by someone else to do so though.

You may try tinkering with the per-map cfg files that ULX can use though.
See the example addons/ulx/cfg/maps folder.
Any <map_name>.txt file will get loaded after the <map_name> loads.
Problem is, I don't think you can change gamemode after a map has loaded.
Our ulx map command includes a second parameter <gamemode>, but again, I believe that changes/loads before the actual map does.

(Remember, don't actually edit your /addons/ folder... if you modify cfg/maps ... put it in gmod/cfg/maps)
I don't know if any of the features are working in SVN ULX currently.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming