Jump to content

Search the Community

Showing results for tags 'notabug'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. The FastHealer and SlowHealer traits affect how much time it takes to heal a fracture caused by landing from a high distance. float f2 = Rand.Next(50, 80); if (this.Traits.FastHealer.isSet()) { f2 = Rand.Next(30, 50); } else if (this.Traits.SlowHealer.isSet()) { f2 = Rand.Next(80, 150); } switch (SandboxOptions.instance.InjurySeverity.getValue()) { case 1: { f2 *= 0.5f; break; } case 3: { f2 *= 1.5f; } } this.getBodyDamage().getBodyPart(BodyPartType.FromIndex(Rand.Next(BodyPartType.ToIndex(BodyPartType.UpperLeg_L), BodyPartType.ToIndex(BodyPartType.Foot_R) + 1))).setFractureTime(f2); EDIT: FastHealer and SlowHealer ARE factors in how much time it takes to heal a fracture caused by a vehicle accident. It's just higher up in the code than where I was looking! But FastHealer and SlowHealer aren't factors in how much time it takes to heal a fracture caused by a vehicle accident. In the BaseVehicle class: else if (f2 > 50.0f && Rand.Next(10) == 0 && SandboxOptions.instance.BoneFracture.getValue()) { if (bodyPart.getType() == BodyPartType.Neck || bodyPart.getType() == BodyPartType.Groin) { bodyPart.generateDeepWound(); } else { bodyPart.setFractureTime(Rand.Next(Rand.Next(10.0f, f2 + 10.0f), Rand.Next(f2 + 20.0f, f2 + 30.0f))); } } There is no reference to FastHealer or SlowHealer.
×
×
  • Create New...