Welcome, Guest. Please login or register. Did you miss your activation email?


This section is for SMOD TUTORIALS & GUIDES ONLY.
You may create a new topic in the appropriate area to share your tutorial. If you post anything off-topic here you will be temp-banned. This is so we don't hassle the moderators too much, they are volunteers.

If you need help with a tutorial, post a reply in its thread . Do not start a new topic for help here!

Author Topic: SMOD Ironsight adjustment scripts  (Read 748 times)

0 Members and 1 Guest are viewing this topic.

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
SMOD Ironsight adjustment scripts
« on: May 23, 2020, 08:21:41 PM »
Here are the ironsight_cfg scripts that somebody created, somewhere, at sometime.


1.) extract these 3 cfg files into .../<yoursmodfolder>/cfg

2.) Get in game and pull out the weapon you want to adjust.

3.) open dev console, type:
Code: [Select]
exec ironsite_cfg
It will automatically enable the following:
Viewmodel adjust mode.
Crosshair on
developer mode on
Increases time that developer messages are displayed on screen.
Outputs instructions to developer console.

BINDS viewmodel adjust keys to the NumPad (keypad):
Keypad 4 = move left
Keypad 6 = move right
Keypad 7 = small move left
Keypad 9 = small move right
Keypad / = move up
Keypad 0 = move Down
Keypad 8 = small move up
Keypad 2 = small move down
Keypad + = move foward
Keypad - = move back
Keypad 1 = swing right
Keypad 3 = swing left
Page Up = roll right
Page Down = roll left
Keypad 5 = Display coordinates

4.) Use the keys to adjust your model until you have it lined up where you want it. Generally you want the front post aligned with rear sight and both of those on the crosshair. This will vary from model to model of course, use your judgement.

5.) When the model is where you want it, press Keypad 5.
This will output code to the console.

6.) You basically copy these outputs into your customweapon script in this section:
Code: [Select]
        "right" "0.0"
        "up" "0.0"
        "forward" "0.0"
        "fov" "0"
        "pitch" "0.0"
        "yaw" "0.0"
        "roll" "0.0"

7.) When you are all done, open the dev console and type:
Code: [Select]
exec ironsite_cfg_off
This unbinds the vmodel adjust keys, plus turns off the viewmodel adjust mode, etc.


SimplePortal 2.3.6 © 2008-2014, SimplePortal