Facepunch / garrysmod-issues

Garry's Mod issue tracker
145 stars 56 forks source link

Wrong/broken particle effects in multiplayer #3688

Open TheMostUpset opened 5 years ago

TheMostUpset commented 5 years ago

Some effects in MP show incorrectly for local player, but correct from other players. Armored glass won't show you ricochet effects, monster_gargantua emits blood particles instead of metal, underwater bullet bubbles dont show up at all.

Singleplayer: 20181220062817_1

Multiplayer, when you hit it: 20181220062936_1 When someone hits: 20181220063041_1

mcNuggets1 commented 5 years ago

Underwater bullet bubbles not showing is something I can reproduce in gm_construct. It used to show for hl2 pistols back in the day as far as I know.

ZehMatt commented 5 years ago

They were removed, I had to recreate them myself.

robotboy655 commented 5 years ago

They weren't, they are just not coded to work in multiplayer

robotboy655 commented 5 years ago

Looked more into it, and for most of those effects its due to SuppressHostEvents, just like the flechette gun.

Not sure what can be done to rectify this. This can be improved on a per weapon basis with the following:

if SERVER then SuppressHostEvents( NULL ) end
self:ShootBullet( 150, 1, 0.01 )
if SERVER then SuppressHostEvents( self.Owner ) end

I say improved because it still won't be identical to singleplayer. Bubble trails is different, IIRC it is just not coded to work in multiplayer.

ZehMatt commented 5 years ago

Also bubble trails are super inefficient for multiplayer, those are actual entities and move so a lot of data is networked for a visual effect which can be entirely clientside if done right.

weaponcubemap commented 4 years ago

If you hit water using crowbar (from HL2), it doesn't show water splash in multiplayer, in singleplayer it works fine