Page 1 of 1
Re: You have awarded .... XP
Posted: Sun Dec 10, 2006 11:46 pm
by Corrosion X
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.
Posted: Tue Dec 12, 2006 1:29 am
by snapdoodle
why change it? it encourages people to get out there and kill.
Posted: Wed Dec 13, 2006 8:35 am
by Geesu
change the xp multiplier in the config file...
Posted: Wed Dec 13, 2006 9:53 pm
by Geesu
wc3_xp_mulitiplier
Posted: Thu Dec 14, 2006 12:12 am
by YamiKaitou
Edit the source
Posted: Thu Dec 14, 2006 4:24 pm
by Geesu
Yep - u have to edit the source
380 XP ???? That's a little high
Posted: Tue Dec 19, 2006 10:08 am
by YamiKaitou
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]
Posted: Tue Dec 19, 2006 12:15 pm
by YamiKaitou
That part is for kill assist. Are you just wanting it to not show it or wanting to turn it off altogether?
Posted: Tue Dec 19, 2006 12:53 pm
by YamiKaitou
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
Posted: Tue Dec 19, 2006 2:47 pm
by Geesu
Just delete that source completely
Posted: Wed Dec 20, 2006 1:38 pm
by Geesu
Yes
Posted: Thu Dec 21, 2006 2:18 am
by kp_downarrow
you should make a cvar for that assist kill xp