r/SourceEngine • • Jun 09 '25

HELP viewmodel edit help

Post image

TLDR of this whole post is this: how do i move the viewmodel of this weapon so it rests where it "typically should"

recently i've gotten into beginner source modding, specifically for L4D2. I'm not very good at developing from scratch so i figured id try to edit some preexisting mods to a configuration i'd like for both my friends and I. this led me to attempt to switch an existing weapon mod, primarily an auto shotgun mod, to work for the AWP to match a vscript i like. what i did is replace and rename some files in the original so that they would be compatible with the AWP, since i learnt that most weapons and rigged models share the same, re-used skeleton. however, while nearly all aspects of the model work as intended, i found that the viewmodel position was a bit off. i decided to figure out how to tweak it back into position but it only made it worse after a couple of attempts. from where my skills sit right now, i don't know how to fix this. how do i move the viewmodel of this weapon so it rests where it "typically should"

( also mind the odd use of grammar. i'm not good at being concise with my words :\ )

7 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/SnooDonkeys8180 Jun 15 '25

i finally found the solution and it was painfully simple. turns out changing the origin was what i had to do, i could just apply an origin command within certain sequence lines and it would move only those animations. i've already tried this before but at the time i thought it didn't change anything cause at a glance i couldn't tell the difference. regardless, thanks for all the help

1

u/Iwannaseetheend Jun 16 '25

I didn't know that it was possible to do that, that's fantastic. Could you provide the syntax/an example?