yes, you should ask me :P
How do I adjust where the camera goes when going into ADS?
I think my tutorial lacks this, so I will give explanation and code here:
Ingredients: "AimDownSightStateSmooth", "mat" (aka "param.matrix") and "Notepad++" (an awesome program, set language to C++ for highlighting)
If the weapon is hipped, "AimDownSightStateSmooth" is 0, when aiming it is 1
"mat" represents the position, scale and rotation, I guess you know that already :)
Here's the code:
"mat *= CreateTranslateMatrix(0.f, AimDownSightStateSmooth*10.f, 0.f);"
Put that line after "mat = GetViewWeaponMatrix() * mat;", so it is applied to every single model of your weapon (maybe even hands, depending on where else you put it instead)
"//(x+left/-right, y+further/-closer, z+down/-up)" just a quick reminder of what each axis does :) useful!
How do I size and position the magazine model?
Use "mat *= ..." (same as "mat = mat * ..."), together with:
"CreateTranslateMatrix(0.f, 0.f, 0.f);"
"CreateRotateMatrix(Vector3(0.f, 0.f, 0.f), DGRs.IN.RADIANS);"
"CreateScaleMatrix(1.f, 1.f, 1.f);" OR "CreateScaleMatrix(1.f);"
Each one of these is covered in my tutorial. First link in sig. (Yes, shameless self adverstising)
When I try to set up a reflex sight, I get this error, what am I doing wrong? The view.as can be reviewed here.
1. I don't care about that white box with "OK" button, it says exactly nothing to me.
2. I care about that black console, as it has precise location of error (type of error, number of line and number of character).
3. Capture screenshot of console, upload here or PM me.
4. I guess you did not declare a variable the HCOG sight is using...
Last edited by
Chameleon on Sat Dec 06, 2014 6:25 pm, edited 1 time in total.
Have you always wanted a sound tinnitus effect in AoS?
No?
Anyway, here it is for OpenSpades!