aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
AgeCommit message (Collapse)Author
2021-04-20Add a key to toggle map block bounds (#11172)Seth Traverse
It's often useful to know where the map block boundaries are for doing server admin work and the like. Adds three modes: single mapblock, range of 5, and disabled.
2021-04-05Don't apply connection timeout limit to locally hosted serverssfan5
fixes #11085
2021-04-05Game: Scale damage flash to max HPSmallJoker
The flash intensity is calculated proportionally to the maximal HP.
2021-03-31Irrlicht support code maintenancesfan5
2021-03-30Consistent title bar + render information in mainmenu (#10764)SmallJoker
2021-03-21Restore minimal normal texture support (for minimap shading)Vitaliy
2021-03-19Scale mouse/joystick sensitivity depending on FOV (#11007)Elias Åström
2021-03-09Use place_param2 client-side for item appearance & prediction (#11024)sfan5
2021-03-06Clean up ClientEvent hudadd/hudchange internalssfan5
2021-03-05Pause animations while game is paused (#10658)Vitaliy
Pauses all mesh animations while game is paused.
2021-02-26Fix hud_change and hud_remove after hud_add (#10997)savilli
2021-02-24Use "Aux1" key name consistently everywhereWuzzy
2021-02-08Pause menu: Fix segfault on u/down key inputJean-Patrick Guerrero
2020-12-24Fix some minor code issues all over the placesfan5
2020-12-19Fix some more joystick issues (#10624)Markus
2020-12-19Cleanup shader generation code (#10663)Vitaliy
Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
2020-11-29Input: Fix on_rightclick called when placing into airSmallJoker
2020-11-26Sky: support GLES2numzero
IrrLicht built-in shader is broken, have to write my own
2020-11-23Add sound to press event of some formspecs elements (#10402)Pierre-Yves Rollo
2020-11-09Joystick: Remap joystick-specific KeyTypes to generic onesMarkus Koch
According to the following table: * MOUSE_L -> DIG * MOUSE_R -> PLACE * SCROLL_UP -> HOTBAR_NEXT * SCROLL_DOWN -> HOTBAR_PREV This commit entirely removes the special KeyTypes used for joysticks. Support for the MOUSE KeyTypes had already been removed in the main game code without adapting the joystick code, breaking joystick input. This commit restores joystick functionality.
2020-10-21Fix Media... 0% on loading screen (#9478)Maksim
2020-10-17Periodically release all mesh HW buffers to avoid an Irrlicht bottleneck.Lars
2020-10-17Remove all bump mapping and parallax occlusion related code.Lars
2020-10-04Minimap as HUD element with API controlPierre-Yves Rollo
Features: * Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes() * New HUD elements for displaying minimap with custom size and placing * New minimap mode for displaying a texture instead of the map
2020-10-04Add First Person Attachments (#10360)Jordan Snelling
Fixes some other third person camera specific attachments. Implements a single new flag for entities to be forced visible in first person mode. Old mods do not need to be updated to use the new flag and are fully backwards compatible.
2020-10-03Reduce the FPS when the window is unfocused (#8837)HybridDog
2020-08-24Properly handle mod-errors in on_shutdownDesour
2020-08-15Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2020-07-27Play place_failed sound if occupied or cannot attach (#9486)Wuzzy
2020-07-14Add object crosshair, disable entity selectionboxes by default (#9523)LoneWolfHT
Adds new object crosshair base pack texture
2020-07-14Cleanup ClientLauncher structure (#10160)SmallJoker
Remove duplicated variables and unify the startup data into a new (inherited) struct.
2020-06-13Exposing the zoom key to Lua API (#9903)Lars Müller
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
2020-06-09TouchScreenGUI: fix some bugs, cleanupMoNTE48
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
2020-05-14Add chat_log_level setting (#9223)SmallJoker
Log all higher levels in LogOutputBuffer Move StreamLogOutput::logRaw to source file like LogOutputBuffer::logRaw for compiling speed
2020-05-11Add support for statbar “off state” icons (#9462)Wuzzy
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles. Add "off state" textures to the builtin statbars. Co-authored-by: SmallJoker <mk939@ymail.com>
2020-05-07Server class code cleanups (#9769)Loïc Blot
* Server::overrideDayNightRatio doesn't require to return bool There is no sense to sending null player, the caller should send a valid object * Server::init: make private & cleanup This function is always called before start() and loads some variables which can be loaded in constructor directly. Make it private and call it directly in start * Split Server inventory responsibility to a dedicated object This splits permit to found various historical issues: * duplicate lookups on player connection * sending inventory to non related player when a player connects * non friendly lookups on detached inventories ownership This reduce the detached inventory complexity and also increased the lookup performance in a quite interesting way for servers with thousands of inventories.
2020-05-05Fix broken client if openal cannot be opened (#9804)Loïc Blot
2020-05-05Sky API: Rename *_tint to fog_*_tint for consistencySmallJoker
2020-04-25Ensure game is shutdown if server throws exception (#9742)Paul Ouellette
2020-04-25Add server side translations capability (#9733)EvidenceB Kidscode
* Add server side translations capability
2020-04-23Camera: Fix shootline line offsets II (#9730)SmallJoker
2020-04-16Camera: Fix shooting line offsets (#9681)SmallJoker
Removes duplicated offset calculations from Game and use whatever the Camera class returns. This keeps the eye position nicely in sync, and gets rid of duplicated code.
2020-04-13Remove sound menu and show proper msgs if sound is off (#9069)Wuzzy
2020-04-12Play 'player_jump' when player jumps (#9373)Wuzzy
2020-04-11Formspecs: Add state-selection to style elements (#9378)Hugues Ross
2020-04-11A few initialization cleanupssfan5
2020-04-08Overall improvements to log messages (#9598)sfan5
Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
2020-03-20Add comments for translators (#9510)Wuzzy
* Add translator comments for "special" strings * Add translator comments for some "tricky" strings
2020-03-05set_sky improvements, set_sun, set_moon and set_starsJordach