[SUG] XPs given on every Kill

Want to talk about war3ft or make suggestions? Post them here

Moderator: Forum Moderator

Post Reply
DesasterUK
WC3Mods Donor
WC3Mods Donor
Posts: 223
Joined: Thu Mar 09, 2006 6:05 pm
Location: Germany
Contact:

[SUG] XPs given on every Kill

Post by DesasterUK » Thu Jun 14, 2007 11:58 am

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.
Image

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu » Thu Jun 14, 2007 12:00 pm

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
No Support via PM

DesasterUK
WC3Mods Donor
WC3Mods Donor
Posts: 223
Joined: Thu Mar 09, 2006 6:05 pm
Location: Germany
Contact:

Post by DesasterUK » Thu Jun 14, 2007 12:10 pm

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.
Image

DesasterUK
WC3Mods Donor
WC3Mods Donor
Posts: 223
Joined: Thu Mar 09, 2006 6:05 pm
Location: Germany
Contact:

Post by DesasterUK » Thu Jun 14, 2007 12:49 pm

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
Image

DesasterUK
WC3Mods Donor
WC3Mods Donor
Posts: 223
Joined: Thu Mar 09, 2006 6:05 pm
Location: Germany
Contact:

Post by DesasterUK » Thu Jun 14, 2007 2:33 pm

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 ;)
Image

DesasterUK
WC3Mods Donor
WC3Mods Donor
Posts: 223
Joined: Thu Mar 09, 2006 6:05 pm
Location: Germany
Contact:

Post by DesasterUK » Fri Jun 15, 2007 11:28 am

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 ;)
Image

Post Reply