Asking About Weapons Stat

Started by dizzyval, December 03, 2015, 06:22:56 AM

Previous topic - Next topic

dizzyval

Well Greeting Guys  :)

i am just new in this rimworld and i kinda like this game i spent a lot of time playing this game.
well because this game can be modded.

well straight to the point i put some weapons mod and i kinda like a some weapon but it's really take a longtime in a shooting cooldown.

so i wanna change the cooldown and making it shorter can you help me how to make it shorter.

well a found the xml code for the weapons like this:

<ThingDef ParentName="BaseHumanGun">
    <defName>Gun_M40Autogun</defName>
    <label>M40 Armageddon Autogun</label>
    <description>Produced on the Hive World of Armageddon, the M40 Armageddon Pattern is an old but proven pattern Autogun that is loud, lethal and uncomplicated; a heavy-hitter for an Autogun, it fires large calibre solid slugs from a 12-round shot magazine, and can stand a phenomenal amount of abuse and keep firing. The M40 Armageddon Pattern is regularly issued to local Planetary Defence Forces and militia forces, and is lightweight in comparison to other models. It has become a staple of the arms trade in many sectors where there are uprisings as well as making inroads into frontier areas where its stopping power and robust design rapidly gains converts.</description>
<graphicData>
<texPath>Things/Item/Equipment/WeaponRanged/Imperium/Autogun_M40_Armageddon_Pattern</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
    <soundInteract>InteractRifle</soundInteract>
    <statBases>
      <MarketValue>1200</MarketValue>
      <AccuracyTouch>1</AccuracyTouch>
      <AccuracyShort>0.87</AccuracyShort>
      <AccuracyMedium>0.77</AccuracyMedium>
      <AccuracyLong>0.64</AccuracyLong>
      <RangedWeapon_Cooldown>0.30</RangedWeapon_Cooldown>
    </statBases>
    <verbs>
      <li>
        <verbClass>Verb_Shoot</verbClass>
        <hasStandardCommand>true</hasStandardCommand>
        <projectileDef>Bullet_Autogun</projectileDef>
        <warmupTicks>45</warmupTicks>
        <range>32</range>
        <soundCast>ShotHeavySMG</soundCast>
        <soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
      </li>
    </verbs>
  </ThingDef>
  <!-- ============================================== -->


well can you tell me what i must change to make the cooldown shorter.
i is betwen "ranged weapon cooldown" and "warmup tick" i guess
when in the game the weapon stat showing like this ranged weapon cooldown = 0.30 and warmup = 0.75

thanks by the way for the help

Shinzy

changing the highlighted things would do the trick
far as I recall warmup determines how fast the chargeup before they take the shot is
and cooldown determines the lenght of the circle inside the pawn that tells when they can shoot again

dizzyval

well the problem is i can't seem find the warmup stat on that xml file i just can found the ranged weapon cooldown stat.

sorry for the trouble i'm a newbie in a MOD thing :D

Shinzy

Quote from: dizzyval on December 04, 2015, 01:16:03 AM
well the problem is i can't seem find the warmup stat on that xml file i just can found the ranged weapon cooldown stat.

sorry for the trouble i'm a newbie in a MOD thing :D

Oh!
it's in the bit under the <verbs> "<warmupTicks>" there in the same file, not under the stat bases like the other one
use the ctrl+f in the notepad to search for 'warmup'

Also don't worry, it can get bit tough to spot things out of that kinda sea of text when you're not entirely sure what you're looking for ;D

RawCode

warmup is time to aim weapon

if weapon have warmup longer then melee weapon of opponent, pawn will never manage to shot.

dizzyval

Quote from: Shinzy on December 04, 2015, 02:24:30 AM
Quote from: dizzyval on December 04, 2015, 01:16:03 AM
well the problem is i can't seem find the warmup stat on that xml file i just can found the ranged weapon cooldown stat.

sorry for the trouble i'm a newbie in a MOD thing :D

Oh!
it's in the bit under the <verbs> "<warmupTicks>" there in the same file, not under the stat bases like the other one
use the ctrl+f in the notepad to search for 'warmup'

Also don't worry, it can get bit tough to spot things out of that kinda sea of text when you're not entirely sure what you're looking for ;D

owh ok ok ok Thank Shinzy :D
i just kinda confuse to calculate it the warmup tick number into the warmup/second
Well I Kinda Found The Formula to calculate Warm up stat when the tick say 45 in game stat will say 0.75 second.

they use 1 second = 60 warmup tick
that's why when the tick say 45 the in game stat will 0.75second :D

ok Thanks Again By The Way :D


Quote from: RawCode on December 04, 2015, 02:33:18 AM
warmup is time to aim weapon

if weapon have warmup longer then melee weapon of opponent, pawn will never manage to shot.

Rawcode well i kinda understand that thing by the way. i just wanna change the weapons stat where take a long time to warmup like kinda minigun that gun awsome but take a long time to warmup you will only get 1-2 shot before the enemy already beat you :D that's why i wanna make it shorter to warmup
But Thanks For The Info By The Way :D

skullywag

Also remember longer cooldown means pawns locked in place after shooting unable to do anything for longer.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

dizzyval

Quote from: skullywag on December 06, 2015, 04:29:59 AM
Also remember longer cooldown means pawns locked in place after shooting unable to do anything for longer.

Okay and the cooldown not bothering me to much just the warmup is kinda piss me off.
it's like take forever for a sniper rifle to shot.

thanks by the way :D