Is it possible, that the XP given to you on every kill is depending on your level and the enemies level?
e.g.
You are level 8 and kill someone on level 2 u will get less XP, than you are level 2 and kill someone on level 8.
[SUG] XPs given on every Kill
Moderator: Forum Moderator
-
- WC3Mods Donor
- Posts: 223
- Joined: Thu Mar 09, 2006 6:05 pm
- Location: Germany
- Contact:
-
- WC3Mods Donor
- Posts: 223
- Joined: Thu Mar 09, 2006 6:05 pm
- Location: Germany
- Contact:
-
- WC3Mods Donor
- Posts: 223
- Joined: Thu Mar 09, 2006 6:05 pm
- Location: Germany
- Contact:
Maybe something like this
--- Edit ---
I made a mistake in calculating the XPs
Above u can find the code i wanna try tomorrow
If i'm right it should work.
Someone on level 0 who killed someone on level 10 would get 3 times more xps than normal.
Otherway someone who killed someone 1 level less than himself would get maximum 90 percent of the xps
Code: Select all
new Float:xpkillmultiplier = 0.0;
if ( p_data[iAttacker][P_LEVEL] < p_data[iVictim][P_LEVEL] )
{
xpkillmultiplier = ( p_data[iVictim][P_LEVEL] - p_data[iAttacker][P_LEVEL] ) * 0.3;
}
else if ( p_data[iVictim][P_LEVEL] < p_data[iAttacker][P_LEVEL] )
{
xpkillmultiplier = 0.9 / ( p_data[iAttacker][P_LEVEL] - p_data[iVictim][P_LEVEL] );
}
else
{
xpkillmultiplier = 1.0;
}
I made a mistake in calculating the XPs
Above u can find the code i wanna try tomorrow
If i'm right it should work.
Someone on level 0 who killed someone on level 10 would get 3 times more xps than normal.
Otherway someone who killed someone 1 level less than himself would get maximum 90 percent of the xps

-
- WC3Mods Donor
- Posts: 223
- Joined: Thu Mar 09, 2006 6:05 pm
- Location: Germany
- Contact:
-
- WC3Mods Donor
- Posts: 223
- Joined: Thu Mar 09, 2006 6:05 pm
- Location: Germany
- Contact:
ok...
made some tests
( (victim level - attacker level) / 10 ) + 1
set all xpgivebylevel to 10 (in savexp)
will set up a test server for my clan
min xp = 3(?) when level 10 kills level 0 with standard rifle
max xp = 120 when level 0 kills level 10 with knife
i think this should be balanced.
maybe u find a better solution for it
made some tests
( (victim level - attacker level) / 10 ) + 1
set all xpgivebylevel to 10 (in savexp)
will set up a test server for my clan
min xp = 3(?) when level 10 kills level 0 with standard rifle
max xp = 120 when level 0 kills level 10 with knife
i think this should be balanced.
maybe u find a better solution for it

