Commit Graph
3898 Commits
Author SHA1 Message Date
aurhat 67049f5e73 In demo mode show info about different map rev only if map is loaded 2015-02-07 14:26:12 +01:00
ac-stef 400e7eb9a6 fix glitch in map editor that allowed to violate map borders
Also, provide a more detailed error message in case of client fatal due
 to bad map (with non-solid borders).
2015-01-29 15:09:54 +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 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
lucasgautheronandac-stef 1f7494200e postlightarea crash fix
the crash could occur on specific maps such as ac_swamp

amend: fixed the fix (thx BrutalSystem)
2015-01-18 20:27:12 +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
lucas.gautheron 19e4aff2dc Force respawn automatically in DM/TDM, PF and HTF in mastermode MATCH 2015-01-05 14:49:37 +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 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
ac-stef 2a6b8fb234 track missing models without "nomodel"-crutch
* missing models now have their own list "mdlnotfound".
* also added a few comments (looks silly, though)
2014-11-26 21:23:59 +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
ac-stef d6f4e8a9a0 removed CUBE_TODO.txt
Has been outdated for nine years and is apparently a huge distraction for
wannabe new coders.
2014-11-23 19:46:52 +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
Ronald Reagan 1346b5ea0b Updating SDL_image for OS X 2014-11-13 18:05:29 -08:00
Ronald Reagan 78e1621e52 Updating SDL to 1.2.15
Updates header files in source/include
2014-11-13 18:00:35 -08:00
Ronald Reagan ab31e10ee3 Fixes OpenAl Error (A004) upon shutdown.
Basically removes the buffers _after_ stopping all sounds.
2014-11-13 01:32:52 -08:00
Ronald Reagan becabb4ed9 Fix OSX fullscreen issue.
Updates project (for OS X) to SDL v1.2.15.
Possible issues:
 - SDL_SetGamma seems to be bugged? If a user is having issues have them do /gamma 100 and restart AC
 - ???
2014-11-12 23:38:41 -08:00
ac-stef 4fdba4fa4a less ugly mapdims
replaced the mapdims array with a struct with properly identified members

also reduced the calclight postfilter to actually used map areas
2014-11-12 17:52:44 +01:00
ac-stef 9b22587e32 fix filtering of serverdescriptions for ascii scores 2014-11-12 17:28:53 +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
ac-stef 6ede08d011 keep the last five versions of saved.cfg and init.cfg
Renames the existing saved.cfg to saved-old-1.cfg (and an existing -1 to
-2, and so on) before the new saved.cfg is written.

This should help in cases where players mess up their config, because the
config is deleted with a five-game-starts delay.
2014-11-02 23:17:00 +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
ac-stef e2ac8efadd remove restrictions on mapmodel rotation
Until now, the angles of mapmodels (and ctf-flags) were rounded to the
nearest 15-degree-step during rendering. This patch moves the rounding
to the time of placement of the model. Now the angle can be changed freely
after the model has been placed.

This commit also changes the angle resolution to 0.25 degree.

When changing the angle (press "1" + scrollwheel), additionally pressing
editmeta (a.k.a. LCTRL) changes the increments of the wheel from 1 to 10.

During a savemap with format 9, the angle resolution is reduced again, to
keep compatibility. Therefore, this features is only for testing right now.
It won't be preserved during a save (at least, as long as format 9 is used)
2014-10-22 12:08:42 +02:00
ac-stef 3bbe1f9555 fix mandatory client logfile
The logfile can't be created before the commandline arguments are parsed,
because before that, the home directory is unknown. This patch logs
into a memory buffer which is then copied to the logfile as soon as
the logfile is created after processing the commandline arguments.

The memory buffer is created during the initialisation of global variables,
and destroyed after the logfile is created.
2014-10-06 12:43:32 +02:00
aurhat 8838972e83 Display HUD messages over some less important info 2014-10-04 20:27:44 +02:00
aurhat 7fae0d2a2f Fix warning messages to spammer changing name/skin
Warning message will be sent only to spammer changing name/skin,
and only in multiplayer, what fixes issue:
https://github.com/assaultcube/AC/issues/66
2014-10-04 20:25:44 +02:00
aurhat 931c442f67 Improve "favourite servers" feature
The commit:
1. does serverdescription keyword case insensitive for
showonlyfavourites > 0;
2. fixes typo in argument of alias in keyword;
3. fixes disabling background color for servers of the category, when
alpha is changed to 0;
4. shows 0 instead of 10 in info about digit, which toggles 10th category;
5. adds info about "image" attribute in favourites.cfg;
6. adds new feature: "Search for servers".
2014-10-04 20:25:44 +02:00
aurhat f9ec71cbab Fix switching from spectator to active team in bot modes
Before this fix player could switch from spectate to alive mode,
but he stayed in SPECTATOR team.
Note: 2 mouse clicks are necessary to player's spawn. Second respawnself()
is needed, because spawnplayer() is executed before server will switch
player1 to active team, so he would always spawn in CLA base (in bot
team modes).
2014-09-30 10:45:18 +02:00
ac-stef fabfb73c83 added mandatory client log file
- a client will now write all os console messages to "clientlog.txt"
- at every game start, the log file gets rotated (with five old logs kept)
- commandline parameter "-N" can be used to limit the number of lines
  (after the lines are logged, the file is closed)
2014-09-22 00:24:09 +02:00
ac-stef 128e615ccc fix directory search order
also clarify some log output
(thx grenadier)
2014-09-21 21:19:03 +02:00
aurhat 075c53a6b0 Better visibility for warning about outdated AC version
Commit changes also masterserver URL to AC homepage in info related
to this warning.
2014-09-20 16:45:22 +02:00
aurhat ca9305dd02 Fix - don't allow dead body of player to climb on the ladder
It was visible probably only locally.
2014-09-20 00:45:21 +02:00
aurhatandac-stef 414c69fef7 fix illegal typecast
fixes crash during intermission caused by activated and held grenade
2014-09-11 10:47:44 +02:00
ac-stef 16bf7c01cf fix string lengths for server kill messages
this fixes several problems with some global variables, since they no
longer get overwritten by null bytes from this oh so important function...
2014-08-29 19:12:04 +02:00
ac-stef 9fd7740855 remove non-thread-safe function call
conoutf can't be used from any thread other than the main one.
clientlogf may still mix up the output, but it won't crash.
2014-07-27 20:41:40 +02:00
ac-stef 3606a4200c print more version info during init
also fixed parsing the audio device string
2014-07-26 11:19:36 +02:00
aurhatandac-stef ced0baf67a Removed unnecessary restrictions of switching to SPECTATOR team
Note: spectate() function doesn't have such restrictions.
2014-07-19 14:38:33 +02:00
aurhatandac-stef 7c4a7e54f4 Disable listdemos and getdemo in singleplayer 2014-07-19 14:38:33 +02:00
aurhatandac-stef 60eb0ac393 Turn off sniper rifle's scope during intermission 2014-07-19 14:38:33 +02:00