Skip to content

Conversation

@AdamTadeusz
Copy link
Contributor

Description

Ideally the updateViewModelMuzzleFlash function should belong to the CNEOViewModelMuzzleFlash, but when doing it that way changing the muzzle flash skin doesn't seem to have an effect

Toolchain

  • Windows MSVC VS2022
  • Linux GCC Distro Native [Specify distro + GCC version]
  • Linux GCC 10 Sniper 3.0

Linked Issues

@AdamTadeusz
Copy link
Contributor Author

AdamTadeusz commented Feb 4, 2025

I should add that I avoided making these variables networked as I was worried they would generate traffic unnecessarily when a weapon is being fired. Having made them networked and observing generated traffic using dtwatchent entity id of muzzleflash I observed that these variables weren't being sent over the network, probably something clever decided its not necessary when the same function is ran both client and server side. However the scale of the muzzle flash would not update even though m_flModelScale is also a networked variable that exists both in a send and receive table.

This solution is the first one that I could find that fixed the whole problem in the fewest number of lines, if the reason why m_flModelScale was not being sent could be solved then making all these properties networked instead would be simpler.

Perhaps just updating the muzzle flash on this event would be even simpler, but then I ran into issues of the skin of the model (the 2 skin values switch between the circular and cross shape of the muzzle flash) not being updated correctly

@AdamTadeusz AdamTadeusz marked this pull request as draft February 4, 2025 20:37
@AdamTadeusz
Copy link
Contributor Author

I think ill work on this some more and get one of the two nicer looking methods working

@AdamTadeusz AdamTadeusz marked this pull request as ready for review February 6, 2025 13:39
@AdamTadeusz AdamTadeusz requested a review from a team February 6, 2025 13:39
@AdamTadeusz AdamTadeusz marked this pull request as draft February 6, 2025 14:20
@AdamTadeusz
Copy link
Contributor Author

ok I think we can make this slightly better

@AdamTadeusz AdamTadeusz marked this pull request as ready for review February 6, 2025 14:40
brysondev
brysondev previously approved these changes Feb 6, 2025
@AdamTadeusz
Copy link
Contributor Author

Muzzle flash size is wrong, unsure if that's since the sdk update, I recall it being correct before

@AdamTadeusz AdamTadeusz marked this pull request as ready for review February 24, 2025 12:14
@AdamTadeusz AdamTadeusz requested review from a team and brysondev February 24, 2025 12:16
Agiel
Agiel previously approved these changes Feb 25, 2025
@AdamTadeusz AdamTadeusz dismissed Agiel’s stale review February 25, 2025 22:57

The merge-base changed after approval.

@AdamTadeusz AdamTadeusz force-pushed the 131_updateMuzzleFlashPropertiesAtStart branch from 29fab8f to a54c4e9 Compare February 27, 2025 11:45
@AdamTadeusz AdamTadeusz merged commit fa87753 into NeotokyoRebuild:master Mar 7, 2025
7 checks passed
@AdamTadeusz AdamTadeusz deleted the 131_updateMuzzleFlashPropertiesAtStart branch March 7, 2025 13:35
nullsystem pushed a commit to nullsystem/neo that referenced this pull request Jun 7, 2025
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.

Weapon view model muzzle flash not updated when calling Weapon_Switch on the server

3 participants