RickL Posted February 22, 2015 Share Posted February 22, 2015 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 More sharing options...
Kronn Kohr Posted February 22, 2015 Share Posted February 22, 2015 That's 1 condition point lost per use, so, the pistol would break after 30 shots, I think. Edit: Rereaded, I've seen my comprehension fail, sorry. Don't know what are the min/max values. Link to comment Share on other sites More sharing options...
RickL Posted February 23, 2015 Author Share Posted February 23, 2015 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 = 75will last longer thanConditionLowerChanceOneIn = 25Please correct me if I'm wrong. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now