You have awarded .... XP

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
User avatar
Corrosion X
Peon
Posts: 16
Joined: Sun Dec 04, 2005 3:08 pm
Location: Fullerton, CA
Contact:

Re: You have awarded .... XP

Post by Corrosion X » Sun Dec 10, 2006 11:46 pm

Mordekay wrote:War3ft Version: wc3 rc3
I want to disable, or at least slow down the awarded XP for you if a teammate kills an enemy. The XP ranges to hundreds XP sometimes, this is much more than you get for killing them yourself.
How to do that?
Check the configs. Last time I checked you could make it so give you less XP. Or If not...could just raise the ammount of xp needed to get things...which is more annoying. Again I am not certain.
~StopSpazzing~

snapdoodle
Peon
Posts: 10
Joined: Sun Oct 08, 2006 2:24 am

Post by snapdoodle » Tue Dec 12, 2006 1:29 am

why change it? it encourages people to get out there and kill.

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

Post by Geesu » Wed Dec 13, 2006 8:35 am

change the xp multiplier in the config file...
No Support via PM

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

Post by Geesu » Wed Dec 13, 2006 9:53 pm

wc3_xp_mulitiplier
No Support via PM

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Thu Dec 14, 2006 12:12 am

Edit the source
Image

No support via PM or Email

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

Post by Geesu » Thu Dec 14, 2006 4:24 pm

Yep - u have to edit the source

380 XP ???? That's a little high
No Support via PM

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Tue Dec 19, 2006 10:08 am

I am not sure what to change but here is the bit about awarded xp to others around in the XP.inl file

[small] // Award XP for other people doing damage to this victim
for ( new i = 0; i < MAXPLAYERS; i++ )
{
// Then this player dealt some damage to this player this round
if ( g_iDamageDealt[iVictim] > 0 && iAttacker != i )
{
new iVictimMaxHealth = get_user_maxhealth( iVictim );
new Float:fMultiplier = float( g_iDamageDealt[iVictim] ) / float( iVictimMaxHealth );

// Need a ratio of XP to award to person who dealt damage
iBonusXP = XP_Give( i, floatround( float( iXP ) * fMultiplier ) );

if ( iBonusXP != 0 )
{
client_print( i, print_chat, "%s You have been awarded %d XP for a kill assist!", g_MODclient, iBonusXP );
}
}
}[/small]
Image

No support via PM or Email

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Tue Dec 19, 2006 12:15 pm

That part is for kill assist. Are you just wanting it to not show it or wanting to turn it off altogether?
Image

No support via PM or Email

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Tue Dec 19, 2006 12:53 pm

change it to this

[small] // Award XP for other people doing damage to this victim
for ( new i = 0; i < MAXPLAYERS; i++ )
{
// Then this player dealt some damage to this player this round
if ( g_iDamageDealt[iVictim] > 0 && iAttacker != i )
{
new iVictimMaxHealth = get_user_maxhealth( iVictim );
new Float:fMultiplier = float( g_iDamageDealt[iVictim] ) / float( iVictimMaxHealth );

// Need a ratio of XP to award to person who dealt damage
//iBonusXP = XP_Give( i, floatround( float( iXP ) * fMultiplier ) );
iBonusXP = 0

if ( iBonusXP != 0 )
{
client_print( i, print_chat, "%s You have been awarded %d XP for a kill assist!", g_MODclient, iBonusXP );
}
}
} [/small]

Try that but I don't think it will work. When you test it in the server, check to make sure your XP does not change. Just because it doesn't show it doesn't mean it can't change
Image

No support via PM or Email

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

Post by Geesu » Tue Dec 19, 2006 2:47 pm

Just delete that source completely
No Support via PM

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

Post by Geesu » Wed Dec 20, 2006 1:38 pm

Yes
No Support via PM

kp_downarrow
Rifleman
Posts: 162
Joined: Thu Dec 21, 2006 2:12 am

Post by kp_downarrow » Thu Dec 21, 2006 2:18 am

you should make a cvar for that assist kill xp

Post Reply