GoldenEye: Source Forums
November 25, 2024, 04:09:44 am
Welcome,
Guest
News:
Home
Help
Wiki
Search
Staff List
Login
Register
GoldenEye: Source Forums
»
Debriefing
»
Questions, Help, & How To's
»
Question:About characters
Add to Reputation:
What do you think of this post?
I agree
I disagree
Comment:
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: Question:About characters (Read 5235 times)
0 Members and 1 Guest are viewing this topic.
WilliamSlapner
Agent
Posts: 7
Reputation Power: 0
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
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
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
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
Offline
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
Check us out on Github!
https://github.com/goldeneye-source
Print
Pages: [
1
]
Go Up
« previous
next »
GoldenEye: Source Forums
»
Debriefing
»
Questions, Help, & How To's
»
Question:About characters