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

accept server commands as N_SERVCMD #80

Open
sauerbraten opened this issue Jan 21, 2022 · 1 comment
Open

accept server commands as N_SERVCMD #80

sauerbraten opened this issue Jan 21, 2022 · 1 comment

Comments

@sauerbraten
Copy link
Contributor

can you add support for server commands to be sent using the dedicated N_SERVCMD packet instead of N_TEXT? shouldn't be more work than adding a line like this

remod::onevent(ONCOMMAND, "is", sender, ftext);

after
getstring(text, p);

both spaghetti and zeromod support this already:
https://github.com/benzomatic/spaghettimod/blob/ce5d66a883d6334c687ee1aaa34bda9500156e89/fpsgame/server.cpp#L4005
https://github.com/andrius4669/zeromod-sauerbraten/blob/065b9fde684519f325d975d3108d06e4526923c4/src/fpsgame/server.cpp#L4208

@vasyahuyasa
Copy link
Owner

vasyahuyasa commented Jan 22, 2022

OK, i make pull request soon

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

No branches or pull requests

2 participants