Skip to content

First Person Muzzle Flash & No Tracers#559

Merged
AdamTadeusz merged 16 commits intoNeotokyoRebuild:masterfrom
AdamTadeusz:026_firstPersonMuzzleFlashesViewModelMuzzleFlash
Sep 18, 2024
Merged

First Person Muzzle Flash & No Tracers#559
AdamTadeusz merged 16 commits intoNeotokyoRebuild:masterfrom
AdamTadeusz:026_firstPersonMuzzleFlashesViewModelMuzzleFlash

Conversation

@AdamTadeusz
Copy link
Copy Markdown
Contributor

Description

Toolchain

  • Windows MSVC VS2022

Linked Issues

@AdamTadeusz AdamTadeusz marked this pull request as draft August 26, 2024 11:35
@AdamTadeusz
Copy link
Copy Markdown
Contributor Author

Still needs to be cleaned up, and need to remove as much stuff out of base game classes as feasible

@AdamTadeusz
Copy link
Copy Markdown
Contributor Author

I'm gonna keep the changes to baseplayer_shared I think, it's the first place where the function Weapon_Switch is shared between server and client, allowing us to change the muzzle flash from either of those places without writing two separate functions

@AdamTadeusz AdamTadeusz marked this pull request as ready for review August 27, 2024 09:24
@AdamTadeusz AdamTadeusz requested a review from a team August 27, 2024 09:24
@Masterkatze
Copy link
Copy Markdown
Contributor

Shooting and seeing the muzzle flash results in a low FPS (~144 -> ~40), tested while standing and looking in a map corner.

VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (rev 02) (i9-9900k).

@AdamTadeusz
Copy link
Copy Markdown
Contributor Author

Shooting and seeing the muzzle flash results in a low FPS (~144 -> ~40), tested while standing and looking in a map corner.

VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (rev 02) (i9-9900k).

looking back at the muzzle flash stuff im probably networking far too many variables, I wonder if the environment light created could also be contributing to the lower fps.

Comment thread mp/src/game/shared/neo/neo_predicted_viewmodel.cpp
@AdamTadeusz
Copy link
Copy Markdown
Contributor Author

Thanks to the addition of the Tposing fix on master, I think we can remove networking almost entirely from this class now, since there is no instance where a local player switches to a specific weapon without the client knowing about it

Rainyan

This comment was marked as resolved.

@AdamTadeusz AdamTadeusz requested a review from Rainyan September 16, 2024 14:56
@AdamTadeusz AdamTadeusz merged commit 3121dde into NeotokyoRebuild:master Sep 18, 2024
@AdamTadeusz AdamTadeusz deleted the 026_firstPersonMuzzleFlashesViewModelMuzzleFlash branch September 18, 2024 07:32
@nullsystem nullsystem added this to the v8.1-prealpha milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First Person Muzzle Flash Firing guns should not draw tracers from the players own viewmodel

5 participants