0 of 0

File information

Last updated

Original upload

Created by

Di Crash

Uploaded by

DiCrash

Virus scan

Safe to use

165 comments

  1. DiCrash
    DiCrash
    • member
    • 87 kudos
    Locked
    Sticky
    Compatible with Phantom Liberty and 2.02 game version!
  2. Damned64
    Damned64
    • member
    • 0 kudos
    Locked
    Sticky
    Be aware that the mod needs to be disabled in some mission.
    On in particular is "Chippin' in". (you'll understand, i'm not gonna spoil ;) )

    However, excellent mod, greatly enhance gameplay when, like me, you play it full sim / realism.
    Thanks for the mod, OP.

  3. TheRealGibbon
    TheRealGibbon
    • premium
    • 34 kudos
    If anyone is interested, I made a few modifications to this to suit my preferences to fit into a hardcore run.

    TLDR: you are less likely to die, but will still get into really bad situations if you crash or someone crashes into you.


    • no damage in car/bike collisions when the delta speed is under 15km/h (prevents taking damage when you hit a pedestrian)
    • minimum delta speed required for bleed chance to activate
    • damage clamped at 80% of player's max health, and no instant deaths, applies to car, bike, walking


    Recommended settings:

    Car speed: 100
    Car random: 10
    Car bleed: 30
    Bike speed: 80
    Bike random: 20
    Bike bleed: 40
    Walker speed: 50
    Walker random: 20
    Walker bleed: 50
    public final static func WalkerDeathCalculation(player: wref<PlayerPuppet>, vehicleSpeed: Float) -> Void {

            let settings = new DeadlyRoadsSettings();
            let rand: Float = RandRangeF(0.0, settings.walkerDamageRand);
            let damage = vehicleSpeed + rand;

            let health: Float = GameInstance.GetStatPoolsSystem(player.GetGame()).GetStatPoolMaxPointValue(Cast<StatsObjectID>(player.GetEntityID()), gamedataStatPoolType.Health);
            let maxDamage: Float = health * 0.8; // Cap damage at 80% of max health

            DeadlyRoads.CrashDamage(player,  MinF(health * damage / settings.walkerDeathSpeed * 0.6, maxDamage));
           
            if damage >= (settings.walkerDeathSpeed * 0.15) {
                DeadlyRoads.CrashBleeding(player, settings.walkerBleedingChance);
            }
        }

        public final static func automobileDeathCalculation(player: wref<PlayerPuppet>) -> Void {

            let settings = new DeadlyRoadsSettings();
            let rand: Float = RandRangeF(0.0, settings.automobileDamageRand);
            let damage = player.deltaSpeed + rand;

            if player.deltaSpeed < 15.0 {
                // speed difference too low to actually matter
                return;
            }
       
            let health: Float = GameInstance.GetStatPoolsSystem(player.GetGame()).GetStatPoolMaxPointValue(Cast<StatsObjectID>(player.GetEntityID()), gamedataStatPoolType.Health);
            let maxDamage: Float = health * 0.8; // Cap damage at 80% of max health
           
            if PlayerDevelopmentSystem.GetData(player).IsNewPerkBoughtAnyLevel(gamedataNewPerkType.Body_Right_Milestone_1) {

                DeadlyRoads.CrashDamage(player, MinF(health * damage / settings.automobileDeathSpeed * 0.6, maxDamage));

            } else {

                DeadlyRoads.CrashDamage(player, MinF(health * damage / settings.automobileDeathSpeed, maxDamage));
            };
           
            if damage >= (settings.automobileDeathSpeed * 0.3) {
                DeadlyRoads.CrashBleeding(player, settings.automobileBleedingChance);
            }
        }

        public final static func motorcycleDeathCalculation(player: wref<PlayerPuppet>) -> Void {

            let settings = new DeadlyRoadsSettings();
            let rand: Float = RandRangeF(0.0, settings.motorcycleDamageRand);
            let damage = player.deltaSpeed + rand;

            if player.deltaSpeed < 15.0 {
                // speed difference too low to actually matter
                return;
            }
           

            let health: Float = GameInstance.GetStatPoolsSystem(player.GetGame()).GetStatPoolMaxPointValue(Cast<StatsObjectID>(player.GetEntityID()), gamedataStatPoolType.Health);
            let maxDamage: Float = health * 0.8; // Cap damage at 80% of max health

            if PlayerDevelopmentSystem.GetData(player).IsNewPerkBoughtAnyLevel(gamedataNewPerkType.Body_Right_Milestone_1) {

                DeadlyRoads.CrashDamage(player, MinF(health * damage / settings.motorcycleDeathSpeed * 0.6, maxDamage));

            } else {

                DeadlyRoads.CrashDamage(player, MinF(health * damage / settings.motorcycleDeathSpeed, maxDamage));
            };
           
            if damage >= (settings.motorcycleDeathSpeed * 0.3) {
                DeadlyRoads.CrashBleeding(player, settings.motorcycleBleedingChance);
            }
        }
    1. DeepDarkKing
      DeepDarkKing
      • premium
      • 0 kudos
      so how do we use this code
  4. J0kinCl0wn
    J0kinCl0wn
    • supporter
    • 2 kudos
    Yo go into DeadlyRoads.reds and replace

    DeadlyRoads.CrashDamage(player, health * damage / settings.automobileDeathSpeed * 0.6);

    to

    DeadlyRoads.CrashDamage(player, health * damage / settings.automobileDeathSpeed * 0.1);

    then go into the settings.reds and replace 

    @runtimeProperty("ModSettings.mod", "Deadly Roads")
    @runtimeProperty("ModSettings.category", "DRAutomobileCategory")
    @runtimeProperty("ModSettings.displayName", "DRAutomobileDeathSpeedName")
    @runtimeProperty("ModSettings.description", "DRAutomobileDeathSpeedDesc")
    @runtimeProperty("ModSettings.step", "10.0")
    @runtimeProperty("ModSettings.min", "0.0")
    @runtimeProperty("ModSettings.max", "100.0")
    let automobileDeathSpeed: Float = 80.0;

    to this

    @runtimeProperty("ModSettings.mod", "Deadly Roads")
    @runtimeProperty("ModSettings.category", "DRAutomobileCategory")
    @runtimeProperty("ModSettings.displayName", "DRAutomobileDeathSpeedName")
    @runtimeProperty("ModSettings.description", "DRAutomobileDeathSpeedDesc")
    @runtimeProperty("ModSettings.step", "1.0")
    @runtimeProperty("ModSettings.min", "0.0")
    @runtimeProperty("ModSettings.max", "300.0")
    let automobileDeathSpeed: Float = 200.0;


    change the settings in game and boom ur gtg Chombatta!
    1. TheDudeAbides157
      TheDudeAbides157
      • member
      • 3 kudos
      What is this supposed to accomplish?
    2. Yotanou
      Yotanou
      • premium
      • 0 kudos
      +1
    3. ODBastard
      ODBastard
      • premium
      • 17 kudos
      What is this supposed to accomplish?
      It's pretty straightforward if you actually read it.
  5. CannedRat
    CannedRat
    • supporter
    • 0 kudos
    Nice mod. 

    Just a suggestion that might add some interesting realisms dimensions.  I was wondering if its possible that after an accident there is a percentage chance of waking up at the nearest RipperDoc who charges you money for the revival.  Or potentially wake up in the back of a Scav van or dumped in an alley naked, robbed and with half your chrome ripped out.   It would be nice if you could get arrested by the cops but I understand there is no existing implementation of any of that functionality. 

    That would make bad driving decisions a much higher risk activity.
  6. geoffreyhdt1
    geoffreyhdt1
    • member
    • 0 kudos
    Not sure if somebody reported it already, but with this mod, in the last mission with Rogue, when the AV gets hit, it's inst-death for V, even if infinite health or god mode installed. Most likely it is considered as a deadly collision...
    Took me a while to figure this one out!
    1. echoglenn
      echoglenn
      • member
      • 3 kudos
      Oh. My. God. Thank you for this.

      Hearing this is also what causes instantly dying when Takemura jacks into your bio-monitor in Act II. 

      I hope OP or someone can make this mod be off during these two missions. 
  7. iehxr14
    iehxr14
    • member
    • 0 kudos
    mod is nice and all but how do I deactivate death from car crash. Is pretty lame for my modded cars that go 600km/h
  8. brad1984mason
    brad1984mason
    • premium
    • 0 kudos
    This mod is awesome, but seems to ignore when you have cyberware or perks that make you immune to knockdowns. Like now we have a lot more motivation to be immune to knockdowns because we can die from crossing the road and getting hit by a car, and that's great! But when we get that cyberware or perk that *says* we're immune to knockdowns no, we're really not, and we can still die crossing the road getting hit by a car.
  9. TheDudeAbides157
    TheDudeAbides157
    • member
    • 3 kudos
    So this doesn't seem to be compatible with the Car Modification Shop? At least personally whenever I use that mod my cars and bikes sometimes lose their mass and become like rubber so that if I hit an obstacle that's supposed to break my vehicle just hits and stop or even bounces off. Kinda negates the purpose of this mod.
    1. skybellrock
      skybellrock
      • member
      • 2 kudos
      You are 100% correct. However, this can be fixed by putting Deadly Roads lower in load order. :)
    2. TheDudeAbides157
      TheDudeAbides157
      • member
      • 3 kudos
      No it wouldn't... whichever one loads first takes precedence. It's weird though, I have both installed in my current playthrough and I haven't had that weird bouncy car problem in my newest playthrough.
    3. skybellrock
      skybellrock
      • member
      • 2 kudos
      It helped for me to make Car Modification Shop have priority. Made it go from 75% bounce + when direct to 20% bounce only when hitting something sideways at 45 degree angle. It seems turning bleed effect off might help it further.
    4. TheDudeAbides157
      TheDudeAbides157
      • member
      • 3 kudos
      I just ditched the modification shop. It's helpful but after the third time Beast bounced off a tree during the badlands race I was just fed up with the whole thing.
    5. TheDudeAbides157
      TheDudeAbides157
      • member
      • 3 kudos
      Well I got rid of the car modification shop and it's not happening as often but I'm still occasionally seeing this issue with destructible obstacles being indestructible when I'm travelling at speed, is it related to this mod or is something else causing it? Because I can't figure out how to even test what the problem is since it's not consistent enough.

    6. skybellrock
      skybellrock
      • member
      • 2 kudos
      I am not sure what is causing it but it happened even with deadly roads removed and only Car modification shop for me. So IDK if it is CMS or if it is a vanilla issue or what.
  10. skybellrock
    skybellrock
    • member
    • 2 kudos
    With car modification shop in conjunction with this mod there is a bug where the car bounces instead of crashes, also when the car is not modified by the other mod. The crashes, usually at an angle, are not counted as crashes as the car takes no damage and other mods like TANSTAAFL's crash payment system reveals that it doesn't count the de-celeration but does register the car hit something. Treated as a 0KM/H crash. Please fix.
  11. shyqset
    shyqset
    • supporter
    • 1 kudos
    hello, thanks for the mod :) during a car accident there is a flashing red filter which remains for quite a long time after the accident. I would like to know if it is possible to remove it? I don't know if it's the mod or something else that's causing this.
    1. skybellrock
      skybellrock
      • member
      • 2 kudos
      The filter comes from the bleeding effect. You can configure percentage chance to 0 in settings to disable.
    2. shyqset
      shyqset
      • supporter
      • 1 kudos
      Hello, thanks for answer. I don't found "blinding effect", I've "blinding probability" but it change how i've accident no? I search on vanilla settings but don't found too :( Can you tell me where you find this please? Thanks
    3. TheDudeAbides157
      TheDudeAbides157
      • member
      • 3 kudos
      It's the bleeding effect, when you crash hard enough to take damage there's a chance you'll get the status effect "Bleeding" which does small amounts of damage over time. In the Deadly Roads settings each of the categories (Driving cars, driving motorcycles, walking) has a slider labelled, "Bleeding chance". Whatever that is set to is the percentage chance that the crash will apply the effect to you.  Since it's an annoying effect I personally keep he Bleeding Chance for driving a car set to 0%.
  12. Jimmbalaya
    Jimmbalaya
    • member
    • 44 kudos
    I really love this mod, been using it for 2 playthroughs now. My only criticism is that it's extremely goofy to be in a well-armored car and still take damage from low-speed collisions or even more minor impacts. I've tried various settings but haven't found a satisfying solution. Otherwise, all is good and I look forward to your future work.