Jump to content

Noob Question


bat21

Recommended Posts

data/units/weapons/u_addons.xml, look for the lines pertaining to each type of scope/iron sight and adjust to your wants.

Example, to change the M8 Combat Sight, look for the following:

<unit type="weapon" name="m8_combatsight$name_ext" slot="12">

<script_class name="hud" class="HudScope"/>

<model file="/weapons/addons/m8_combat_sight/m8_combat_sight$name_ext.xml"/>

<stats block="addon_data">

<var name="anim_name" value="combatsight"/>

<var name="hud_movie_name" value="crosshair_combatsight_m8"/>

<var name="fov_halfway" value="35"/>

<var name="fov_zoomed" value="35"/>

<var name="has_hud" value="true"/>

<var name="zoom_mouse_sensitivity" value="0.2"/>

<var name="sway_amp" value="0.1"/>

<var name="sway_lerp" value="0.4"/>

<var name="speed_to_halfway" value="10.0"/>

<var name="speed_to_unzoomed" value="9.0"/>

</stats>

</unit>

The bold line is the one you want to edit. Replace 35 with something like 60 if you want to lower the zoom, or down to 5 to match the sniper rifle.

EDIT: To adjust the pistols, or any other weapon not found in the u_addons.xml, pull up the following file:

data/sb_templates/sb_addon_data.xml

Open this file and adjust the following line:

<var name="fov_zoomed" type="number" default="40"/>

Change that 40 to whatever you would like. Hope this helps (hope I'm right too, been a while since I've modded this game).

Edited by Nutlink
Link to comment
Share on other sites

  • 2 weeks later...

EDIT: To adjust the pistols, or any other weapon not found in the u_addons.xml, pull up the following file:

data/sb_templates/sb_addon_data.xml

Open this file and adjust the following line:

<var name="fov_zoomed" type="number" default="40"/>

Change that 40 to whatever you would like. Hope this helps (hope I'm right too, been a while since I've modded this game).

I'm just learning how to mod files so work with me here. If you make adjustments to any file in in the "data/sb_templates/ directory where would you save this file? In your "local" file in your GRAW install directory or somewhere else.

I have tried this already and when I take my adjusted file "sb_addon_data.xml" and create a directory called sb_templates within my "local" directory in my installed GRAW directory my game crashes when I try to play Multiplayer GRAW.

Any Ideas?

Link to comment
Share on other sites

The anti-cheat will prevent you from being able to use any sort of mod, from weapon mods to skins, unless the server has the exact same mod as you. Also, when installing a mod, make sure you have it in the Local/English directory. So your modified sb_addon_data.xml would go to Local/English/sb_template/sb_addon_data.xml.

Hope that helps!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...