This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[L4D2] viewmodel manipulation commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BirdEnthusiast
New Member
Join Date: Feb 2022
Old 02-09-2022 , 21:02   [L4D2] viewmodel manipulation commands
Reply With Quote #1

So L4D2/CS:GO has these commands that allow the player to move the viewmodel according to XYZ coordinates. they are as follows:

viewmodel_offset_x
viewmodel_offset_y
viewmodel_offset_z

unfortunately, these commands only function in CS:GO, and I was wondering if someone could make a plugin that adds commands and functionality similar to these, except they actually work.

i basically want this because i prefer my viewmodels to be in the bottom-right corner of the screen, and by default, L4D2's viewmodels are uncomfortably high and large.

now, there *does* exist a couple workshop mods that do just this, but it would be incredible for this to be a dynamic system by which you can do it to any viewmodel, as currently, if you want to reorigin your *own* viewmodels, it involves decompiling, editing, and recompiling, and as this page states, $origin does not work with models using $includemodel, which vanilla animation edits often do, as crowbar fails to decompile vanilla weapon viewmodel animations properly for whatever reason.

additionally, i think this potential plugin should be on a per-weapon basis, for maximum customization. to reduce clutter, the command would look something like "viewmodel_offset_pumpshotgun X Y Z", so it can all be done in one command for each weapon, instead of split into 3 like the original commands.
BirdEnthusiast is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-10-2022 , 02:15   Re: [L4D2] viewmodel manipulation commands
Reply With Quote #2

Not possible, client side and a nightmare to work with. Went through all this when I wrote Weapon Charms plugin. The best you can do is change viewmodel_fov.
__________________
Silvers is offline
BirdEnthusiast
New Member
Join Date: Feb 2022
Old 02-10-2022 , 04:16   Re: [L4D2] viewmodel manipulation commands
Reply With Quote #3

Aw, that's really too bad. I was hoping something could be done about it, but glad to hear someone's already tried.
BirdEnthusiast is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode