OpenXcom Forum

OpenXcom => Suggestions => Topic started by: Dioxine on August 27, 2014, 01:42:07 pm

Title: [Tiny Request] Psi Strength dependant weapon damage
Post by: Dioxine on August 27, 2014, 01:42:07 pm
Would there be a good soul to get into the code some sort of psiStrengthApplied flag, akin to the strengthApplied flag (independant but both can be enabled if someone wished), that'd add (if enabled) soldier's Psi Strength to the weapon's damage? I think this has a lot of modding potential, especially for those who want to ditch Mind Control altogether but still want the Psi to have some influence on the game... also for TFTD mods, where spooky creatures stunning people with the power of their mind (or killing them, or setting them on fire, Lovecraft bonanza) are to bexpected... also for Fantasy OXCom. And of course I'd like to make a lot of weapons based on this for my mod. Pretty please?
Title: Re: [Tiny Request] Psi Strength dependant weapon damage
Post by: Solarius Scorch on August 27, 2014, 02:55:15 pm
+1~!
Title: Re: [Tiny Request] Psi Strength dependant weapon damage
Post by: Falko on August 27, 2014, 04:43:21 pm
think big :)
replace strength applied with this:
Code: [Select]
    addpower:
      strength: 100
with a default of:
Code: [Select]
    addpower:
      tu: 0
      stamina: 0
      health: 0
      bravery: 0
      reactions: 0
      firing: 0
      throwing: 0
      strength: 0
      psiStrength: 0
      psiSkill: 0
      melee: 0
so ypu can change "dps" like:
throwing spear 40% of tjrowing ability+50%strength + spear power = damage
knife 30% of melee ability+20%strength +30% reactions + knife power = damage
+ perhaps morale/wounds/fatal wounds?)
so any weapon: wounds * -70 % power = you loose dps (logically  would be a change in accuracy/reaction/... but its in the end its the same)
Title: Re: [Tiny Request] Psi Strength dependant weapon damage
Post by: moriarty on August 27, 2014, 06:06:51 pm
Falko, I like your way of thinking.

perhaps it would also be possible to add a possible "minimum" value for each skill/ability? so some weapons (or items) can only be used if "skill">"minimumSkill"?
Title: Re: [Tiny Request] Psi Strength dependant weapon damage
Post by: Dioxine on August 27, 2014, 07:11:57 pm
I can think big, Falko, but better a small (but momentous) feature implemented than a big one that's just pipe dream (and this forum's section is full of pipe dreams) :) The question is, Will You Do It? :)

(and of course I agree with both of you with what would be perfect )
Title: Re: [Tiny Request] Psi Strength dependant weapon damage
Post by: Falko on August 27, 2014, 07:22:19 pm
i like a general approach that gives flexibility with a bit of cost to ruleset readability
if i would be responsible changes "just for mods" would always be in a similar way like above
but i am not responsible and wait with new oxc - c++ coding projects until there is some chance there will be new (non tftd related) features added and then i finish my gui improvment stuff first
in complexity it cant be that hard stats-code already exists there are only few lines in the code that calculate the damage iirc
regardless i am also allowed to have "pipe dreams" ..