Im just entering modding on oxide but have run into a problem, there is no documentation from facepunch on what attributes every object/class (example: items has a .amount attribute) is there a place i can find all the attributes that everything has?
Solved Object attributes and information?
Discussion in 'Rust Development' started by LiamColeE, Jul 31, 2017.
-
Use a decompiler (I personally recommend JustDecompile) to decompile the Assembly-CSharp.dll file contained within the rust server software (server/RustDedicated_Data/Managed/Assembly-CSharp.dll). This will show you everything contained within the components once you locate them.
Alternativley you can use Visual Studio's IntelliSense to kinda view what is contained within each component but i recommend the first method over this. -
-
Another alternative is using resharper and its built in decompiler. It makes it really easy to view the decompiled code by searching for it with ctrl+t or ctrl + clicking on the object type.
Saves the hassle of alt tabbing between visual studio and the decompiler constantly. -
Last edited by a moderator: Jul 31, 2017
-
Wulf Community Admin
-
-
Wulf Community Admin
-
-
Wulf Community Admin
-
thanks man, your great! -
[DOUBLEPOST=1501546315][/DOUBLEPOST]I think what you're looking for is in the "BaseProjectile" class
Gyazo - f51a39d3a055e4051ee5d423190cfa69.png -
-
Wulf Community Admin
-
Last time ill go off topic here, but i thought i should let you know, my hopes and dreams of removing the damn aim cone on a server have been crushed. aim cone and recoil are both handled client side rip that idea. -
[DOUBLEPOST=1501569069][/DOUBLEPOST]Setup visual studio (Referencing game/Oxide DLLs in Visual Studio 2015/2017 | Oxide), shove that hook in a file and play around with the values that you see. You'll see the ones that are able to be modified by putting a "." after "projectile"