Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
(Host Only) [VScript] Custom Viewmodel Arms - for Custom Survivors
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Weapons, Items, Scripts, Models, Textures
File Size
Posted
Updated
189.952 MB
18 Aug @ 1:43am
30 Sep @ 8:02pm
4 Change Notes ( view )

Subscribe to download
(Host Only) [VScript] Custom Viewmodel Arms - for Custom Survivors

In 1 collection by ChapCanai
Custom Survivor Takeover Collection
91 items
Description
All credits go to the original sources:

I just renamed the files so that they can be used for custom survivors.

Mainly for Custom Survivor Takeover, and if you want to play as a custom survivor.
Without this, you will have invisible viewmodel arms. (smoker_claw or some shi, idk)

Arms Names:
  • "yusuke"
  • "sara"
  • "haruka"
  • "blake"
  • "mike"
  • "mary"
  • "pete"
  • "pilot"
  • "john"
  • "amanda"
  • "jeff"
  • "whitaker"
  • "gibbs"
  • "virgil"
  • "css"

Due to 32 materials limit in 1 mdl, this is the most I could squeeze in.

Other custom survivors who are not included would just have CSS arms as default

The vscript only matches the arms to the host's model, because I don't know a better way to do this.
Feel free to suggest if you know

There is also a settings.cfg file at \Left 4 Dead 2\left4dead2\ems\custom_viewmodel_arms\
in case you want to reuse some arms for other custom survivors.
The settings "check_models" and "arms_names" are arrays parallel to each other.

This replaces all the weapon scripts, so may conflict with some weapon mods.
Guest players may see some visual glitches if they have other weapon scripts.

Probably need to restart the game to avoid ERROR.mdl

This uses the custom convar "yeoh_custom_viewmodel_arms_id" to set the arms id

The way I did it was using Ellie's model RNG:
To cram every arm model into one mdl, then each vmt will check what is the current id. if the id matches, then make itself not transparent

Credits:
  • Shadowysn, kouga, ChimiChamo - idea and guidance
  • Ellie - Model RNG vmt
  • and where the arms are from, of course
  • devlos - ParseSettings code
  • kouga, kurochama, RF - custom convar tips
7 Comments
ChapCanai  [author] 10 Sep @ 6:03pm 
@ZombieZach
Did you restart the game after subscribing?
ZombieZach 10 Sep @ 12:30pm 
Hey ChapCanai i use a mod that gives me extra slots but if i use this it doesn't work
ChapCanai  [author] 24 Aug @ 7:26am 
@Minhok
Ye those with their own custom animations would have broken animations for the lux legs script for some reason. Idk how to fix
Minhok 24 Aug @ 7:17am 
This addon work well with Lux's Survivor Legs idk why Sara bodies T pose in Pov view
Minhok 24 Aug @ 6:11am 
Nvm i removed an addon "Overhaul Shared Content" now the hands is visible
ChapCanai  [author] 24 Aug @ 2:49am 
@Minhok
Did you restart the game?
Minhok 24 Aug @ 2:43am 
I remove weapons addons and conflict addons but it still invisible hands when using guns only melee,medkit,throwables is visible hands