970 Commits

Author SHA1 Message Date
b88e96888d Looks a little better (maybe in future, make it say infinite amount?) 2024-07-05 18:09:37 -07:00
d31c8c4e04 Allow setting default powerup (instead of nothing) and set default powerup to zipper 2024-07-05 18:06:55 -07:00
Alayan
dca91a6ee8 Move the start benchmark function to the profiler
This simplifies its reuse for the recommend video settings function
2024-05-20 11:46:06 +02:00
Alayan
fb3596f699 Fix #3510
- Call autoComputeLevel to make the LoD distance for on-track items (bananas, nitro, gifts, etc.) depend on the user settings
- Ensure that the distance is reasonably high even on the lowest settings
2024-05-19 21:34:06 +02:00
Benau
1ba1e7e59f Use high precision for time2Ticks 2023-11-12 11:29:41 +08:00
Alayan
491c3dee34 Fix updateAndTestFinished to use time2ticks
Also remove the useless function parameter
2023-11-10 19:45:03 +01:00
Benau
1f8ffccd97 Allow disabling gift boxes and bananas indicators by removing their textures 2023-02-02 08:01:45 +08:00
Benau
ddc0b9d1ed Add setDirtyOffset for GEVulkanDynamicSPMBuffer 2022-12-05 16:32:00 +08:00
Benau
90a22a691a Use GEVulkanDynamicSPMBuffer on streaming buffers 2022-11-29 13:02:36 +08:00
Benau
9e70abb631 Remove IAnimatedMeshSceneNode.h in header files 2022-11-19 13:29:21 +08:00
Benau
a688912872 Remove IrrlichtDevice.h and IVideoDriver.h in header files 2022-11-17 11:09:56 +08:00
Benau
d170f0f445 Remove irrlicht.h in remaining code if unneeded 2022-11-17 08:46:54 +08:00
Benau
6b9a34b767 Remove irrlicht.h in tracks code 2022-11-17 08:21:58 +08:00
Benau
0a1e22451b Remove irrlicht.h in graphics code 2022-11-16 10:54:38 +08:00
Benau
58223928d8 Add rubber band rendering for legacy video drivers 2022-11-13 16:08:54 +08:00
Jörn Eichler
538e03c514 fix parachute powerup (#4738)
only deshield karts ahead of the kart firing the parachute
2022-10-31 11:37:54 +08:00
Benau
2d0c945dd8 Move RenderInfo class to GE 2022-09-05 16:22:04 +08:00
Benau
4335d95215 Preload icon materials to avoid hang when firstly insert item 2022-09-04 11:37:09 +08:00
Benau
9a7e2f6c39 Simplify m_icon_node handling in item class
Item::handleNewMesh already creates new m_icon_node everytime
2022-09-04 11:12:07 +08:00
Benau
593f78a230 Move MiniGLM to graphics engine folder 2022-07-24 12:22:06 +08:00
Benau
4b17d2133a Try to allow cake and plunger to have collision callbacks 2022-06-13 16:16:26 +08:00
Benau
3b0df18167 Fix crash when rubber band hits its owner 2022-05-20 08:17:15 +08:00
Michael Cochez
eb7a5b2ee6 m_gravity was set on the line above, so the condition will always be false. 2022-02-12 00:39:45 +01:00
Semphriss
01a78ba594 Improved code quality in item.cpp (#4722)
Fixes bug where a bubblegum shield popping/bursting will leave an invisible gum object behind
2022-01-26 09:13:51 +08:00
Semphriss
96c0d167bf Items animation (#4713) 2022-01-25 13:07:04 +08:00
Kuba
3623fa8f5f Add Lap Trial mode (#4663) 2021-11-02 03:02:16 +08:00
Heuchi
e110948eb5 add configuration for item return times in stk_config.xml 2021-10-24 10:02:05 +02:00
Benau
b773c009cb Fix memory leak if deleting kart with swatter on 2021-09-19 07:55:06 +08:00
Benau
5ec99947e9 Make some flyable sfx lower volume in splitscreen multiplayer 2021-08-10 08:46:45 +08:00
Mary
7bf9a0a4a8 Rumble on collisions (#4532) 2021-05-21 23:45:35 +08:00
Richard Qian
969de9e751 Improved artist debug mode (#4501)
* Add more functionality to the debug menu

Includes:
* Front of kart view
* Inverse side of kart view
* Change to kart #9 or #10
* Attachments for AI karts

* Fix enumeration value not handled in switch for debug camera

* More enhancements to the debug menu, part 2

Includes:
* Restore access to the anchor/anvil powerup
* Clear the current powerup or attachment
* Change to kart #11 or #12
* Flatten karts as if they were hit by a swatter
* Block most of the view with plungers

* Enable executing some keypress actions from the debug menu in a new sub-menu

Includes:
* Rescuing karts from menu
* Pausing the game from menu (but keypresses will cause the game to crash)
* Moved "To next kart" menu entry to be right below "To previous kart" for easier reach

* Change print kart positions to info level, better labeling of side kart views

* Prevent crashes when trying to use 'Behind wheel view' on a ghost kart

* Add close button to the debug slider dialog, and a function to enable/disable spinners

* Make it easier to read and select kart camera targets from the debug menu

* Add another dialog (reusing the debug slider code) to allow the user to select
from a slider the kart number to change to

* The 11th and 12th target slots have been removed to make the submenu cleaner,
but the 9th and 10th slots have been left in place

* The predefined slots (1st place to 10th place) actually use numbers

* Improve the appearance of the FPS (frames per second) counter

* Shift the position closer to the center, so that in-race kart icons are not obscured
* The box and text position adapt based on the screen resolution
* Use a thin black border for the font, and make the font white-colored
* Decrease the font scaling to 0.7, so that other UI elements can be seen more easily

* Improve debug keyboard shortcuts handling, rearrange some shortcuts

Most shortcuts are now handled by Debug instead of InputManager directly
Other changes include:
* Fix moving right in 1st-person view not working
* Change the 1st-person view shortcuts to work more like in Blender
* Add more keyboard shortcuts for quickly seeing the top and sides of a kart
* The key to show player list in soccer mode no longer needs to be held down
* Rearrange some shortcuts to flow more naturally

New list of debug keyboard shortcuts:
* F1 - Normal view
* F2 - Top view
* F3 - Right side of kart view
* F4 - Left side of kart view
* F5 - 1st-person view
* F6 - Reload SP textures
* F7 - Next kart
* F8 - Previous kart
* F9 - Show player list in soccer mode
* Q - Move 1st-person view camera down
* E - Move 1st-person view camera up
* R - Rotate 1st-person view camera right
* F - Rotate 1st-person view camera left

* Exit demo mode when there also are no dialogs active; fixes related crashes

* Improve the debug menu, various fixes to some menu items, and mouse-accessible actions

Includes:
* Debug menu opens at the cursor position, but not at off-screen places
* Ensure that the debug menu stays (almost) within the actual window
* Middle mouse button can also be used to access the debug menu
* Move all items into submenus, rearrange most submenus to keep a compact size
* Add ability to set powerup and nitro amount by debug slider dialog
* Label the some commands with the new keyboard shortcuts
* Screenshots can now be saved via the debug menu
* Texture reloading can now be done via the debug menu

* Add more debug shortcut keys, change many of the existing ones

The full shortcuts list will be explained later

Includes:
* Use Control and Shift keys to fit more shortcuts onto fewer keys
* Label the debug menu items with the keys that can be used to activate them
* Fix more debug menu items causing game crashes in certain situations
* Add help message dialog to tell users the list of static/debug shortcuts; incomplete
* Slightly alter the free margins that the debug menu can appear in
* Render target textures (RTT) can now be dumped via the debug menu
* Replace the 10th kart camera target with the last kart camera target
* Switch the shortcuts used for activating history save and manual replay saving

* Finish labelling the remaining debug actions, complete the debug keys help dialog

Unfortunately, the now unused tutorial message dialog has been repurposed for this use,
and the font sizes greater than 'Large' will cause some text to draw outside the dialog

* Document the remaining command-line parameters, clean up some of them

This adds another method that will print out the previously undocumented debug options

Rename --gamepad-visuali[s,z]ation to --gamepad-visuals

Also fix some comments related to the user config, including the game mode numbers

* The AI cannot handle the anvil powerup anymore, but it won't spam logs anymore
2021-03-08 11:23:28 +08:00
Benau
09319c6c73 Fix #4367 2020-08-31 08:20:50 +08:00
Alayan-stk-2
63703f96f3 Add a minimap indicator for basket-balls
Fix #3246
2020-08-21 19:43:17 +02:00
QwertyChouskie
ea4d3c03a9 Allow theming of powerup/attachment icons (#4258)
* Allow theming of powerup/attachment icons
Icons were optimized with `pngquant` then `optimize_data.sh`

* Change help screens to use icons from icons folder rather than `models`
2020-04-03 13:18:50 +08:00
Benau
4170628d23 Rewrite some code for updated kart characteristics 2020-03-16 11:48:02 +08:00
Benau
2cf36570c4 Fix missing initialization of confirmed item ticks in child server 2020-03-15 10:14:29 +08:00
Benau
9a7dcf8d8b Fix global variable of rubber ball id 2020-02-28 19:53:18 +08:00
Benau
d41594ea5b Initial working of starting game if no physical object exists 2020-02-28 19:51:40 +08:00
Benau
6a635e1a56 Turn physics into a singleton get for 2 processes 2020-02-28 09:43:05 +08:00
Benau
ccdca532b5 Turn projectile manager into a singleton get for 2 processes 2020-02-28 09:42:52 +08:00
Benau
6a3e606c2d Turn race manager into a singleton get for 2 processes 2020-02-28 09:42:44 +08:00
Benau
c9dc68e578 Move item manager to track to allow copying easier later 2020-02-24 11:10:06 +08:00
Benau
3d13686af7 Move check manager to track to allow copying easier later 2020-02-24 10:57:57 +08:00
Benau
325cc243c5 Remove more hit effects for no graphics STK 2020-02-23 01:26:59 +08:00
Benau
96541cf8af Remove irrlicht item node in no graphics STK 2020-02-20 11:00:49 +08:00
Benau
c0a350fe6e Don't create hit effect for no graphics STK 2020-02-20 10:09:29 +08:00
Benau
3bbca7849d Remove irrlicht node for flyable in no graphics STK 2020-02-20 09:46:34 +08:00
Benau
e01381c508 Don't create irrlicht kart node in no graphics STK 2020-02-20 08:52:33 +08:00
Benau
88bbdbdc92 Move no graphics setting to guiengine which is a better place 2020-02-15 14:00:48 +08:00
Benau
33d228bb6d Clean up header files and remove unused class 2020-02-01 10:45:15 +08:00