Jump to content

Experience values


Wulf2k

Recommended Posts

Roughly the XP gain explained what I’ve read in the code gibberish:

 

Rookie: 0

Squaddie: 90

Corporal: 300

Sergeant: 510

Lieutenant: 745

Captain: 1100

Major: 1560

Colonel: 2150

 

m_iPsiXPLevels=0

m_iPsiXPLevels=50

m_iPsiXPLevels=120

 

Kill: 30, 60 if lower rank than Lieutenant and alien is of higher rank like Chryssalid, Sectoid Commander, Ethereal, Uber Ethereal, Elite Muton, Sectopod, or Muton Berserker

OTS trait increases Kill XP by 25%

 

Mission Complete: 60, 90 if soldier of lower rank hadn’t seen yet any better aliens

Special Mission Complete: 120, 180 if soldier of lower rank hadn’t seen yet any better aliens

Zero Dead Soldier Bonus: 20

 

Resist Psi Attack: 10

Successful Mindfray: 20

Successful Inspiration: 30

Assist Psi Inspiration: 30

Successful Psi Panic: 30

 

Better don’t quote me on that for correctness but should be better than no idea at all.

Link to comment
Share on other sites

All info is from XComGame.upk\XGTacticalGameCore

 

 

  Reveal hidden contents

 

Link to comment
Share on other sites

Very interesting.

 

Odd that the non-better-alien function uses a 1.25 multiplier, then the better-alien function uses a hardcoded 75.

 

also...

 

bCheckSoldierRank = true;

if(bCheckSoldierRank)

{

isLesserRank = iRank < 4;

}

else

{

isLesserRank = true;

}

 

 

I assume that was left in from some sort of testing period, but it's not exactly efficient to force a true, then check if it's true. Efficiency, people!

Edited by Wulf2k
Link to comment
Share on other sites

That's why I prefer modifying only setting file like DefaultGameCore. You can easily get lost in such code madness which you can't change and test as easily. It's still nice to know though that there is more than just getting XP for kills. :)

Maybe some hardcore coder will make some decent changes and fixes one day of the mess here and there.

Link to comment
Share on other sites

  On 11/7/2012 at 11:29 PM, fys said:

Mission Complete: 60, 90 if soldier of lower rank hadn’t seen yet any better aliens

Special Mission Complete: 120, 180 if soldier of lower rank hadn’t seen yet any better aliens

I don't see anything limiting it to the first encounter. If they've got 'seenbetteralien' as true, and they're < rank 5, they should get the XP bonus every time.

 

Edit:

 

My notes to pseudocode the XP gains:

 

  Reveal hidden contents

 

Edited by Wulf2k
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...