Commit Graph

11 Commits

Author SHA1 Message Date
VMSolidus
25056a913c Mass Contests Affect Camera Shake (#560)
# Description

I made this entirely on a whim to prove a point in the middle of a
conversation. I have not tested this code, but I'm confident that it
will work as advertised.

This refactors the public KickCamera function so that it no longer:
Divides by 1, divides by 1 again, multiplies by 1, normalizes a
vector(turning its A value to 1), and then divides said vector by 1
again for good measure.

Instead 1 has been replaced by MassContest, wooh! I also got rid of
redundant steps. The effect of this is that characters with greater than
human-standard mass are slightly more resistant to all sources of camera
shake(Explosions, gravity generator turning off, gunfire, being hit by
flying objects, etc), while characters with less than standard human
mass experience a greater amount of camera shake.

You're welcome. Now go find a Felinid to shake vigorously. 

# Changelog


🆑
- add: Camera Shake is now affected by character mass. Small characters
experience more camera shake. Large characters experience less.
2024-07-21 07:50:25 +01:00
Pieter-Jan Briers
ccea85136b Random spontaneous cleanup PR (#25131)
* Use new Subs.CVar helper

Removes manual config OnValueChanged calls, removes need to remember to manually unsubscribe.

This both reduces boilerplate and fixes many issues where subscriptions weren't removed on entity system shutdown.

* Fix a bunch of warnings

* More warning fixes

* Use new DateTime serializer to get rid of ISerializationHooks in changelog code.

* Get rid of some more ISerializationHooks for enums

* And a little more

* Apply suggestions from code review

Co-authored-by: 0x6273 <0x40@keemail.me>

---------

Co-authored-by: 0x6273 <0x40@keemail.me>
(cherry picked from commit 68ce53ae17985876d6d112b764b2144964a9f42e)
2024-02-18 23:02:29 +01:00
Psychpsyo
3c2f10a9c0 Screen Shake Intensity Slider in Accessibility Settings (#24749)
* Reduced motion toggle disables screen shake

* Actually, screen shake is its own slider instead

* Cache screen shake intensity cvar

(cherry picked from commit ba0ca39a7ad5ceef2ae0582e13be5044e6f0a5f7)
2024-02-08 12:27:11 +01:00
metalgearsloth
c9648da984 Content update for NetEntities (#18935) 2023-09-27 21:59:12 +02:00
metalgearsloth
68480af109 Update content vectors to numerics (#17759) 2023-07-08 14:08:32 +10:00
metalgearsloth
38fc066fb9 Re-implement recoil (#9406)
* Re-implement recoil

Playing around with the values atm

* Update constants

* final tweaks
2022-07-14 22:01:25 +10:00
Acruid
b3b171da7f ECSatize CameraRecoilSystem (#5448)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2021-12-27 17:50:12 +11:00
Vera Aguilera Puerto
5cd42c9ad6 Inline UID 2021-12-03 15:53:09 +01:00
Visne
c67160ae19 Disable warnings that would be refactored anyway (#5047) 2021-10-27 18:10:40 +02:00
Vera Aguilera Puerto
0be5ff829b Gets rid of all ComponentManager usages. (#4707) 2021-09-28 13:35:29 +02:00
DrSmugleaf
ff1a2d97ea Re-organize all projects (#4166) 2021-06-09 22:19:39 +02:00