Left 4 Dead 2

Left 4 Dead 2

378 arvostelua
Stable Third-person Shotgun Sound Fix script
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Game Content: Scripts
Tiedostokoko
Julkaistu
Päivitetty
4.282 KB
27.2. klo 8.06
3.3. klo 6.41
2 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Stable Third-person Shotgun Sound Fix script

Kuvaus
Another simple script I made way earlier, but decided to leave it unpublished as I thought someone's script would be better.
Years later, turns out that was not the case and VSLib was still used.
Why is it that all these shotgun sound fixes still use a library that conflicts with other versions of itself.
34 kommenttia
Wabisuke 4 Dead 3 tuntia sitten 
@Shadowysn
Thank you! Your information is really helpful :health:
Shadowysn  [tekijä] 3 tuntia sitten 
local client = Ent(1);
local viewModel = NetProps.GetPropEntity(client, "m_hViewModel");

local armsDyn = SpawnEntityFromTable("prop_dynamic", {
model = "models/weapons/arms/v_arms_bill.mdl",
solid = 0,
origin = client.GetOrigin(),
});

DoEntFire( "!self", "SetParent", "!activator", 0, viewModel, armsDyn );
NetProps.SetPropInt(armsDyn, "m_MoveType", 0);
NetProps.SetPropInt(armsDyn, "m_fEffects", (1 << 0)|(1 << 7)|(1 << 9)); // EF_BONEMERGE|EF_BONEMERGE_FASTCULL|EF_PARENT_ANIMATES
Wabisuke 4 Dead 4 tuntia sitten 
@Shadowysn
Could you provide me with a script I can use as a reference?
Shadowysn  [tekijä] 4 tuntia sitten 
@Wabisuke 4 Dead
I did use EF_BONEMERGE most prominently in the Survivor Death Animations script.
And yes, I tested before and you can attach prop models to the predicted_viewmodel entity so you can create fake arms and viewmodels, though the viewmodel FOV will not be respected and the fake viewmodel will clip through geometry. These problems are where I gave up on the fake viewmodel idea, but you could be able to do something with it.
Wabisuke 4 Dead 4 tuntia sitten 
@Shadowysn
to recreate the viewmodel using prop_dynamic, what should I do to sync movements of weapon model and viewmodel? Have you ever used EF_BONEMERGE?
Shadowysn  [tekijä] 14 tuntia sitten 
@Wabisuke 4 Dead
Unfortunately not that I know of. The game ties rendering viewmodel to the game client, and the client decides it will only render the viewmodel strictly in first-person view. There's nothing found for VScript to force it to render the viewmodel in third-person.
Wabisuke 4 Dead 26.10. klo 8.00 
@Shadowysn
Sorry for the unrelated question. Is it impossible for point_viewcontrol or camera related entities to render a viewmodel? I thought you might know a way.
Amonjabraa 25.8. klo 17.24 
its not working in solo
kanadianborn 16.8. klo 22.05 
"No VSLib" in mod title

Looks inside:

VSLib.

/\_/\
( o.o )
> ^ <
Brovian 8.6. klo 2.06 
Awesome mod.Can you creat a script which can fix the thirdperson lasergun upgrade?I can not see the laser after the gun have laser upgrade in third person.