Commit Graph
7137 Commits
Author SHA1 Message Date
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
ac-stef 4b75405829 remove some dead code
and some braind* concepts
2015-02-12 12:54:03 +01:00
ac-stef d4110288da undo TAB-completion with LSHIFT+ESC
New commandline key-combination LSHIFT-ESC.
Resets the commandline to the state before using TAB-completion.
Useful, if TAB-completion wasn't helpful.
2015-02-12 12:19:38 +01:00
ac-stef 3b9075049c omit commands with leading blanks from history
like "HISTCONTROL = ignorespace" in bash
2015-02-12 12:17:04 +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
ac-stef 78f2bac38d enable keyrepeat in menus
* also fix a memory leak
* fix mitem type TYPE_TEXTINPUT
* the name change from type to mitemtype is of cosmetic nature
2015-02-09 11:56:50 +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
ac-stef d7c2c8333a add mrproper target to fix enet build
Sometimes the enet build seems to get messed up and "make" won't work
anymore in ../enet. The mrproper target tries to clean up ../enet, but
if it doesn't work, it deletes ../enet/Makefile manually. This triggers
a configure run in ../enet with the next make invocation - which should
fix everything.
2015-02-08 17:46:11 +01:00
ac-stef 64f378154d add incremental crc calculation
re-using the enet code
2015-02-08 17:39:15 +01:00
ac-stef 84ae6f152e whitespace cleanup in enet sources
The codeblocks editor cleans up surplus whitespace with every save by
default. That's nice, as long as everyone uses it. Otherwise, changes in
whitespace will creep into most commits and make the diffs hard to read.
Therefore: one commit with _only_ whitespace changed.
2015-02-08 17:39:15 +01:00
ac-stef e369f3e415 move backup() 2015-02-08 17:39:15 +01:00
ac-stef 348f640507 new tool functions 2015-02-08 17:39:15 +01:00
ac-stef af70d5c069 add locking to addsleep() to support multithreading
Now other threads can also add commands to the queue without messing up
the vector.
2015-02-08 17:39:15 +01:00
ac-stef b76413ddc2 clean up stopwatch code
* SDL_GetTicks() returns uint
* there's no need to make a fuss about "starting" and "stopping" the clock
* instead of stopping the clock, we can now just get the elapsed time
2015-02-08 17:39:15 +01:00
ac-stef 685dbb8326 store old state of random generator to restore after a seed()
The light calculation requires the random generator to be seeded with a
constant - otherwise repeated light recalculations would make the lights
change.

This patch allows the random generator to go back to the state before the
static seed().
2015-02-08 17:39:14 +01:00
ac-stef 05a41b1c0a add endian swap routines for 64-bit integer values 2015-02-08 17:39:14 +01:00
ac-stef 44c15dcd13 remove unnecessarily stupid comment 2015-02-08 17:39:14 +01:00
ac-stef 7e7834af2c wrapper functions for threading and semaphores
allow the standalone linux server to use posix libraries instead of SDL
(using SDL can be forced by defining AC_FORCE_SDL_THREADS)
2015-02-08 17:39:14 +01:00
ac-stef 007632ed77 clean up logging
especially restrict the constant flushing to debug mode
2015-02-08 17:39:14 +01:00
ac-stef 71dc155d45 fix loopvjrev
apparently, no one used this macro since 2007
2015-02-08 17:39:14 +01:00
ac-stef 5d7017e6b6 removed huge unnecessary file
The file packages/models/playermodels/RVSF/07_Blue-Red.psd had a filesize
of over nine megabyte - and was of no use to the game. It made all recent
game packages 9MB bigger than they had to be. That's about the size of
all game textures combined...
If someone still needs the file, check it out from an older commit.
2015-02-08 17:39:14 +01:00
ac-stef 39cbee947d Merge branch 'master' into next 2015-02-08 16:17:04 +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
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 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
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
ac-stef fdb7dbd243 new script to check all parts of an installation
also stripped assaultcube.sh, server.sh and install_or_remove_menuitem.sh
of unnecessary or just wrong stuff

added script to generate checksum file packages/misc/checksums_md5.txt,
which is used by check_install.sh to look for missing and modified files
2015-01-18 14:48:47 +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 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
ac-stef a957ae497e add entry for autodownload in misc settings menu 2014-11-26 21:50:29 +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