Commit Graph

2869 Commits

Author SHA1 Message Date
dbffd90f0e Prevent rotation from negative lift and fix glider ori in wield state 2021-06-22 10:32:09 +02:00
6f2f27e993 Fix issue with nonsensical glider roll 2021-06-22 10:32:09 +02:00
94bfa1c72a Keep character standing up while on ground 2021-06-22 10:32:09 +02:00
61233fd59d Don't reset ori when exiting glide state and misc tweaks 2021-06-22 10:32:09 +02:00
9e20b090c4 Implement aerodynamic GlideWield 2021-06-22 10:32:09 +02:00
df666cef40 Improve glider controls; physics-based heuristic for character ori 2021-06-22 10:31:56 +02:00
208438a26c Add some util functions to Ori 2021-06-22 10:31:41 +02:00
74f9945ab3 Refactor and abstract fluid dynamics 2021-06-22 10:31:40 +02:00
5f44101486 Define humanoid dimensions as measured in-game
Make Body::dimensions and Body::height methods const

Modify humanoid dimensions for calculation of drag
2021-06-22 10:24:54 +02:00
986b413521 Sort cases in mass match 2021-06-22 10:23:42 +02:00
856e3849f7 Vastly improve glide ratios and soaring capability
Character masses and dimensions have been vastly changed. This is necessary to limit drag - they were practically sails previously.
Character proportions are now closer to those of IRL humans than to their voxel models.
This may screw up entity collision, in which case body dimensions for aerodynamics and for everything else may need to be separated.
Gliders now scale with character size, with a wingspan 3x their height and a chord 1x/3.
Gliding is also now very very fast under 2.5g, but much tamer under Earth gravity. This may need dealing with.
2021-06-22 10:23:41 +02:00
8356e2ffca Merge branch 'aweinstock/lava' into 'master'
Lava

See merge request veloren/veloren!2482
2021-06-21 20:49:44 +00:00
e930ff6779 Sanitise controller inputs 2021-06-21 21:13:49 +01:00
90e5bac395 Made movement slower when strafing in non-forward directions 2021-06-21 20:32:20 +01:00
288f2c13d4 Enable strafing in first-person mode 2021-06-21 13:27:19 +01:00
ec7d3b5e37 Merge branch 'swilliams/give_item_fix' into 'master'
Fix for Issue 1210

See merge request veloren/veloren!2484
2021-06-20 23:26:59 +00:00
b0574b4ddc Merge branch 'imbris/tracy' into 'master'
Refactor Client message handling, improve use of tracy, increase coverage of profiling spans in voxygen

See merge request veloren/veloren!2479
2021-06-20 23:17:08 +00:00
80c45b6396 Added another .replace 2021-06-20 22:55:58 +01:00
0f9181cbcb Address MR 2482 comments.
- Change lava density to 3x water density.
- Use `ServerEvent::Buff` instead of modifying the buff component directly.
- Revert commented-out changes to fluid shaders.
2021-06-20 11:32:05 -04:00
f1a1160b80 Make lava solid w.r.t. rendering while still being liquid w.r.t. physics. 2021-06-19 16:52:21 -04:00
2226a4c6a9 Add lava to caves, which sets you on fire if you swim in it. Currently requires uncommenting #define LAVA in the shaders, and only looks good with cheap fluid mode. 2021-06-19 16:31:21 -04:00
e7f54d6306 Merge branch 'juliancoffee/clay_golem_tweak' into 'master'
clay golem tweak

See merge request veloren/veloren!2478
2021-06-19 14:49:11 +00:00
659b42e813 Remove tracy features that are no longer needed now that macros have been fixed 2021-06-19 04:27:50 -04:00
2bb91e8d7d Fix span macros by putting cfgs outside the macro (they are evaluated in the crate where the macro is used), add shorthand for common case of prof_span macro, add some spans to the client code and spiff bits of it 2021-06-19 04:27:50 -04:00
57649a2e90 tweak clay_golem HP 2021-06-19 10:47:45 +03:00
2abd23ec64 Merge branch 'juliancoffee/not_explodable_sprites' into 'master'
Proof of concept non-explodable sprites

See merge request veloren/veloren!2475
2021-06-19 01:10:20 +00:00
0b8039c3b0 Merge branch 'juliancoffee/trade_pricing_refactor' into 'master'
Refactor trade_pricing.rs

See merge request veloren/veloren!2469
2021-06-19 01:10:16 +00:00
384409a1ed Load ori_rate for BasicBeam from assets
+ make fire turret ori_rate slower
2021-06-18 22:33:00 +03:00
9a5f749bc7 use bg_main.jpg instead of bg_main.png 2021-06-18 20:41:18 +03:00
46dfc119fb Merge branch 'aweinstock/tighten_e2t' into 'master'
Make e2t hitboxes tighter by checking the floating point coordinates before looking up voxels.

See merge request veloren/veloren!2460
2021-06-18 16:27:20 +00:00
05c375a8b0 Merge branch 'zesterer/meta' into 'master'
Optimising for size

See merge request veloren/veloren!2468
2021-06-18 12:35:16 +00:00
747ef50a58 Removed .jpeg as valid image format (to encourage consistency) 2021-06-18 12:42:08 +01:00
0265da1074 Added support for JPEG backgrounds 2021-06-18 12:27:39 +01:00
bb6e8582a6 Merge branch 'zesterer/no-cmd-santisation' into 'master'
Made dealing with chat vs commands safer for clients, made /alias require moderator permissions

See merge request veloren/veloren!2472
2021-06-18 10:55:57 +00:00
294b6e394a Renamed command event 2021-06-18 11:31:06 +01:00
288a7a020b Proof of concept non-explodable sprites 2021-06-18 13:10:27 +03:00
c85238014a More npc sfx 2021-06-18 06:24:57 +00:00
0067cea560 Made /alias moderator-only 2021-06-17 19:55:46 +01:00
96cbf60c3f Made commands a distinct ClientMsg to avoid possible sanitisation problems for clients 2021-06-17 19:55:21 +01:00
ff27c550d1 clippy & code cleaning & test diagnostic
- add clippy::pedantic
- move internal functions to methods/functions
- rename one-letter variables
- use tuple pattern matching instead of indexing
- make print_sorted fancier, also show prices on `.other` entries
2021-06-17 19:10:55 +03:00
9a5b95bc16 Added npc hurt sfx 2021-06-17 05:49:09 +00:00
a42e6e20b8 basilisk tweaks 2021-06-16 23:28:25 -04:00
0941f03608 buffs to stretch progression 2021-06-16 20:50:46 -04:00
e3c44ba7fe More voice kinds, more opportunities for sounds 2021-06-16 17:23:22 +01:00
fb51fd3230 Emit sound from head 2021-06-16 17:23:22 +01:00
0ef29a6989 VoiceKind for better sound effect specs 2021-06-16 17:23:22 +01:00
559311e1b0 Chasing sounds 2021-06-16 17:23:22 +01:00
96ffae4387 Address MR 2460 comments.
- Switch from point query to AABB query to take into account block thickness.
2021-06-15 22:52:02 -04:00
5e6363dbcc Make e2t hitboxes tighter by checking the floating point coordinates before looking up voxels. 2021-06-15 21:29:29 -04:00
8351aab25d Addresses comments about roc AI 2021-06-15 09:50:23 +02:00