Jump to content

Weapon Condition


RickL

Recommended Posts

I'm trying my hand at modding, but I've ran into a little problem. If i edit my test weapon like this:

item HCB{AmmoType = HCBBolt,ImpactSound = null,MaxRange = 5,WeaponSprite = Handgun,SoundVolume = 1,MinAngle = 0.95,Type = Weapon,MinimumSwingTime = 0.5,ToHitModifier = 1.5,NPCSoundBoost = 1.5,KnockBackOnNoDeath = TRUE,Ranged = TRUE,SwingAmountBeforeImpact = 0,ProjectileCount = 1,ConditionLowerChanceOneIn = 0.1,Weight = 2,SplatNumber = 3,PushBackMod = 0.3,MaxDamage = 1,SubCategory = Firearm,ConditionMax = 999,ShareDamage = FALSE,MaxHitCount = 1,IsAimedFirearm = TRUE,DoorDamage = 1,UseEndurance = FALSE,SwingAnim = Handgun,WeaponWeight = 2,DisplayName = Hand Cross Bow,MinRange = 0.01,SwingTime = 0.5,MultipleHitConditionAffected = FALSE,SwingSound = HCBDFire,SoundRadius = 1,MinDamage = 1,SplatSize = 3,KnockdownMod = 2,SplatBloodOnNoDeath = TRUE,Icon = HCB,RunAnim = Run_Weapon2,CriticalChance = 25,        AimingPerkCritModifier = 10,        AimingPerkRangeModifier = 1.5,        HitChance = 45,        AimingPerkHitChanceModifier = 15,        AimingPerkMinAngleModifier = 0.05,        RecoilDelay = 20,        SoundGain = 1.5,        ClipSize = 1,        ReloadTime = 20,        AimingTime = 40,        BreakSound  =   PZ_MetalSnap,}
 
It does show up in game and works, until I reload the save, then the weapon shows as broken.
 
I'm not too sure, as I`m not a coder and I could not find any info about it, but it may have to do with either of these lines;
 
ConditionMax = 999,
 
or
 
ConditionLowerChanceOneIn = 0.1,
 
 
If I edit my file to be;
 
ConditionMax = 30,
 
and
 
ConditionLowerChanceOneIn = 1,
 
the weapon shows and works in game even after a reload.
 
 
What I would like to know is, what is the max condition and degrading, for weapons before I get this broken weapon thing on reloads?
Link to comment
Share on other sites

Ok... I think I figured it out.

ConditionMax =

should never exceed 100 or the object will be broken (at least in my tests).

ConditionLowerChanceOneIn =

The higher the number, the slower it degrades, ie... 

ConditionLowerChanceOneIn = 75

will last longer than

ConditionLowerChanceOneIn = 25

Please correct me if I'm wrong.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...