Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Allow crouch to be turned off via playerCrouch flag | 024d43d877ca16d21e0feeb50d70f82acd449335 | MSE | 2024-09-15 03:02:29 |
Add configurable third-person camera pitch constraints | 9e2ebdd325515a5bc83cd49229cb099738fb9e0e | MSE | 2024-09-11 21:02:38 |
Add configurable thirdPersonCameraAutoRotateSpeed | c3104421a4df91fbda573dadcce135f8016fa40e | MSE | 2024-09-11 19:27:17 |
Fix inventory display bug | 8626c06403b025c6423ec249771598375791b6ca | MSE | 2024-09-02 23:38:01 |
Highlight agents and default MSAA to 2 | f51dcb39a8abf3d2800d074dfc9606c1c8d486ec | MSE | 2024-08-27 03:46:04 |
Fix bad math | e0ef61f3961a4d98608fb2c724cb631955ae1d82 | MSE | 2024-08-24 22:04:23 |
Smooth camera auto-rotation | 0ddcd28b59e564e123a4984d26d2ec80a9f57ec7 | MSE | 2024-08-24 21:58:32 |
Allow free look in third-person | a8b209cdd85ae914027ffd6c04990b75e9752578 | MSE | 2024-08-24 21:26:39 |
Auto-rotate third-person camera | b9f034155274b8dc20b9f33d1fc39ce701017b0d | MSE | 2024-08-24 04:25:51 |
Use common math to rotate avatars | 75e98c52899f17d8d511e733c1445f5eb69b738a | MSE | 2024-08-24 02:03:53 |
Correct minimap rotation in third-person | 9bcf201c6b24b80b7eec2bb4b2ad296cd5d296ed | MSE | 2024-08-22 07:07:08 |
Rotate third-person agents independently of camera | d4bcdb8ff8b47d6429117002a71881812c45a3dc | MSE | 2024-08-22 06:43:19 |
Remove browser launch from package-steam | edb75b8fd4499e49f4a7893b0acf23bde9c8e5f9 | MSE | 2024-07-31 23:42:42 |
Work around a minimap regression | acc3a99e8b96af34179824bcef7a11b0d539a499 | MSE | 2024-07-18 23:44:57 |
Check noautosave flag | 185b4817614429cd43e8cdc1237fa5c9e635eff9 | MSE | 2024-07-12 01:04:06 |
Make MSAA a setting (default 0) | e236f9370b87befa80f03118bd269ced22953868 | MSE | 2024-07-12 00:44:19 |
Use maxTurn for AI rotation speed | b43198bfbc9a9cfe88caf6dabb40aaf55fa5e7b6 | MSE | 2024-07-05 17:34:02 |
Add -DNO_OPENGL3, which seems to help with building for Windows | 3fc75eb3ce6186e4fe34a155b138ac6bfaea74e4 | MSE | 2024-07-03 17:32:43 |
Add sheen to water edge | ecb869a7849857e06f83b3e58a7abc118badcf95 | MSE | 2024-07-02 23:33:16 |
Copy globals from multiple convos on new game (enables 3D title screens) | b7af9cf230da946e04edf1e3e2ed6731b9bfcfbc | MSE | 2024-07-02 04:52:46 |
File | Lines added | Lines deleted |
---|---|---|
src/rsod.cpp | 7 | 1 |
File src/rsod.cpp changed (mode: 100644) (index ab24c40..fe16ce5) | |||
... | ... | bool always_run = false; | |
379 | 379 | // Let the player toggle the flashlight? | // Let the player toggle the flashlight? |
380 | 380 | bool player_toggle_light = true; | bool player_toggle_light = true; |
381 | 381 | ||
382 | // Let the player crouch? | ||
383 | bool player_crouch = true; | ||
384 | |||
382 | 385 | // Let the player crouch-jump? | // Let the player crouch-jump? |
383 | 386 | bool player_crouch_jump = true; | bool player_crouch_jump = true; |
384 | 387 | ||
... | ... | void InitEngine( std::string file_name ){ | |
1155 | 1158 | if( info["playerToggleLight"] ){ | if( info["playerToggleLight"] ){ |
1156 | 1159 | player_toggle_light = info["playerToggleLight"].getBool(); | player_toggle_light = info["playerToggleLight"].getBool(); |
1157 | 1160 | } | } |
1161 | if( info["playerCrouch"] ){ | ||
1162 | player_crouch = info["playerCrouch"].getBool(); | ||
1163 | } | ||
1158 | 1164 | if( info["playerCrouchJump"] ){ | if( info["playerCrouchJump"] ){ |
1159 | 1165 | player_crouch_jump = info["playerCrouchJump"].getBool(); | player_crouch_jump = info["playerCrouchJump"].getBool(); |
1160 | 1166 | } | } |
... | ... | void Render(){ | |
2630 | 2636 | jumpButtonLast = jumpButton; | jumpButtonLast = jumpButton; |
2631 | 2637 | ||
2632 | 2638 | static bool crouchButtonLast = false; | static bool crouchButtonLast = false; |
2633 | crouchButton = fgl::controlKey() || fgl::leftStick(); | ||
2639 | crouchButton = player_crouch && (fgl::controlKey() || fgl::leftStick()); | ||
2634 | 2640 | crouchButtonDown = crouchButton && !crouchButtonLast; | crouchButtonDown = crouchButton && !crouchButtonLast; |
2635 | 2641 | crouchButtonLast = crouchButton; | crouchButtonLast = crouchButton; |
2636 | 2642 |