Raptor007 / aq2-tng

Action Quake 2: The Next Generation. Raptor007's sandbox for testing changes. When verified stable, this code is pushed to the official aq2-tng repo:
https://github.com/aq2-tng/aq2-tng/tree/bots
4 stars 2 forks source link

idea: implement lrcon claim and lrcon release for matchmode #127

Open MVarland opened 2 years ago

MVarland commented 2 years ago

Implement lrcon claim and lrcon release feature. Sometimes Q2Admin breaks and the lua script stops working. Having it implemented in tng would be better :)

I think the latest lua lrcon script is at https://github.com/m4son/q2admin/blob/master/plugins/lrcon.lua

Raptor007 commented 1 year ago

Hmm, Q2Admin isn't really in my wheelhouse. I just use the regular rcon to administer my server.

Looking at the lrcon script, it seems claim and release use a local script variable to track the claimer. I don't think TNG could just replace those commands because the script isn't looking for claimer in a cvar, except sometimes "lua_q2a_lrcon_storage" but that only seems to be checked when loading, unloading, or a player joins.

It might be easier to just implement all of lrcon within TNG, if that's something people would like. It seems its purpose is to allow whoever claims first to run a limited set of admin commands without full rcon access. @m4son does that sound right?

Alternately, you could just configure lenient thresholds for votemap, voteconfig, and votekick.

darkshade9 commented 1 year ago

I think making it work within TNG makes sense, and we can define which cvars we want lrcon to apply to in the config?