Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Editing Armor  (Read 1194 times)

DizzyFoxkit

  • Bay Watcher
    • View Profile
Editing Armor
« on: October 09, 2011, 11:23:12 pm »

How does the game read Armor.xml? I know that you can add in new items, but I wanna know kinda how the game goes about deciding what is default or not/what the top stats you can possible give an Item are.
Logged

silverpower

  • Bay Watcher
    • View Profile
Re: Editing Armor
« Reply #1 on: October 10, 2011, 02:16:48 am »

It's not overly picky. Here's my cheat armor to get you started.

Code: [Select]
    <armortype idname="ARMOR_NANOSUIT">
        <make_difficulty>16</make_difficulty>
        <make_price>2000</make_price>
        <body_covering>
            <head>true</head>
            <conceals_face>true</conceals_face>
        </body_covering>
        <interrogation>
            <basepower>4</basepower>
            <assault_bonus>12</assault_bonus>
            <drug_bonus>4</drug_bonus>
        </interrogation>
        <conceal_weapon_size>15</conceal_weapon_size>
        <name>Nanosuit</name>
        <shortname>Nanosuit</shortname>
        <fencevalue>3000</fencevalue>
        <professionalism>4</professionalism>
        <stealth_value>10</stealth_value>
        <armor>
            <body>100</body>
            <head>100</head>
            <limbs>100</limbs>
            <fireprotection>true</fireprotection>
        </armor>
</armortype>

I find it comes very close to how the 'real' Crysis nanosuit behaves, despite some oddities (strength mode only works during interrogation, armor mode and cloak mode are active at the same time - which is physically impossible, and your weapons are always hidden instead of just hidden when cloaked - otherwise they'll see your Liberal Weapons of Justice). You'd have to edit the C++ to do any better or balance this thing out properly - though it could stand for some tweaking already. Might do an exoskeleton (like the Stalker one) later, as well, which will probably have a more sane balancing.

ETA: Just compared my tailoring screen to my XML file. It's first-in, first-out, and entries are dropped if they're too difficult to take on with your tailoring skill. I wasn't sure at first, but my nanosuit is the second-to-last entry in the XML, and it's that way on my fully-grinded tailoring
screen as well.

Also, this is just about the max stats you can give armor, though obviously I dialed back a few things - the suit really should be more intimidating in interrogation. Most of those are attribute bonuses. Don't go above 100 armor points; as it is I suspect I'm suffering some damage from wraparound.
« Last Edit: October 10, 2011, 02:26:09 am by silverpower »
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Editing Armor
« Reply #2 on: October 10, 2011, 02:51:21 am »

I think an armor value of 20 or so is enough to give you about as much armor as tanks have. Armor is pretty powerful.
Logged

Aerogen

  • Bay Watcher
  • estou estupefato
    • View Profile
Re: Editing Armor
« Reply #3 on: October 10, 2011, 01:51:16 pm »

A Exoskeleton? Already done it:

Spoiler (click to show/hide)

It even has a laser with unlimited ammo to go along with it:

Spoiler (click to show/hide)

Just buy them from a gangster (you're going to need lots of money):

Spoiler (click to show/hide)
Logged