vasyahuyasa / remod-sauerbraten

Lightweight mod of sauerbraten server
27 stars 15 forks source link

accept server commands as N_SERVCMD #80

Open sauerbraten opened 2 years ago

sauerbraten commented 2 years ago

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 https://github.com/vasyahuyasa/remod-sauerbraten/blob/bede1888501cef0d3a34f1d73ac2343263512cae/src/fpsgame/server.cpp#L3170 after https://github.com/vasyahuyasa/remod-sauerbraten/blob/bede1888501cef0d3a34f1d73ac2343263512cae/src/fpsgame/server.cpp#L3744 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 commented 2 years ago

OK, i make pull request soon