Jump to content
The Dark Mod Forums

Double Damage Stim/Responses


Springheel

Recommended Posts

Does anyone know why the player has two identical Damage Responses set in the player def file?

 

// The damage response
"sr_class_2" "R"
"sr_type_2" "STIM_DAMAGE"
"sr_state_2" "1"
"sr_effect_2_1" "effect_damage"
"sr_effect_2_1_arg1" "_SELF"
"sr_effect_2_1_arg2" "atdm:damage_low"

// The damage response
"sr_class_4" "R"
"sr_type_4" "STIM_DAMAGE"
"sr_state_4" "1"
"sr_effect_4_1" "effect_damage"
"sr_effect_4_1_arg1" "_SELF"
"sr_effect_4_1_arg2" "atdm:damage_low"

 

 

Won't this result in the player taking double damage from STIM_DAMAGE entities?

 

Link to comment
Share on other sites

The class numbers are different, so it shouldn't double the damage taken from STIM_DAMAGE entities. I'm not an expert in how stim-response works though. There's this wiki article that has an example similar to this one in player defs under examples section: Stim/Response Key/Values

 

I'll check the scripts and engine code tomorrow when I'll have more mind clarity (read: when I'll be sober).

'What do I care for your suffering?'

Link to comment
Share on other sites

I tested it and the player doesn't receive double damage. No idea why there are two copies, but it doesn't seem to hurt anything.

Link to comment
Share on other sites

Kinda as expected. I'll need more time to check the actual code for that - life always finds a way to keep one busy.

 

It may be due to some hard-coded stim-response part of a script or code used by the game that it needs a second Def.

'What do I care for your suffering?'

Link to comment
Share on other sites

maybe ones for stim damage (gas from a gas arrow cloud) and the other is for drowning damage. (lack of air under water). both would be self inflicted.

 

No, they're both identical. They can't be for different types of stims.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...