Commit Graph

341 Commits

Author SHA1 Message Date
02c39f01dc Fix warnings 2026-07-25 21:20:59 +03:00
e2a71eb014 uncommit again 2026-07-25 01:30:18 +03:00
4afee426d8 Comment self_sync position again 2026-07-25 01:29:13 +03:00
fcda202c49 Send syncs every physics_tick 2026-07-25 01:26:13 +03:00
9769e7f91a Re-apply self-sync position with 1000 divisor 2026-07-25 01:24:19 +03:00
b13fa8d54a Comment out position syncing in apply_self_sync 2026-07-25 01:23:10 +03:00
dd75677321 Move movement to physics_process 2026-07-25 01:20:32 +03:00
3e5a9b3163 Calculate y-rot differently 2026-07-25 01:19:01 +03:00
fe2d586a50 Mult ping by /500. 2026-07-25 01:04:43 +03:00
51b87daa9f Throw apply_self_sync overboard 2026-07-25 00:57:03 +03:00
4b8c017530 Loosen up apply_self_sync 2026-07-25 00:54:46 +03:00
b3b4a299bc Fix self sync calculation 2026-07-25 00:46:23 +03:00
606eed9255 Apply client-side sync info rarely 2026-07-25 00:45:39 +03:00
840860bc9d Make killbox kind also an export 2026-07-24 23:27:03 +03:00
a00ced88d0 Add killbox kinds 2026-07-24 23:22:06 +03:00
27869e9072 Swap weapon on scroll wheel 2026-07-24 23:10:15 +03:00
d25104aa8d Properly update clientside player weapon at spawn 2026-07-24 23:03:52 +03:00
786003d60d Fix 2026-07-24 22:50:38 +03:00
6c6c05d0a9 Split player.rs into three files 2026-07-24 22:47:35 +03:00
2e71105ea2 Add own health number 2026-07-24 22:38:49 +03:00
9535227e6f Add health bar to remote players 2026-07-24 22:31:11 +03:00
4a443b8075 Implement recent servers list 2026-07-24 21:49:47 +03:00
bb9ed38278 Trim chat messages and don't send any empty ones 2026-07-24 21:21:35 +03:00
4512734395 Fix footstep sounds when jumping 2026-07-24 21:19:46 +03:00
efa350ff20 Fix remote player shooting 2026-07-24 21:15:42 +03:00
f162da8a41 Fix ball not moving in hand correctly 2026-07-24 21:12:30 +03:00
9d78db008d Add some rotation to shooting animation 2026-07-24 20:17:47 +03:00
cae47f86ed Transfer cd from previous weapon 2026-07-24 20:10:05 +03:00
430de3e1f1 Make shotgun prettier and add shotgun sounds 2026-07-24 20:04:06 +03:00
678268642b Make shotgun functional 2026-07-24 19:36:00 +03:00
e60645f0f6 Make weapon swapping and ball dropping work correctly 2026-07-24 18:27:07 +03:00
5b8dc1acc4 Add shotgun, and a way to swap weapons 2026-07-24 17:35:05 +03:00
3b994283af Use compressed sound effects 2026-07-24 16:06:55 +03:00
d40040d5b9 Add max length to name 2026-07-24 04:27:09 +03:00
4c82b40778 Change a bunch of TextEdits into LineEdits 2026-07-24 04:25:55 +03:00
305c9e334a Improve chat 2026-07-24 04:18:44 +03:00
fa5e4517d1 Make sure chat messages always remain 2026-07-24 04:14:55 +03:00
46bc9115ae Add sending chat messages as well 2026-07-24 04:11:18 +03:00
95bd5d9365 Add chat & chat box 2026-07-24 03:58:44 +03:00
c414e6d7c4 Add some preliminary chat messages 2026-07-24 02:49:46 +03:00
f053c789a6 Add announcements 2026-07-24 02:13:21 +03:00
b44179eb24 Add some effects for walking 2026-07-24 01:34:11 +03:00
c589832268 Move cd management to weapon itself 2026-07-24 00:58:41 +03:00
95e0032948 Fix warnings 2026-07-24 00:55:16 +03:00
cf364ddcff Move splorch to player effects, add hit sound 2026-07-24 00:53:39 +03:00
214d7a0939 Refactor some files to player directory 2026-07-24 00:47:02 +03:00
7e2751393c Add ping icon 2026-07-24 00:14:58 +03:00
8576a5b673 Properly handle disconnect during game 2026-07-23 23:58:28 +03:00
e2ec9a4978 Reset player kills and deaths only at reset 2026-07-23 23:54:52 +03:00
036d7c723a Implement kills/deaths 2026-07-23 23:40:43 +03:00
b707115c79 Add scoreboard 2026-07-23 23:40:43 +03:00
c6aedf8b22 Fix rejoining game causing lobby to be empty 2026-07-23 22:48:26 +03:00
9c0d71f24e Use default name 2026-07-23 22:12:20 +03:00
30ffcb9dab Add default name config 2026-07-23 22:03:11 +03:00
594ebaee6d Make fov slider work 2026-07-23 21:48:44 +03:00
b82759ba66 Add settings that persist 2026-07-23 21:39:51 +03:00
966f2ebb29 Add pause menu 2026-07-23 20:17:37 +03:00
6acd6d4d15 Add simple pause menu 2026-07-23 20:10:31 +03:00
3980439a91 Improve how popups appear 2026-07-23 19:48:25 +03:00
8efe18007f Properly exit game at exit 2026-07-23 19:45:53 +03:00
5e6c8b3fac Add popup when client disconnects 2026-07-23 19:40:22 +03:00
1fda2f821e Implement PopupQueue 2026-07-23 19:38:05 +03:00
db2bb852f4 Go to main menu on disconnect 2026-07-23 19:23:35 +03:00
445344492a Add popup for error hosting 2026-07-23 19:17:26 +03:00
1a877d6f75 Add simple popup 2026-07-23 19:14:17 +03:00
d2da80f64c Add simple main menu 2026-07-23 18:47:21 +03:00
4b41d61040 Move ball when it's being shot 2026-07-22 23:53:27 +03:00
09959cb923 Remove local player weapon on death 2026-07-22 23:48:46 +03:00
a24dbe97cb Remove name label upon death 2026-07-22 23:48:04 +03:00
05200d1d7f Animate the local player mesh as well 2026-07-22 23:47:17 +03:00
77457904b1 Implement some command line arguments 2026-07-22 23:44:55 +03:00
c09037a488 Persist map selection 2026-07-22 23:04:55 +03:00
6cd6769097 Fix goals game option not changing 2026-07-22 23:00:59 +03:00
cde032eccc Update score view properly upon death 2026-07-22 22:50:50 +03:00
0d4f63afa5 Fix jumping 2026-07-22 22:46:56 +03:00
5e0ff4336a Fix camera unlocking upon death 2026-07-22 22:43:53 +03:00
ec4a91722c Update game to make ready for diner 2026-07-22 22:30:09 +03:00
8c44050846 Update player listings correctly, remove unused print 2026-07-22 22:28:09 +03:00
0aae697b96 Add some sort of summary view to ending screen 2026-07-22 22:20:00 +03:00
ffa3f3166c Add goals needed to win option 2026-07-22 21:56:00 +03:00
15a898b477 Iron out some bugs 2026-07-22 21:48:27 +03:00
a9d99390d9 Implement resetting the game 2026-07-22 21:31:03 +03:00
e1ad6b12d7 Add simple finish game screen 2026-07-22 21:19:44 +03:00
40a41f4b45 Rename player_listing to lobby_player_listing 2026-07-22 20:30:32 +03:00
3fa4800826 Add simple score view 2026-07-22 20:29:14 +03:00
a7a1d84b35 Remove unused prints 2026-07-22 05:46:49 +03:00
40681ba470 Implement making goals 2026-07-22 05:46:32 +03:00
b660ae05cd Add goals 2026-07-22 05:33:06 +03:00
1bdaea7e96 Add separate team spawners 2026-07-22 04:37:02 +03:00
19ea47bbf4 Fix some warnings 2026-07-22 04:32:01 +03:00
dc1ea6625f Implement friendly fire gamerule 2026-07-22 04:30:47 +03:00
f2193e0556 Add friendly fire option 2026-07-22 04:19:48 +03:00
57e3c21fa1 Update options for client as well 2026-07-22 04:17:15 +03:00
ed1d14f4ae Add game options properly 2026-07-22 04:06:56 +03:00
50557bfb9b Allow client to select map as well, sometimes 2026-07-22 03:25:52 +03:00
05f5c9cbf8 Update map selection dropdown disable logic 2026-07-22 03:23:48 +03:00
afdc8458d8 Move jumping code to PlayerMovement 2026-07-22 03:18:07 +03:00
b35480dc5f Add name labels 2026-07-22 02:05:42 +03:00
0a8caf9ced Add team colors to lobby names 2026-07-22 01:59:18 +03:00
1d47522f7e Automatically select team with least players 2026-07-22 01:48:30 +03:00
317d60fca4 Disable team switch button without rights 2026-07-22 01:41:46 +03:00
4164232b49 Allow changing teams 2026-07-22 01:37:19 +03:00
8a1b6d3e62 Move common data from Player to NetPlayer 2026-07-22 01:37:19 +03:00
1ec5377cfc Fix team selection, maintain team after map change 2026-07-22 01:37:19 +03:00
db3c430065 Start adding teams, move player capsule down a bit 2026-07-22 00:00:21 +03:00
dba77889ed Remove hands from local player, add proper gun_node 2026-07-21 23:31:28 +03:00
9590f853a0 Move sync and net processing to physics_process 2026-07-21 22:53:14 +03:00
f36dbfdea6 Implement dropping the ball upon death 2026-07-21 22:24:14 +03:00
a306377a4e Respawn the ball when it enters a killbox 2026-07-21 22:20:26 +03:00
683671a50e Implement ball_sync 2026-07-21 22:15:53 +03:00
92103256e8 Add throwing the ball 2026-07-21 22:05:37 +03:00
5a85964216 Make sure that ball cannot be picked up by the same player instantly 2026-07-21 21:54:09 +03:00
772b015d06 Spawn ball at ball origin 2026-07-21 21:47:49 +03:00
163dcf3f4a Implement dropping the ball 2026-07-21 21:41:58 +03:00
0214c652d8 Add ball and be able to pick it up 2026-07-21 21:07:50 +03:00
f601523df2 Remove unused print 2026-07-21 20:45:53 +03:00
1f27e00d5e Despawn ball on contact 2026-07-21 20:45:14 +03:00
33631e4391 Add ball 2026-07-21 20:31:39 +03:00
b8ce30826d Use DamageSource instead of player_id always 2026-07-21 02:35:35 +03:00
1fc0e17118 Add killbox 2026-07-21 01:47:35 +03:00
c2b1823a18 Remove some more imports 2026-07-21 01:13:17 +03:00
c091c46a13 Clean up some unused imports 2026-07-21 01:12:39 +03:00
861db98c0e Improve how map is fetched for bullet 2026-07-21 01:10:42 +03:00
b6bc13323b Implement spectator camera 2026-07-20 23:48:07 +03:00
b4ee962c3a Make sure killer and damage-dealer player id is propagated 2026-07-20 23:36:46 +03:00
7a8cc9cca7 Add respawn timer ui element 2026-07-20 23:30:49 +03:00
569f73d2c8 Implement respawning 2026-07-20 22:43:10 +03:00
3b4c4e1055 Make death look a bit nicer 2026-07-20 22:25:24 +03:00
097b4c3fcd Disable movement and camera rotation while dead 2026-07-20 22:20:12 +03:00
46c1c68fe7 Finish killing 2026-07-20 22:00:00 +03:00
81fabce332 Implement killing almost 2026-07-20 21:46:38 +03:00
4de9e2d19e Update raycasting to work properly for all players 2026-07-20 21:08:57 +03:00
cf9b47afc6 Improve how raycasting is done 2026-07-20 20:44:49 +03:00
05c36f7aea Improve latency when client is shooting 2026-07-20 20:35:31 +03:00
3d5f1ab727 Add dyn weapon separately 2026-07-20 20:33:30 +03:00
2e6d770be5 Rename bullet to beam and weapon to raygun 2026-07-20 20:30:40 +03:00
588d45a032 Improve raygun ray effect 2026-07-20 20:28:16 +03:00
9d11c58df0 Add cylinder bullet instead 2026-07-20 19:44:13 +03:00
c8d0c22e26 Add proper shooting effect 2026-07-20 01:46:51 +03:00
d3840c9427 Add simple shooting 2026-07-19 23:06:52 +03:00
16277edd5b Add shooting 2026-07-19 22:49:21 +03:00
80241f83fd Use look-at modifiers 2026-07-19 22:16:04 +03:00
74d3e4f6f2 Implement some sort of look up rotation 2026-07-19 21:50:17 +03:00
de6925f73a Add a lot of assets, add player model somewhat 2026-07-19 20:41:14 +03:00
25867a0909 Sync jumps 2026-07-18 03:19:55 +03:00
704ea006c9 Fix sync 2026-07-18 03:01:09 +03:00
66082a7f04 Sync local player too if too far 2026-07-18 03:00:45 +03:00
e1b7572098 Raise tickrate to 60 2026-07-18 02:57:27 +03:00
1402b10180 Implement syncing 2026-07-18 02:55:41 +03:00
4b0a90be0e Add spawning players 2026-07-18 02:26:09 +03:00
67110b8216 Impl process for RemotePlayer 2026-07-18 00:59:12 +03:00
90a39d712d Add remote player 2026-07-18 00:58:46 +03:00
1761d730fc Move common code to Player-trait 2026-07-18 00:55:46 +03:00
cb0fa40d1a Implement jump 2026-07-18 00:44:53 +03:00
bbb6856185 Add simple controls 2026-07-18 00:28:16 +03:00
93809e7fd6 Add mouse look 2026-07-18 00:12:40 +03:00
d251973dd3 Refactor a bit 2026-07-17 23:28:28 +03:00
11b6691a4e Deny new connections after game has started 2026-07-17 23:15:46 +03:00
73c7c5b850 Add map selection and entering game 2026-07-17 23:09:11 +03:00
c594af3bd1 Add readiness 2026-07-17 21:36:29 +03:00
b01ecbfe13 Censor player ip when joining 2026-07-17 21:02:11 +03:00
936de8fd0b Fix player creation for 3 players 2026-07-17 20:32:43 +03:00
6ffdd201a7 Fix player disconnecting 2026-07-17 20:13:44 +03:00
4c58824840 Add more proper player listings 2026-07-17 19:59:06 +03:00
eaac940b98 Allow toggling cli 2026-07-17 19:09:14 +03:00
b93eded960 Fix bug 2026-07-16 17:15:07 +03:00
9564b778fb Update player nick from serverside as well 2026-07-16 16:50:18 +03:00
70c0a782b4 Update player nick properly 2026-07-16 16:47:43 +03:00
154c5fa743 Add GameManager and Game 2026-07-16 07:17:07 +03:00
82d3a22193 Implement net stats 2026-07-16 05:50:20 +03:00
a849904535 Implement sending a simple Hello-package 2026-07-16 04:52:31 +03:00
0e3fac5a12 Add PeerConfig 2026-07-16 03:35:27 +03:00
423abba4c3 Handle separate Closed-message 2026-07-16 02:58:16 +03:00
a7b690ec9f Iron out some bugs 2026-07-16 01:59:31 +03:00
fa71a3c02e Implement connecting 2026-07-16 01:07:11 +03:00
7c8c298c68 listen to port with peer, report errors 2026-07-15 21:57:33 +03:00
edc23b3e8c Add teanet-rust 2026-07-15 21:44:46 +03:00
ecaa5537a2 Bind host and join to NetworkManager via signals 2026-07-15 21:16:44 +03:00
947b606b44 refactor 2026-07-15 21:05:49 +03:00
b7f8ac320e Use autoload singletons instead 2026-07-15 20:58:56 +03:00
17086a2ef4 Add host and join commands 2026-07-15 20:39:15 +03:00
c4f376b9c3 Improve help command 2026-07-15 20:32:20 +03:00
eba728f194 Add commands 2026-07-15 20:30:22 +03:00
fbb24ddd17 Add handle_command 2026-07-15 20:03:26 +03:00
ae37115b37 Improve command line interface 2026-07-15 20:00:58 +03:00
7b66a7afb9 Add simple command line interface 2026-07-15 19:48:15 +03:00
a588dfe7dd Add simple NetworkManager 2026-07-15 18:35:37 +03:00
0e83927a0b Perform initialization 2026-07-15 18:25:12 +03:00
d5f0947e97 Remove target files 2026-07-15 18:19:04 +03:00
2d4648b199 Init rust project as library 2026-07-15 18:18:33 +03:00
03f634b33b Set up directory structure 2026-07-15 18:17:25 +03:00