Results 1 to 7 of 7

Thread: Weapon explosion/impact physics

  1. #1

    Default Weapon explosion/impact physics

    How does the game engine decide if a soldier gets knocked off his feet, or even blasted away, by a particular projectile or explosion? What attributes, in what files, influence how far a soldier flys after getting hit by an explosion?

  2. #2

    Default Re: Weapon explosion/impact physics

    Anyone?

  3. #3
    Man-at-Arms Member Dave1984's Avatar
    Join Date
    Jun 2006
    Location
    Staffordshire
    Posts
    255

    Default Re: Weapon explosion/impact physics

    descr_effect_impacts and descr_artillery_effects possibly, I haven't really tested them.

  4. #4
    Insanity perhaps is inevitable Member shifty157's Avatar
    Join Date
    Jan 2005
    Posts
    1,145

    Default Re: Weapon explosion/impact physics

    Its the velocity of the projectile or the mass of the mount for cavalry.

  5. #5

    Default Re: Weapon explosion/impact physics

    The value you are looking for is in the file descr_area_effects.xml. The number you want to change is <impulse_force>425.0</impulse_force>. This determines how they are knocked on their butts (,but this value does not effect how many soldiers die in the explosion, just how much they are thrown around).

    I have tested a lower number (makes the men just lean away from the explosion) and a lot higher (4000 throws everyone in the blast radius into the air).

    Hint- open the .xml file with a text editor (note pad)

    Good luck, keep those questions coming.

  6. #6

    Default Re: Weapon explosion/impact physics

    Thanks itkotw, i was just searching around for that force constant and you seem to have found it =). I understand that the damage of the projectile is set in the units description, the SFX for the hit is set in the impact effects and the force of the hit on surrounding units is set on the area_effects xml like you just said =).

    One more thing i want to know, is it possible to make this force shockwave propagate slowly over an area?

  7. #7
    Member Member mor dan's Avatar
    Join Date
    Nov 2006
    Location
    in the good ol' US of A. my brothr is in the Airforce, and i am proud of what he does for his country.
    Posts
    122

    Default Re: Weapon explosion/impact physics

    Quote Originally Posted by itkotw
    The value you are looking for is in the file descr_area_effects.xml. The number you want to change is <impulse_force>425.0</impulse_force>. This determines how they are knocked on their butts (,but this value does not effect how many soldiers die in the explosion, just how much they are thrown around).

    I have tested a lower number (makes the men just lean away from the explosion) and a lot higher (4000 throws everyone in the blast radius into the air).

    Hint- open the .xml file with a text editor (note pad)

    Good luck, keep those questions coming.


    that sounds hellah cool... i might have to do that for some fun screenies.
    "Signatures tell the forum who you are. If you make jokes, you are a clown. If you leave serious quotes, you take things seriously. If you challenge the owner of the forums, you are a malcontent.

    The Owners are like a government. If you make jokes, they laugh. If you make serious quotes, they keep an eye on you, while probing public opinion on your remarks. If you challenge them, you are a threat." - me on the SWG forums before they censored my sig

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO