Issues:
When I use these two weapons, the muzzle flash will appear at the map coordinate Vector(0, 0, 0), as shown in the picture, it can be seen near the generator on the map "c7m3_port".
So I decompiled "v_rifle.mdl" and "v_huntingrifle.mdl", and found that some parameters are incomplete:
v_rifle.qc: { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzle_flash_huntingrifle_FP_cheap follow_attachment muzz" }
v_huntingrifle.qc: { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzle_flash_huntingrifle_FP follow_attachment muzzle_fla" }
The last parameter should be "muzzle_flash", I modified it and compiled. Start the game, but the problem not solved. And i decompile again, the parameters are still been cut off.
It looks like parameters are limited to 64 characters. if i replace "weapon_muzzle_flash_huntingrifle_FP" with "weapon_muzzle_flash_smg_FP" to shorten the parameter length, the problem no longer occurs.
Crowbar version: 0.74
Game: Left 4 Dead 2
Operating System: Win10
Samples: Day of Infamy - G43 Titanfall 2 - R-201 Carbine
Issues: When I use these two weapons, the muzzle flash will appear at the map coordinate Vector(0, 0, 0), as shown in the picture, it can be seen near the generator on the map "c7m3_port".
So I decompiled "v_rifle.mdl" and "v_huntingrifle.mdl", and found that some parameters are incomplete: v_rifle.qc: { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzle_flash_huntingrifle_FP_cheap follow_attachment muzz" } v_huntingrifle.qc: { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzle_flash_huntingrifle_FP follow_attachment muzzle_fla" } The last parameter should be "muzzle_flash", I modified it and compiled. Start the game, but the problem not solved. And i decompile again, the parameters are still been cut off. It looks like parameters are limited to 64 characters. if i replace "weapon_muzzle_flash_huntingrifle_FP" with "weapon_muzzle_flash_smg_FP" to shorten the parameter length, the problem no longer occurs.