Commit Graph
98 Commits
Author SHA1 Message Date
flowtron 0e9ed21fac shuffleteams vote allowed for players 2022-01-15 12:03:12 +01:00
drian c5af5ad283 improved error text regarding missing playerspawns 2021-11-12 07:25:13 +01:00
flowtron 54f7309423 COOP is considered wonderful (issues #297,#320,#341) 2021-06-01 17:46:58 +02:00
drian 45bd0e4241 #255 pause should be supported for private servers too 2021-04-17 21:09:25 +02:00
drian 550cff1c78 updated documentation in server commandline file 2021-04-14 13:58:19 +02:00
drian 4fd14cf6c2 #108 not only validate the PAUSE vote clientside but also server-side to reduce abuse 2021-04-14 09:47:48 +02:00
drian 7d0e84fe95 #108 merged 'Pause' PR - work in progress 2021-04-14 09:19:22 +02:00
ac-stef 035d7caf2f thread-safe and fully buffered logging
Uses own thread to actually write to logs, so the main thread can't be
blocked by a slow logfile. Log entries are buffered in two ringbuffers,
one for the main thread and one for all other threads. The main thread
will copy the second buffer to the main buffer periodically. The main
thread buffer is read from the log worker thread.

Since two buffers are kept, there are now several functions to add a log
entry:

  mlog()
    for main thread functions only: will never block

  tlog()
    other threads only: may block, until main thread copied some entries

  xlog()
    automatically determines, which thread it's been called from and
    then writes to the proper buffer (will block accordingly)

To avoid improper usage, mlog and tlog verify, if they are used correctly.
(Only for debug builds. An assert triggers, if necessary.)
2017-06-27 15:15:23 +02:00
ac-stef 5fee02c77b new maprot
Instead of a list of specific map+mode combinations the maprot now only
contains general rules for maps and game modes. The server then calculates
the list by itself when needed. The server accounts played maps and modes
(and map+mode combinations) and calculates the list specifically not to
overplay maps or modes.

May need further testing.
2017-06-27 15:15:22 +02:00
ac-stef 25deee5287 more versatile disconnect reasons 2017-06-27 15:15:21 +02:00
ac-stef 1ca4ce54eb some server changes
tbc
2017-06-27 15:15:20 +02:00
ac-stef 5058172a06 fix empty map name after /newmap and fix voting for nonexistent maps
now /savemap after /newmap saves to "newmap.cgz" instead of ".cgz"

also, voting for a nonexistent map in singleplayer leaves the client in
some sort of a broken state. this fix blocks the vote.

and: newmap is blocked in bot modes, since that isn't working stable.
2014-05-14 22:39:57 +02:00
Lucas GAUTHERON 71754e0cf1 allow maps with a sane name only
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7537 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-08-12 11:56:53 +00:00
Lucas GAUTHERON 2f55903ad0 messy patch tmp revert
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7491 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-05-27 17:25:21 +00:00
Lucas GAUTHERON 624dd348d7 make the server store more map data (more accurate pickup calculations)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7487 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-05-26 16:40:57 +00:00
Lucas GAUTHERON d6ab1c19cd BAN_VOTE
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7308 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-05 14:07:32 +00:00
Lucas GAUTHERON 43ab63a88a serverside shotgun checks, addban function
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7017 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-31 03:26:52 +00:00
sireus 907ecb044a can now explicitly specify target team on forceteam vote
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6897 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-30 20:07:22 +00:00
sireus 98d17a20eb votable time limit
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6881 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-17 22:41:38 +00:00
sireus 417850ca60 fixed particle type guesswork
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6878 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-14 22:57:42 +00:00
sireus 296dee3600 more stopdemo cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6852 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-06-29 15:38:02 +00:00
Lucas GAUTHERON 526e9e22e5 TMP revert
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6698 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-11-13 16:43:14 +00:00
Lucas GAUTHERON 70d8421100 testme : /lockteams, /forceteam [cn] [team], "matchteamsize" removed
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6696 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-11-12 13:22:59 +00:00
Lucas GAUTHERON 4044be99dc htf flag allocation fix + minor fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6638 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-04 09:53:43 +00:00
Lucas GAUTHERON c85be9cb54 server can restricts voting from a mode for any map
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6434 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-14 16:26:10 +00:00
RandumKiwi 7b6c09d63b This should be a LOWER CASE character b, shouldn't it? If not, please revert since I don't know what I'm doing, thanks.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6294 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-22 00:45:48 +00:00
sireus 7b06b9d7d1 fixed setnext bug (thanks to RR and Jack for filling me in)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6250 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-15 22:13:33 +00:00
Rafael Barreto 5fca5d032e fixing vote system, checking if cn2boot is valid
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5788 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-25 15:52:16 +00:00
Rafael Barreto 10d1cefd05 global ban time switch, and fix previous weapon in camera mode (related to nades).
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5773 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-19 18:50:44 +00:00
Rafael Barreto 29bea67da1 making the map quality requisites more transparent: 1) "MAP CHECK FAIL" messages in the server logs; 2) console messages to the client (WiP).
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5769 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-19 12:28:17 +00:00
Rafael Barreto 9325b67f1a clean up, some commands from kirin (thank you for the work), some anticheat compatibilities, balance teams saner check, check for map quality in the maprot, and more clean up
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5651 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-17 15:03:41 +00:00
Rafael Barreto 43ba8a128e server switch: demo available only at intermission (giving 20 seconds of intermission if someone is downloading a demo), and more lag tolerance...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5597 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-11 02:25:50 +00:00
Rafael Barreto 001baa1731 bug fix: disconnect when ignoring or mute, disrupt password connection force attempts; adds: whereami and go_to (useful for edit), logs about items (allowing the clips to be 3 cubes distant), and clean up
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5593 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-10 04:54:16 +00:00
Rafael Barreto 76f22e6b21 ban as default
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5583 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-08 22:15:40 +00:00
Rafael Barreto accc3e6b91 connectadmin pass, force control, ban time, weak bans, and so on
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5580 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-08 22:00:40 +00:00
Rafael Barreto b75856ceed clean up, and checking the distance of the items (all official maps pass in the check)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5531 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-03 01:08:42 +00:00
Rafael Barreto ae71b35a27 i do not believe i am committing this same fix again
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5506 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-31 02:20:57 +00:00
Rafael Barreto 8b988f622a map vote/check fix (again)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5502 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-31 01:50:18 +00:00
Rafael Barreto 3e4c92b493 fixing the coop vote/map check issues, adding some anticheat compatibility
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5500 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-31 00:16:58 +00:00
Rafael Barreto a0a744fb8c better explanation why some maps are blocked in 1.1
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5473 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-29 01:51:07 +00:00
Rafael Barreto 054594bec6 removing 3 ints from SV_SHOOT... and some other stuff
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5385 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-16 21:57:13 +00:00
flowtron 15a11c1126 minor changes & comments
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5243 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-27 17:18:20 +00:00
Rafael Barreto d04d036204 map/test layout fix, vote now will appear when the player connects, combo pistol/sniper now included
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5203 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-19 23:47:14 +00:00
Rafael Barreto d1f293c8b9 balance teams: noobs vs pros nevermore
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5162 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-09 20:08:19 +00:00
Rafael Barreto aacd6d38ea ms back to assault.cubers.net and abuse-autokick message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5155 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-07 18:16:26 +00:00
Rafael Barreto e6028ac7f0 reverting kick/ban vote permissions to 1.0.4, but letting the weak ones only for admin by default
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5153 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-06 20:49:42 +00:00
Rafael Barreto b5ea3fc741 more vote abuse control, and a new vote switch "W": allow or not "weak" kick/ban votes: when the player is not lagging, spamming, tking, or obviously cheating...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5152 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-06 20:41:07 +00:00
Rafael Barreto f66f445506 vote reason implemented for kick/ban
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5151 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-06 19:05:42 +00:00
Rafael Barreto 28cc7f6ac9 spam and bad language auto kicks
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5145 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-05 20:48:26 +00:00
Rafael Barreto 2157072cc7 forbidden speech dictionary, deny coop for read only maps, and some suggestions from sam about client/server crashes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5138 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-04 00:42:58 +00:00