Commit Graph
111 Commits
Author SHA1 Message Date
kai 705a6f1cff Add custom movement and gameplay features 2026-10-25 00:49:59 +01:00
flowtron da542df2cb avoid auth loop 2022-05-06 20:47:17 +02:00
aurhat fcd0fd8980 fix warnings for gcc 10 and clang 10 2021-10-05 22:12:49 +02:00
BrutalSystemandGitHub 5fa956c740 updating column priorities 2021-06-14 19:48:31 -03:00
flowtron 3ea5bbf550 removing points from clientstate (issued #355 and #269) 2021-05-25 11:53:26 +02:00
BrutalSystemandGitHub a65f16e963 Update scoreboard.cpp
fix
2021-04-30 17:03:59 -03:00
drian 05a83c8170 #269 score is not working 2021-04-30 06:14:29 +02:00
drian 1535f9e4f6 #215 improved naming 2021-04-15 13:31:06 +02:00
drian 963190b072 #215 FreeBSD build fix proposal 2021-04-15 11:34:59 +02:00
ac-stef db2607cabb fix embedded scores in screenshots
embed game description and player scores in png and jpg comments

update enet.lib
2017-07-20 16:07:42 +02:00
ac-stef 03e21b097d fix stuff found by cppcheck
almost 3000 lines of "errors" contained one actual memleak, one actually
unused variable and three actual ambiguous code parts

from cppcheck website: "The goal is to detect only real errors in the
 code (i.e. have zero false positives)." :)

thx for finding five problems in our code
2017-06-17 12:40:35 +02:00
ac-stef dbcb040eeb menu code cleanup
* fix some memory leaks
* rename stuff
* fix crash

Removed commands and variables:

  chmenumdl (replaced by menumdl)

  scorefont (replaced by "menufont score mono")

  menuitemvar (better handled with fully dynamic menus)

Changed commands:

  menufont menu font

    Sets the font for a specific menu. If menu is "", the currently
    initialised menu is used. Example: menufont score mono

  menumdl menu mdl anim rotspeed scale

    Assumes the function of the previous chmenumdl. If menu is "", the
    currently initialised menu is used. Specifies, which model to render
    and how. If only menu is specified, no model is rendered.

DOCREF chmenumdl scorefont menufont menumdl menuitemvar
2017-06-06 13:17:20 +02:00
ac-stef 67a6b78353 add team frag counters for non-flag modes
hideteamscorehud 0|1

  same as hidectfhud before, but also for non-flag team modes

DOCREF hideteamscorehud hidectfhud
2017-05-14 20:57:58 +02:00
ac-stef 397c441fed more verbose error messages for disabled commands 2016-09-16 17:35:47 +02:00
ac-stef 37ce06cd1c fix score calculation during spectating 2016-08-06 23:39:13 +02:00
aurhat f10342fa80 Improve game time and wall clock display
1. Counting backward for gametimedisplay = 1 and forward for 2. The setting
added to HUD menu.
2. Changed name from clockdisplay to gimetimedisplay, in order to
distinguish clocks with system time and game time.
3. Added to wall clock options with UTC/GMT time and 12h format.

DOCREF clockcount clockdisplay gametimedisplay
2015-09-06 22:09:00 +02:00
ac-stef 826499c12d enable gcc to check arguments of printf-like functions
Check printf-like functions like conoutf, if format strings and argument
lists match.

This commit also fixes a lot of code parts that actually had mismatching
argument lists - or did things, that this check does not like.

numtime() was rewritten in an ugly but very portable fashion (it's
recommended to stay away from "long long" format entries, because errors
usually only come up at runtime).

(some code was copied from sauer)
2015-08-02 19:40:41 +02:00
aurhat f8d4e1b769 Show flag icon in scoreboard at flag carrier 2015-07-04 22:19:39 +02:00
ac-stef 793aca3cf1 fix memory leak 2015-03-28 14:05:04 +01:00
aurhat 8e6fbd9d7b Add the clock to scoreboard and change clockdisplay
Commit shows time in format mm:ss in scoreboard, instead of
"X minutes remaining" info.
It also enables the clock default on the HUD and adds "clockcount"
variable which let to choose between counting forward or backward
in the clocks.

DOCREF clockdisplay clockcount
2014-12-06 17:53:29 +01:00
ac-stef 9b22587e32 fix filtering of serverdescriptions for ascii scores 2014-11-12 17:28:53 +01:00
ac-stef a0286d2b3f replace textfilter functions with one-fits-all version
* replaces filtertext() with a version with a dozen of single filters
  that can be used in any combination
* defines classes of allowed characters for strings for various uses
  (see protocol.h line 153ff)
* now the allowed charset of, for example, player names is defined
  in one location only
* fixes issue #58
2014-05-24 12:59:19 +02:00
ac-stef eb60302e67 cleanup
- fix possible crash in conc (but it's still an ugly hack)
- fix noob usage of strcmp
- flag some memory leaks (it would be nice, if the author(s) would clean
   up the mess himself)
- fix crash in substr
- whitespace cleanup

there are plenty more memory leaks in command.cpp - for example, every
goto in cubescript does not clean up anything
2014-05-14 22:54:37 +02:00
aurhat 5b94bab21f Fix of wrong "alive" status in scoreboard.
This commit fixes the issue: https://github.com/assaultcube/AC/issues/21
Player in spectate mode isn't dead, so when he switches from spectate to active mode, he is still non-dead.
Therefore d->state=="CS_DEAD" doesn't work in such cases.
This commit removes also some aimless line.
2014-04-05 13:52:41 +02:00
Lucas GAUTHERON fe10f86b21 hud flagscore fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7315 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-05 22:01:08 +00:00
Lucas GAUTHERON c591590e31 scoreboard fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7114 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-18 20:35:14 +00:00
aerkefiende 91583de3db Removed warning: suggest parantheses around && within ||
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7088 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-13 18:33:16 +00:00
Lucas GAUTHERON e89cb15f14 scoreboard little fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7065 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-11 20:49:45 +00:00
aerkefiende e43c5e00ea Minor fix of rev 7051 and 7052; needs still the scores of disconnected players
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7054 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-10 22:38:28 +00:00
Ronald Reagan d6aca6fcc0 FFA winner message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7050 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-10 09:10:41 +00:00
Ronald Reagan 30663fe854 Adding in winners to the scoreboard
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7049 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-10 03:34:54 +00:00
Lucas GAUTHERON 34e688e5aa scoreboard bug fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7037 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-06 15:32:39 +00:00
Lucas GAUTHERON 294ea128a3 more customizable scoreboard, allow ratio to be displayed (again)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7032 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-05 22:47:31 +00:00
Lucas GAUTHERON 8af34e8b64 scoreboard fixes (status color bug and DISC scores issue)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6977 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-16 13:13:35 +00:00
sireus b33116712c sane(r) command signatures (warning: huge commit)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6908 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-06 22:49:49 +00:00
sireus 3f7663457f lagping fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6793 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-04-20 20:57:01 +00:00
sireus 4a6b67de1f show flag count on HUD (WIP)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6748 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-01-30 12:54:18 +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 878a0a3959 scoreboard fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6641 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-04 17:46:01 +00:00
Lucas GAUTHERON 297f679840 scoreboard fixes/improvements, kick/ban action fixes (wip. TODO: get tks client side)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6639 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-04 15:35:15 +00:00
Lucas GAUTHERON 4fcd1074ad new command "winners"
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6634 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-02 19:27:48 +00:00
Bukz 5cb2d3b424 allow showscores during intermissions
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6530 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-10 18:41:26 +00:00
Lucas GAUTHERON 3a9d59ceb3 colored ping in serverbrowser?
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6421 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-11 15:50:15 +00:00
Rafael Barreto 01c24f0228 checking if file system has space to write (linux only), reverting the protocol to make it compatible with 1.1.0.1, tagging AUTH as WiP, tunning the player/bot collision... preparing to release patch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5656 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-19 19:46:56 +00:00
Rafael Barreto d68c470434 bug fix: team icon when spectating, and weird scoreboard behavior when someone is lagging
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5610 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-12 08:15:28 +00:00
flowtron 1a1a9e3aa8 menu-dirlist fix (bug found by Gibstick) and menu-footer line-wrapping added
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5558 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-07 22:54:39 +00:00
flowtron 565e3d5d36 -8 chars in scoreboard for servertitle - TODO: get _real_ menuwidth as reference
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5537 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-03 18:34:38 +00:00
Rafael Barreto 72ae28dd12 fix wrong pointer, and adding "quicknade_hold" variable
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5448 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-22 21:35:16 +00:00
Rafael Barreto 9bc699c27a minimalist scoreboard, docs fix (missing diff line), less points to combo (to make it more reliable with the frag/death relationship in a dm)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5447 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-22 21:22:26 +00:00