Ironsights origin
- Makrontt le nécron
- npc_citizen
- Posts: 198
- Joined: Wed Aug 27, 2008 2:01 pm
- Location: France
Ironsights origin
It may look stupid seeing how long I've been using the "cl_ironsight_test_wpn_offset" command, but I only recently discovered that a new origin can be set for ironsights .
I made several attempts, but I don't find the right syntax to change that in the weapon script, can anyone help me?
I made several attempts, but I don't find the right syntax to change that in the weapon script, can anyone help me?
I'm back baby!
Help this man^^^^^
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.
fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
'She has zero tolerance for idiots'.
fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
None of these?
Code: Select all
"ironsightoffset"
{
"x" "-13"
"y" "-5.5"
"z" "4.2"
}
- Makrontt le nécron
- npc_citizen
- Posts: 198
- Joined: Wed Aug 27, 2008 2:01 pm
- Location: France
Well, thx for the answer but I already know about these, what I mean is:
there is console commands named "cl_ironsight_test_wpn_offset_x", "cl_ironsight_test_wpn_offset_y" and "cl_ironsight_test_wpn_offset_z" that change where the camera look in ironsights mode and that are changed in the weapon script with
but there is also commands named "cl_ironsight_test_wpn_ori_offset_x", "cl_ironsight_test_wpn_ori_offset_y" and "cl_ironsight_test_wpn_ori_offset_z"
that change from where the camera look in ironsights mode and I didn't find what to put in the weapon script.
The commands works, but as they are just for test, they don't change the script.
I tried stuff like :
but nothing.
there is console commands named "cl_ironsight_test_wpn_offset_x", "cl_ironsight_test_wpn_offset_y" and "cl_ironsight_test_wpn_offset_z" that change where the camera look in ironsights mode and that are changed in the weapon script with
Code: Select all
"ironsightoffset"
{
"x" "-13"
"y" "-5.5"
"z" "4.2"
}
that change from where the camera look in ironsights mode and I didn't find what to put in the weapon script.
The commands works, but as they are just for test, they don't change the script.
I tried stuff like :
Code: Select all
"ironsightoffset"
{
"x" "-11"
"y" "-6"
"z" "4"
"xorigin" "0"
"yorigin" "-1.5"
"zorigin" "0"
}
I'm back baby!
Found the answer to your problem in the SDK docs. I got interested in this but it hit me as to why you want to define two sets offsets? Anyways here's what your looking for:
I don't know the actual values you need but according to valve these codes don't work in the script.
Source: http://developer.valvesoftware.com/wiki/Ironsights
Code: Select all
"xori" "xx"
"yori" "xx"
"zori" "xx"
Source: http://developer.valvesoftware.com/wiki/Ironsights
- Makrontt le nécron
- npc_citizen
- Posts: 198
- Joined: Wed Aug 27, 2008 2:01 pm
- Location: France
thx it works !
(this wasn't made for oc, but I suppose the oc code was based on this one)
Why I want to define another offset? Just look a the mac10 with my scripts, and you'll see that moving one point of the camera is not enough.
some pictures to explain:
see where the crosshair is?
by only rotating the weapon, the ironsights are aligned but not whit the crosshair
If I can also move the point from where the camera look, it is much more easy to use!
now I have some fixes to do with the css scripts.
(this wasn't made for oc, but I suppose the oc code was based on this one)
Why I want to define another offset? Just look a the mac10 with my scripts, and you'll see that moving one point of the camera is not enough.
some pictures to explain:
see where the crosshair is?
by only rotating the weapon, the ironsights are aligned but not whit the crosshair
If I can also move the point from where the camera look, it is much more easy to use!
now I have some fixes to do with the css scripts.
I'm back baby!
impressive
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.
fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
'She has zero tolerance for idiots'.
fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database