Garry's Mod

Garry's Mod

232 ratings
Universal Weapon Offset
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Scenic, Realism
File Size
Posted
Updated
14.346 KB
29 Aug @ 6:32pm
11 Sep @ 2:06pm
3 Change Notes ( view )

Subscribe to download
Universal Weapon Offset

Description
What is it?
Basically an addon to adjust all viewmodels for all weapons, self explanitory.

Does it break anything?
Shouldn't, all it does is add a couple vectors and angles, doesn't override actual hooks.

What does it work with?
Currently it works with tfa, arc9, arccw, mw base, tacrp, and m9k, all though a bit funky on m9k. Those are bases that have been tested on and worked well on. (mainly doesnt work on other stuff because of aiming)

yes yes i know that defies the name of the addon but whatever it works with the most popular bases and thats all that matters so thats a win in my head

How do I use it?
Open the spawn menu and look in the options tab, you should see Universal Weapon Offset and you can fiddle with that.

NEW
Open the spawn menu and look in the options tab in the right hand side, Click Universal Weapon Offset, then click uwo list

You can add a weapon to the ads list (as long as right click is its ads button)


You can add the weapon's base to the ads list which will automatically add any weapon with that base to the ads list


You can also blacklist the weapon from being added by your base list


All weapons (and bases) on those lists will be displayed below, You can remove them from those lists by clicking on them.


Can you add "Feature"?
I'll try, I will be making another addon called viewmodel manager which will have more features. But for now, let me know what to add in the comments.

Issues
It's not working for my weapon!
It probably draws its own custom viewmodel or the aiming system it has isnt supported. You can now add weapons to an ads list yourself!

How does it work?
Instead of returning its own position and angle, it adds onto the existing position and angles, which wont break stuff like aiming and swaying and pretty much every calcviewmodelview hook.

Convars
convar
info
value
uwo_enabled
enable/disable the addon
0/1
uwo_lerp_speed
aim smoothing speed
0 - 25 (or rlly any number)
uwo_idle_x
idle position (x)
any number
uwo_idle_y
idle position (y)
any number
uwo_idle_z
idle position (z)
any number
uwo_idle_pitch
idle rotation (pitch)
any number
uwo_idle_yaw
idle rotation (yaw)
any number
uwo_idle_roll
idle rotation (roll)
any number
uwo_aim_x
aiming position (x)
any number
uwo_aim_y
aiming position (y)
any number
uwo_aim_z
aiming position (z)
any number
uwo_aim_pitch
aiming rotation (pitch)
any number
uwo_aim_yaw
aiming rotation (yaw)
any number
uwo_aim_roll
aiming rotation (roll)
any number
46 Comments
allahin_sevgisiz_kulu 9 Oct @ 11:04pm 
Nice
baked cookies  [author] 2 Oct @ 3:56pm 
Been working on a Different Addon lately.
Rotectytehiest 1 Oct @ 12:49pm 
any updates?
Daria Morgendorffer 18 Sep @ 4:33pm 
Bunny
David Martinez 17 Sep @ 1:56pm 
Hopefully he can do CW 2.0 if that's possible
kayb1ks 13 Sep @ 6:04am 
:steamhappy:
baked cookies  [author] 13 Sep @ 5:13am 
kayb1ks, I've made a different way of fetching aiming state Without use of that Function, that error should No longer appear.
Dallas PAYDAY 8 Sep @ 9:37pm 
lois... im coming... ah
baked cookies  [author] 7 Sep @ 3:50pm 
This error happens Because the makers of mwbase Didn't bother to add a check whether or not the weapon has Aiming capabilities. Also, please tell me how the error Happened next time.
kayb1ks 7 Sep @ 9:06am 
[Universal Weapon Offset] lua/autorun/client/cl_uwo.lua:279: attempt to call method 'GetAimDelta' (a nil value)
1. isaiming - lua/autorun/client/cl_uwo.lua:279
2. v - lua/autorun/client/cl_uwo.lua:335
3. unknown - lua/includes/modules/hook.lua:102