Thread: Tweaking Crisis
View Single Post
Old 01-12-08, 04:02 PM   #39
NeonSamurai
Ocean Warrior
 
Join Date: Jan 2002
Location: Socialist Republic of Kanadia
Posts: 3,044
Downloads: 25
Uploads: 0


Default

Ok to remove the pistols akimbo thing and go to only one pistol you need to do a few edits of the xml files. first off..

\Scripts\Entities\Items\XML\DUALSocom.xml should look like this

Code:
<item name="DualSOCOM" class="PlayerFeature">
    <params>
        <param name="giveable" value="0" />
        <param name="selectable" value="0" />
        <param name="droppable" value="0" />
        <param name="unique" value="1" />
        <param name="mass" value="0" />                
    </params>
    <features>
        <feature name="dualSOCOM" noPickUp="0"/>
    </features>    
</item>
Second in the following file (at the begining of it) you should do a little change
\Scripts\Entities\Items\XML\Weapons\SOCOM.xml
Code:
<item name="SOCOM" class="Weapon" category="small" priority="0">
    <params>
        <param name="giveable"         value="1" />
        <param name="selectable"     value="1" />
        <param name="pose"                 value="pistol" />
        <param name="mass"                value="10" />
        <param name="melee_attack_firemode"        value="melee" />
        <param name="raiseable"        value="true" />
        <param name="raise_distance" value="0.70" />
        <!--<param name="attach_to_back" value="1" />
        <param name="bone_attachment_01" value="pistol_attachment_right" />
        <param name="bone_attachment_02" value="pistol_attachment_left" />-->
        <dualwield>
            <suffix value="akimbo_" />
        </dualwield>
    </params>
the change is at the <dualweild> area

This will make the pistol act like a normal weapon. you can get ammo from droped pistols but you will only ever wield one pistol. It also behaves exactly like if you had droped the extra one.

Note that the code changes i did probably could have been a bit cleaner, but it gets the job done with out any issues that i have encountered. Im pretty sure ive included all the changes for this but I might have forgotten an edit.
NeonSamurai is offline   Reply With Quote