Page 1 of 1
[SUG] XPs given on every Kill
Posted: Thu Jun 14, 2007 11:58 am
by DesasterUK
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.
Posted: Thu Jun 14, 2007 12:00 pm
by Geesu
o.O I like that idea...
Yea right now it only depends on the victim's XP... I wonder how I could make it be both? I don't want to think right now
Posted: Thu Jun 14, 2007 12:10 pm
by DesasterUK
Maybe just multiply it with a constant of 0.1 and multiply with the difference of the levels
Otherway u could build in a cvar so everyone can choose there own multiplier to find out the best settings for there server
If i find time to do i will try it on my own and let u know about if it works.
Posted: Thu Jun 14, 2007 12:49 pm
by DesasterUK
Maybe something like this
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;
}
--- 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
Posted: Thu Jun 14, 2007 2:33 pm
by DesasterUK
omg
its time to go to bed.
if u kill someone one level above u will get 30%
:wallbash:
btw: if u try to open all smileys u will get a hacking attempt

Posted: Fri Jun 15, 2007 11:28 am
by DesasterUK
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
