Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to disable forcespecatator on modified map #38

Open
DjangoAsyl opened this issue Aug 13, 2017 · 0 comments
Open

unable to disable forcespecatator on modified map #38

DjangoAsyl opened this issue Aug 13, 2017 · 0 comments
Labels

Comments

@DjangoAsyl
Copy link

It seems there are two functions handling this event.

  1. in cubescript:
    https://github.com/vasyahuyasa/remod-sauerbraten/blob/master/scripts/modules/modmap.cfg
  2. in server.cpp
    https://github.com/vasyahuyasa/remod-sauerbraten/blob/master/src/fpsgame/server.cpp#L2290:L2346
    which is mainly controlled by:
    VAR(modifiedmapspectator, 0, 1, 2);

The latter variable isn't set in cubescript, so players are always spectated when they have a modded map.
Fix was to add the following line to the server-init.cfg:
modifiedmapspectator 1

I therefore recommend to remove either the variable from the checks here:

if(req < 0 && modifiedmapspectator && (mcrc || modifiedmapspectator > 1)) loopv(clients)

or the cubescript module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants