GoldenEye: Source Forums

  • November 25, 2024, 04:09:44 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Question:About characters  (Read 5235 times)

0 Members and 1 Guest are viewing this topic.

WilliamSlapner

  • Agent
  • *
  • Posts: 7
  • Reputation Power: 0
  • WilliamSlapner has no influence.
  • Offline Offline
Question:About characters
« on: December 06, 2010, 08:48:20 am »

Is there a command to put in a server.cfg that limits what character model players can choose?
Logged

major

  • On Vacation
  • Retired Developer
  • 007
  • ****
  • Posts: 1,837
  • Reputation Power: 109
  • major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!
  • Offline Offline
Re: Question:About characters
« Reply #1 on: December 06, 2010, 09:10:42 am »

No, there is no current command that will. You might be able to work up a server plugin(like sourcemod) to do it, but that might take some work.

Might be able to mod around a TF2 character sourcemod plugin, but I've never seen, nor done it.
Logged
All view points are of my own and not associated with the team.

WilliamSlapner

  • Agent
  • *
  • Posts: 7
  • Reputation Power: 0
  • WilliamSlapner has no influence.
  • Offline Offline
Re: Question:About characters
« Reply #2 on: December 06, 2010, 09:24:09 am »

K thank you, my William Slapner Gamemode will not be happening soon.
Logged

major

  • On Vacation
  • Retired Developer
  • 007
  • ****
  • Posts: 1,837
  • Reputation Power: 109
  • major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!major is awe-inspiring!
  • Offline Offline
Re: Question:About characters
« Reply #3 on: December 06, 2010, 09:59:23 am »

Well you might be able to limit that via gamemode. If your making a custom one, I think it might be doable.

I think KM, or another proficient python coder might be able to shed some light. They should post back within 24hours.
Logged
All view points are of my own and not associated with the team.

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: Question:About characters
« Reply #4 on: December 06, 2010, 11:08:52 pm »

Look at scripts/python/GamePlay/liveandletdie.py .... specifically def CanPlayerChangeChar(self, player, ident):

Basically you can restrict character selections this way in Python. Return True to let them be that character, or False to deny it.

I wouldn't bother writing a python script right now. v4.1 introduced a slew of changes to Python that will break your gamemode. More information will be posted later but for now here is the Python changelog for v4.1: http://wiki.goldeneyesource.net/index.php/V4.1_Changelist#Python
Logged
Pages: [1]   Go Up