Left 4 Dead 2

Left 4 Dead 2

378 vurderinger
Stable Third-person Shotgun Sound Fix script
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Game Content: Scripts
Filstørrelse:
Offentliggjort:
Opdateret:
4.282 KB
27. feb. kl. 8:06
3. mar. kl. 6:41
2 ændringsbemærkninger ( vis )

Abonner for at downloade
Stable Third-person Shotgun Sound Fix script

Beskrivelse
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 kommentarer
Wabisuke 4 Dead For 3 timer siden 
@Shadowysn
Thank you! Your information is really helpful :health:
Shadowysn  [ophavsmand] For 3 timer siden 
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 For 3 timer siden 
@Shadowysn
Could you provide me with a script I can use as a reference?
Shadowysn  [ophavsmand] For 3 timer siden 
@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 For 3 timer siden 
@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  [ophavsmand] For 13 timer siden 
@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. okt. kl. 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. aug. kl. 17:24 
its not working in solo
kanadianborn 16. aug. kl. 22:05 
"No VSLib" in mod title

Looks inside:

VSLib.

/\_/\
( o.o )
> ^ <
Brovian 8. juni kl. 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.