Author Topic: Modding Psi Usage?  (Read 7323 times)

Offline Murmur

  • Sergeant
  • **
  • Posts: 30
    • View Profile
Modding Psi Usage?
« on: April 23, 2014, 05:52:26 am »
Is there any way to mod the aliens usage of psi to bring it in line with how it works for the humans? I'd like it if a member of the alien team had to actually see a member of my team for them to be vulnerable to psi-attacks, as opposed to the 'see once, forever vulnerable' way it has always been.

If this is at all possible, I'd really appreciate someone pointing me in the right direction.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Modding Psi Usage?
« Reply #1 on: April 23, 2014, 09:35:31 am »
the humans psi guys can stay in the skyranger and dont have to see the alien they control
i may be wrong but if i remember correctly the aliens can see all humans if they can see at least one human - dont know ig thats the case in openxcom or not / and if the AI takes that into account

Offline Murmur

  • Sergeant
  • **
  • Posts: 30
    • View Profile
Re: Modding Psi Usage?
« Reply #2 on: April 23, 2014, 09:45:41 am »
Yeah I think the way it works is once a human is seen by any alien, that human can be psy attacked whether they are still in view of any aliens or not.

I'd like to be able to change it so a human has to be in sight of any alien for them to be psi attacked. I don't mean just in sight of the one doing the attacking. I'd like it to work just like it does for the humans.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Modding Psi Usage?
« Reply #3 on: April 25, 2014, 05:22:56 am »
Yeah I think the way it works is once a human is seen by any alien, that human can be psy attacked whether they are still in view of any aliens or not.

I'd like to be able to change it so a human has to be in sight of any alien for them to be psi attacked. I don't mean just in sight of the one doing the attacking. I'd like it to work just like it does for the humans.

Seconded!
Well, at least for humans; they are novice psions after all, and psionics kinda break the late game (which has some nice flavour, I admit). Line-of-sight only psionics would make things more exciting, so I would like to have this option.
As for the aliens, I think this change wouldn't affect them too terribly - at least the Ethereals, since they're all psionics.

Offline Murmur

  • Sergeant
  • **
  • Posts: 30
    • View Profile
Re: Modding Psi Usage?
« Reply #4 on: April 25, 2014, 05:31:23 am »
Ideally, I'd like to have 3 options. One, works just like it does now: Psi is limited to squad sight for humans, magic all seeing eye after first contact for aliens. Two: Psi is limited to squad sight for humans and aliens, and Three: Psi only works on direct line of sight for both humans and aliens.

I've looked at the source code and I think I see how to do option three, but option two still eludes me.

Actually now that I'm thinking about it, a fourth option could limit psi to direct line of sight for humans, and limit it to squad sight for the aliens. Call it a limitation of the psi-amp maybe. That would probably be better balanced, as you could no longer sit back in the sky ranger and puppet master the entire battlefield.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Modding Psi Usage?
« Reply #5 on: April 25, 2014, 07:34:55 pm »
We've looked into adding a line-of-sight-only flag to weapon rulesets, but it's quite a headache AI-wise.

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Modding Psi Usage?
« Reply #6 on: April 25, 2014, 07:58:25 pm »
well, how do the aliens "keep track" of player units psionics-wise anyway? it's obviously something in the code already, because they don't fire any weapon at units they don't see. so whatever mechanic the game uses (do the discovered xcom soldiers get some kind of flag?), it should be possible to simply switch it off, to prevent the aliens from "psi-cheating" :)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Modding Psi Usage?
« Reply #7 on: April 26, 2014, 01:32:29 am »
We've looked into adding a line-of-sight-only flag to weapon rulesets, but it's quite a headache AI-wise.

How about making an invisible projectile with like 1000% accuracy that would carry the psionic effect?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Modding Psi Usage?
« Reply #8 on: April 26, 2014, 08:38:43 am »
if you don't want aliens to "keep track" of your units, simply lower their intelligence to 0 or 1. the intelligence stat refers to how quickly they "forget" where you are.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Modding Psi Usage?
« Reply #9 on: April 28, 2014, 03:24:45 am »
Warboy has added a UFOextender-style "Psi limited to LOS" ruleset now. :)

Offline Murmur

  • Sergeant
  • **
  • Posts: 30
    • View Profile
Re: Modding Psi Usage?
« Reply #10 on: April 28, 2014, 03:45:54 am »
I was so excited when I saw that. Much appreciated!