Commit Graph
100 Commits
Author SHA1 Message Date
aurhat 730b0ed7ee Fix state of player1 during watching a demo with arena mode
That fixes switching to edit mode during demo watching.
Also some minor fix added.
2016-01-17 22:18:59 +01:00
aurhat e4d5c2d361 Improve accuracy info and some elements of the HUD
Accuracy will be displayed only then, if scoreboard will be enabled, and
only for current weapon - in order to focus attention of players more on
gameplay/work for team than personal stats.
Added "accuracyinfo" command to see accuracy of all used weapons in
output console.
Added some cleanups and fixed memory leak.
2015-12-31 22:57:16 +01:00
aurhat cc2ac85dd5 Improve order of displaying on HUD
Now command console over hudmessages, hudmessages over flag icons/scores
and player's stats.
Also fixed length of the line in command console.
2015-12-13 22:10:30 +01:00
aurhat 957f1e49ca Cleanup
Note: abbreviation of minutes and seconds in HUD messages in ktf is
needed, because for 5:4 aspect ratio messages could not fit in display.
2015-12-13 22:08:16 +01:00
aurhat 99ee7d10ef Change user data path for the dev version on Mac
Also one more directory level.
2015-11-16 21:03:48 +01:00
aurhat 4607af6438 Change IRC server in Travis settings 2015-10-20 22:30:34 +02:00
aurhat 747763fdf7 Show flag scores in "death camera" state 2015-10-20 21:57:16 +02:00
aurhat cf554261b9 Update licensing informations 2015-10-13 20:24:23 +02:00
aurhat b06a5209e3 Add background to description of active menu items
DOCREF menuselectiondescbgcolor
2015-09-21 20:36:12 +02:00
aurhat fa047595b6 Add header to alternate views in serverbrowser
Also clean up SEARCH category.
2015-09-21 20:33:50 +02:00
aurhat cbddcf05cf Add searching for map and demo in menu
Searching is by map/demo names and descriptions (also custom descriptions,
in case of demo).

DOCREF menudirlist
2015-09-21 20:29:15 +02:00
aurhat 6268f5c118 Remove/adjust dependencies on Windows 2015-09-20 13:13:01 +02:00
aurhat 07ad1cedda Update xcode project - replace libcurl 2015-09-20 01:28:19 +02:00
aurhat 6c99a9d2a3 Show "whois" info in one line 2015-09-18 21:27:16 +02:00
aurhat 7bba47a0dd Show on minimap indicative arrow at editing local player 2015-09-12 12:52:27 +02:00
aurhat 03a39feab8 Don't show players outside of map on minimap
When client connected to server (or started to play demo), where there was
a player dead since this client connecting, then position of the player
on minimap (and radar) was displayed wrongly outside of the map, sometimes
for the whole match. Now such positions will be hidden.
2015-09-08 15:09:24 +02:00
aurhat 2fb111adf4 Fix wall clock with 12h format
Stock strftime doesn't use capitalized "P", so for example on Windows
the wall clock didn't appear for 12h format. PM and AM are converted
to lowercase.
2015-09-08 01:05:54 +02:00
aurhat b7643a5200 Remove obsolete dependency on wldap32
wldap32 was linked to removed libcurl, so it's unnecessary now.
2015-09-08 01:05:54 +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
aurhat 3456304702 Fix formatting of menu footer in second and next lines
In second and next lines server description lost formatting, so also
colors, and it could be cut.
Now text in footer will be also divided by spaces, and not characters
(not applicable in case of long continuous strings).
2015-08-22 13:54:56 +02:00
aurhat c27e5e05d2 Fix displaying LAN servers
LAN servers should be always visible, when user opens serverbrowser with
LAN servers only. And don't allow to switch from there to alternate views,
because for searchlan = 2 it doesn't make sense.
2015-08-22 13:50:20 +02:00
aurhat cf2a8018ff Fix colour of team messages in non-team mode
When spectator will send in non-team mode a message in team chat, then
other spectators will see it in blue colour - earlier was wrongly green,
like for normal chat.
2015-08-17 22:07:06 +02:00
aurhat 3a4edff826 Cleanup
Among other things it fixes masterserver compiling.
2015-08-16 16:44:18 +02:00
aurhat 673286d25b Fix custom packages downloading on Windows 2015-08-16 16:44:04 +02:00
aurhat 24043589fc Improve setadmin
Don't kick, when player typed "setadmin 1" without any password.
2015-08-16 16:43:46 +02:00
aurhat 62072d9887 Update Code::Blocks project for Windows 2015-08-16 15:27:23 +02:00
aurhat 798b0a6582 Fix camera1 after player disconnection
When player1 spectated alive player and this watched player disconnected,
then camera1 pointed out still this non-existing player, for one main loop.
It had such negative effects, that hudgun could disappear to AC restart,
also AC crashed sometimes.
Tested mainly in tosok, on last alive player in a team.
2015-08-16 14:18:21 +02:00
aurhat 6605a20e00 Add a wall clock with local time
It uses strftime formatting from "wallclockformat" alias.

DOCREF wallclockformat
2015-08-06 21:08:46 +02:00
aurhatandac-stef ac32f7e2f7 Remove outdated gettext dependencies 2015-08-03 20:58:00 +02:00
aurhat b2845b7c15 Improve "clean" screenshot
The parameter of blankouthud is "frames", so for example 1000 will take
20 seconds at 50 fps or 1 second at 1000 fps.

DOCREF blankouthud
2015-08-01 22:17:40 +02:00
aurhat 47485bea24 Add rewind menu 2015-07-28 22:17:32 +02:00
aurhat 577d6a00d2 Fix arenaintermission reset
Arenaintermission was reset only after own spawn, now it will be reset
also during being in team spectator (in multiplayer or demo mode).
2015-07-16 23:13:05 +02:00
aurhat 54c09b8c48 Remove/adjust gibnum in preset gfx settings 2015-07-15 21:58:36 +02:00
aurhat 5df5fec352 Reorder and cleanup gamma settings
Remark: "gamma" command changes gamma only temporary, to next map start.
2015-07-15 21:57:44 +02:00
aurhat 048e951a38 Update .gitignore's 2015-07-15 21:57:05 +02:00
aurhat 297b5c69f8 Improve audibility of sounds
It's solution for missing hit/shot/etc. sounds:
1. decrease priority of ambient sounds to low, in order to hear more
non-ambient sounds with priority greater than low;
2. increase amount of sound channels to hear more sounds. Newer sound
cards on PC should be able to use more channels than only 32;
3. improve preset sound settings.

Remark: after these changes for default value of mapsoundrefresh (10)
break in playing ambient sounds, caused by playing sounds with greater
priority, isn't practically audible. The break is audible for greater
value, for example for mapsoundrefresh=1000.
2015-07-15 21:56:15 +02:00
aurhat f8d4e1b769 Show flag icon in scoreboard at flag carrier 2015-07-04 22:19:39 +02:00
aurhat ea067d54cb Add radaricons font 2015-07-04 22:17:47 +02:00
aurhat ea5e947052 Allow to switch in intermission from DEATHCAM to other SPECT modes 2015-07-04 11:31:49 +02:00
aurhat 9c0f99f2a1 Cleanup
Remarks:
1. Changed order in keycmds lets to keep alphabetical order in saved.cfg .
2. Earlier long information in docs about arguments of command could be
invisible for low aspect ratio (example: "weapon" command), now it's fixed.
2015-07-04 11:30:58 +02:00
aurhat d82b54de7e Show CN on HUD, if name of spectated player is a duplicate 2015-06-23 20:03:00 +02:00
aurhat 0197cea1ea Fix initial values of botsshoot and idlebots
Before values of botsshoot and idlebots were showed wrong, when bot mode
wasn't earlier triggered, and later these values were overwrote after
start of bot mode (thx harps).
2015-06-21 10:36:36 +02:00
aurhat c1b10536c6 Don't duplicate bot names (almost) 2015-06-21 10:36:19 +02:00
aurhat dc1b920820 Cleanup bot code (server related) 2015-06-21 10:36:08 +02:00
aurhat 9613098697 Cleanup bot code 2015-06-21 10:34:07 +02:00
aurhat bfc273ee52 Select automatically menu item with chosen weapon 2015-06-13 23:40:05 +02:00
aurhat 842f120915 Fix and improve showing minimap and radar icons
Added features on minimap/radar:
1. local player is visible only when he doesn't follow;
2. player followed (watched) in third person point of view is visible
and his team too;
3. fix issue #99 ;
4. fix map position on radar, when player is followed in 3rd person pov -
before map didn't move with the followed player.
2015-06-07 14:24:14 +02:00
aurhat 0dc1340eef Add/change binds for demo mode and console 2015-06-07 13:57:14 +02:00
aurhat e64c2350d0 Increase speed of rewind
The commit increases very much speed of demo rewind and also prevents
AC freeze for gamespeed = 1000.
It may degrade physics for gamespeed = 1000 on very low end machines.
2015-06-05 13:37:25 +02:00
aurhat 65c2e0f83a Update locally position of dropped flag
After dropping the flag player1 will see for a very short moment,
before flag position will be updated by server, flag dropped at player1
position. Earlier he could see for this moment flag dropped in a place,
when it was picked up.
2015-05-13 20:43:56 +02:00
aurhat a9bf87b1e7 Indexing fix 2015-05-07 21:27:53 +02:00
aurhat b2da592d6e Save skin choice on quit 2015-05-07 18:58:34 +02:00
aurhat a1107a4318 Fix sound bug and remove wrong asserts for sound
The bug caused SIGTRAP during fastforwading demo in debug mode, when other
players disconnected.
These asserts were removed, because they can be triggered because of a bug.
2015-05-05 21:55:13 +02:00
aurhatandac-stef 8b2b7e0ac7 Change switching between spectate and edit mode
1. In multiplayer this switching isn't allowed, because it was broken
   and messed up, for example other players didn't see concurrently
   spectating and editing player.
2. In demo mode switching from spectate to edit mode is improved.
3. Several years broken code for edit mode is reverted.
2015-05-03 22:42:06 +02:00
aurhat 419c8717ba Hide team icon when player is in TEAM_SPECT and doesn't follow
Till now when player was in TEAM_SPECT and didn't follow (SM_FLY),
then wrongly CLA icon was displayed near the radar.
2015-05-03 22:12:02 +02:00
aurhat 1d497ac4d8 Add dedicated crosshair in edit mode
DOCREF loadcrosshair
2015-04-28 20:47:54 +02:00
aurhat b96066031b Remove items-tmp.png - obsolete temporary file 2015-04-28 20:46:14 +02:00
aurhat 8916ad4fa4 Fix playing weapon sounds
No more sounds audible on the whole map in bot modes, when bots change
weapon or have no ammo.
Gun change sound in bot code was a duplicate, so removed.
2015-04-25 20:11:26 +02:00
aurhat 0969310be2 Fix local akimbo expiration 2015-04-25 19:12:40 +02:00
aurhat 6e7246d6cd Disable debug messages in bot modes
Uncomment added line to enable these messages.
2015-04-17 21:08:25 +02:00
aurhat 4e0e128b16 Fix and improve displaying map message in menu 2015-04-17 17:11:34 +02:00
aurhat beeba9ad76 Add Code::Blocks project for Linux 2015-04-06 12:24:50 +02:00
aurhat c3ae2066d0 Don't check a duplicate of player1 name in demo mode 2015-04-05 21:58:29 +02:00
aurhat 1d1c9e6f96 Improve key binds
Changes:
1. added single aliases bounded to the keys, in order to maintain easier
the binds;
2. cleaned up binds;
3. updated Keyboard menu and fixed searching binds.
Remark: aliases bounded to the keys shouldn't have leading and trailing
white spaces, if they are present in Keyboard menu, otherwise they won't
be found. So construction like, for example: bind SLASH [ key_commandline ]
is inadmissible.
4. Alternate edit binds (default disabled) moved to
config/opt/alternateeditbinds.cfg and removed old_editbinds variable.

DOCREF old_editbinds
2015-04-03 23:44:22 +02:00
aurhat 5de86f9838 Cleanup
Fixed nested list in Cubescript, fixed conopen (now read-only), removed changeteam(),
fixed name of shortcuts for team survivor modes (so it fixes
https://github.com/assaultcube/AC/issues/73 ).

DOCREF ts tsurv btsurv
2015-03-29 14:57:29 +02:00
aurhat 82f0f4e128 Remove leftover blend parameter from drawequipicons function 2015-03-22 21:55:05 +01:00
aurhat 13ed2bd977 Fix akimbo expiring
Before, if player switched to akimbo just as it expired, he ended up with
akimbo and 0 ammo. Now his weapon will change to default weapon (the most
often primary), as if he would take akimbo in the hands.
2015-03-16 21:16:42 +01:00
aurhat d05ea601bd Rename fullscreenscript to fullscreentoggle
Commit adds also fullscreen setting to QUICK setup menu.

DOCREF fullscreentoggle
2015-03-08 21:22:39 +01:00
aurhat 63bbd353fc Align equipment icons and stats on HUD
Among other things it fixes https://github.com/assaultcube/AC/issues/65 .
It betters also display for oldfashionedgunstats=1.
2015-03-07 12:17:44 +01:00
aurhat 6b27825a52 Revert "sdl_ttf, utf8"
This reverts commit 33683a9471.
2015-02-14 16:12:45 +01:00
aurhat f640b23a95 Revert "test font"
This reverts commit f65b11525b.
2015-02-14 16:12:44 +01:00
aurhat 1b70e0b94d Remove obsolete utf8 code/dependencies
It reverts part of e232a3f3ac ,
also removes dependencies from all IDE.
2015-02-14 16:12:43 +01:00
aurhatandac-stef a284064e9f Complete backwards
Use LSHIFT to direct TAB-completion to browse backwards through the
available alternatives.

also: full cleanup of the commandcomplete()-code [by stef]

* fix crashing buffer overflow
* remove some ancient ludicrous code
* ignore more spaces
* browse command- and filename-alternatives in alphabetical order
* clean up nickcomplete
* more comments (sry)
2015-02-12 12:10:22 +01:00
aurhat befd22d2e8 Don't hide the sniper rifle scope if scoreboard is enabled
The fix also allows to turn on/off the scope during intermission (since
a few years the scope was blocked in intermission, because it was
immediately turned off by scoreboard).
2015-02-08 23:05:37 +01:00
aurhat 87bb20e799 Fix sound bug on shallow water 2015-02-07 15:01:57 +01:00
aurhat 67049f5e73 In demo mode show info about different map rev only if map is loaded 2015-02-07 14:26:12 +01:00
aurhat d5763d9f5b More accurate info, when player joins match with less than 60s to end 2015-01-24 22:41:37 +01:00
aurhat c31399a36a Add additional options to crosshairfx
0 - turn off all effects; 1 - turn on all effects;
2 - turn on color change/off size change for AR and > 3 shots in a row;
3 - turn off color change/on size change for AR and > 3 shots in a row.
It fixes https://github.com/assaultcube/AC/issues/72 .

DOCREF crosshairfx
2015-01-24 12:44:45 +01:00
aurhat 3470b49963 Fix spawn issues in bot modes
It fixes https://github.com/assaultcube/AC/issues/62 : "Respawning in bot
modes doesn't reset camera".
Also only 1 click will be needed to spawn, because it looks, that note in:
https://github.com/assaultcube/AC/commit/f9ec71cbab638189ea4fa3f664e2584605e2ba0e
isn't true now.
2015-01-24 12:21:51 +01:00
aurhat d86e1a9581 Allow only flying spectating in bot modes 2015-01-24 12:18:48 +01:00
aurhat f1d00c27c8 Update SDL and SDL_image
SDL libraries are updated to v. 1.2.15, SDL_image libraries and headers
to v. 1.2.12. SDL headers were updated to v.1.2.15 earlier, in commit
78e1621e52 .
2015-01-18 22:18:48 +01:00
aurhat 3d143a07bc Fix "alive" state for sounds
Earlier player in spectator mode heard still tinnitus and heartbeat sounds.
2015-01-06 13:00:42 +01:00
aurhat cac9e4b471 Reset shots in a row after death
Earlier was, for example, such negative effect, that when player had AR
and more than 3 shots in a row and died, then after spawn he saw
for a moment bigger crosshair (if he didn't turn off this default effect).
2015-01-06 13:00:19 +01:00
aurhat 779627cb94 Remove obsolete recorddemo/stopdemo from menu 2014-12-31 16:58:33 +01:00
aurhat a78eb73ffe Clear mapstartonce alias on quit 2014-12-31 16:43:30 +01:00
aurhat 8205f24f68 Revert "Turn off sniper rifle's scope during intermission"
This reverts commit 60eb0ac393.
There is possible to turn off a scope by weapon changing (however
behaviour of scope during intermission can be changed in "next" branch).
2014-12-26 23:30:26 +01:00
aurhat f6cd6ffb7e Revert "inWater" command
This reverts commit 1e20bace2e ,
because inWater command doesn't work and it looks, that it's useless.

DOCREF inWater
2014-12-25 22:56:09 +01:00
aurhat aa127afbdd Cleanup maprot 2014-12-13 22:35:55 +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
aurhat 990f6e9c8b Fix output messages in console
Fixes:
1. show time remaining in system console after each minute;
2. correct form of minute(s);
3. show info "everyone died!" instead of "team SPECTATOR has won
the round!" in demo mode;
4. show correct info to which team (name) was player forced, when player1
is spectator.
2014-12-06 17:17:19 +01:00
aurhat bd50e67f65 Allow persistent spectating concrete player in multiplayer
For spectatepersistent = 1 that is always enabled (that means, that
spectated player isn't changed after his death), for 0  - only in
non-arena modes, except of demos.
"if(!available.length()) return f;" is introduced, in order to, in arena
modes, doesn't happen switching to SM_FLY, when last alive players dies
in the same moment and there is no winner of the round.
2014-12-02 21:05:47 +01:00
aurhat 795fad52b6 Fix spectating after disconnection of spectated player
Before if you watched player from the first spectating position
(SM_FOLLOW1ST), and that player disconnected, then you switched
automatically to another player, but also to second spectating position
(SM_FOLLOW3RD), instead of stay in SM_FOLLOW1ST - this commit fixes that.
2014-12-02 21:01:16 +01:00
aurhat fa483e1fcd Add custom description of demos
Custom description is displayed in "Watching demo" and "Play demo" menu.
2014-11-29 16:06:50 +01:00
aurhat 6e0e7bb333 Optimize and fix autodownload feature
The commit:
1. fixes value of download speed in KB;
2. introduces unique names of progress_callback() functions;
3. removes one unnecessary write_callback() function;
4. removes duplicated code/info in loadmodel().
2014-11-26 21:05:07 +01:00
aurhat 2dc74797af Don't show HUD reflection on water surface
For reflectclip > 1 player's HUD reflects on water surface.
It fixes https://github.com/assaultcube/AC/issues/75
2014-11-26 20:58:37 +01:00
aurhatandac-stef c4ce44867f Fix reset of packages source servers list
Earlier "resetpckservers" command cleared this list, instead of reset
to the initial settings.
2014-11-15 17:37:30 +01:00
aurhat 87bf71c8f1 Change position of "SCROLL/SPACE..." HUD messages
Now "SCROLL/SPACE..." messages will be visible on the right side
of display, in every standard aspect ratio.
2014-11-15 15:12:06 +01:00
aurhat b6a5418c24 Add alternative views in serverbrowser and improve favourites
Alternative views in the serverbrowser are implemented with use favourites.
Categories (names) of favourite servers, which will be displayed on the
views, have to be included in "serverbrowseraltviews" alias (accessible
in menu).
Switching between views is possible with use Alt + Mouse wheel and
Alt + Up/Down (or eventually "[" and "]", if they are dedicated keys
on your keyboard).

The commit also:
1. adds MATCH category to favourites;
2. shows category name in settings of favourites;
3. shows weights in serverbrowser instead of favourites image,
when showweights = 1;
4. cleans up some tabs.
2014-11-11 21:07:19 +01:00
aurhat 170f377262 Fix gonext command and do it random
Commit fixes broken "gonext" command, among other things reading time
from maprot, and it does random result of this command.
It also removes get_next() function, because it messes up the maprot,
so shouldn't be used.
2014-11-05 19:19:33 +01:00
aurhat bc3be8136e Revert "unfiltered display of preview"
This reverts commit 5450296879.
I don't know, why the code was changed before, but that caused, that images
in menu weren't transparent, for example image of favourites in
the serverbrowser.
2014-11-02 14:33:47 +01:00