PunkBuster
New member
- Messages
- 216
- Points
- 0
Oh hai. I am looking into removing the minimum 5% chance. What I had before was this:
case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) sc_def = 100 - ( 100 - st->int_* 8 / 10 ); sc_def = max(sc_def, 5); // minimum of 5% break;
Then I removed the third line and I got this:
case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) sc_def = 100 - ( 100 - st->int_* 8 / 10 ); break;
I am using a character with over 170 int and still get inflicted. Does anything else have to be edited?
Also, I am looking into reducing the duration of all GX poisons, but I've no idea which section to edit.
*edit*
It seems the src is broken, using the code that kerbii provided made it work properly.
case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) sc_def = 100 - ( 100 - st->int_* 8 / 10 ); sc_def = max(sc_def, 5); // minimum of 5% break;
Then I removed the third line and I got this:
case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) sc_def = 100 - ( 100 - st->int_* 8 / 10 ); break;
I am using a character with over 170 int and still get inflicted. Does anything else have to be edited?
Also, I am looking into reducing the duration of all GX poisons, but I've no idea which section to edit.
*edit*
It seems the src is broken, using the code that kerbii provided made it work properly.
Last edited by a moderator: