View Full Version : How to Remove Underdog XP Penalty
slmclarengt 04-10-2007, 07:51 PM I know at my server my members hate losing XP when people lower levels than them kill them but the lower levels like the XP. So, I decided to generate a fix for removing the penalty but keeping the bonus. So here goes.
UWC3 1.6.3-133beta
In uwc3/dmgevents.inl
FIND
Guests are not allowed to view code.Replace with
Guests are not allowed to view code.Comment out the variable made to store penalty.
Next, FIND
Guests are not allowed to view code.Replace with
Guests are not allowed to view code.Next, FIND
Guests are not allowed to view code.Replace with
Guests are not allowed to view code.Next, FIND
Guests are not allowed to view code.Replace with
Guests are not allowed to view code.Next, FIND
Guests are not allowed to view code.Replace with
Guests are not allowed to view code.Next, FIND
Guests are not allowed to view code.Replace with
Guests are not allowed to view code.Enjoy!
NOTE: YOU MUST re-compile plugin in order for this modification to work!
Slmclarengt
Smokey 04-10-2007, 08:07 PM can you make this with a cvar to enable/disable?
Call it something like UW_underdog_xp_penalty or something
also while your at it, can you take all the modifiers and make it standard?
there is 2 * 1.75 * 2.25 - can you also turn this into a Cvar so that it can be custom set per server?
If you wanna do that I will insert it into the next release :)
slmclarengt 04-10-2007, 08:39 PM can you make this with a cvar to enable/disable?
Call it something like UW_underdog_xp_penalty or something
also while your at it, can you take all the modifiers and make it standard?
there is 2 * 1.75 * 2.25 - can you also turn this into a Cvar so that it can be custom set per server?
If you wanna do that I will insert it into the next release :)
Done.
IN uwc3.sma
FIND
Guests are not allowed to view code.
Under ADD
Guests are not allowed to view code.
Close uwc3.sma
In uwc3/dmgevents.inl
I don't feel like writing step-by-step b/c I gotta go so here's the code which you can just append in. NOTE: I don't have a good code modifier so I couldn't get the indenting to please the compiler so maybe smokey or leftnut could indent it for me :-).
Guests are not allowed to view code.
Slmclarengt
Smokey 04-10-2007, 11:01 PM What is your opinion on changing the process to make the underdog XP and underdog Penalty the same amount?
The underdog basically gets X amount of XP and the victim looses that same X amount of XP to the victor.
Currently they are set to different amounts, the person who gains XP is set to gain more then the other person looses.
Seems like if it was the same amount then the XP would be balanced, maybe im just too smokey
I inserted the code as it was written with one small exception - I changed the last part to
Guests are not allowed to view code.
Basically combined the last two
Guests are not allowed to view code.
statements, one for giving XP and one for giving client message, I figured if its on then do both at once instead of interogating the same value twice looking for the same conditional.
Left Nut 04-10-2007, 11:10 PM Personally I do agree they should be the same but I'm betting that the reason they're not is because of people complaining about losing so much exp to what sometimes is just a stray bullet while your in a firefight with someone equal in level.
My gut tells me that majority of players if they were to vote would vote for an increase in underdog bonus and the illimination of underdog penelties. One advantage I can see for illiminating the penelties though is having them increases the chance of higher levels camping and prolonging the rounds, or being afraid of trying complete the objective when they could just let the time run out instead.
Smokey 04-11-2007, 07:50 AM Well, it is set to a cvar so you can enable/disable it in real time if you want to.
I'm just suggesting that we make it equal.
(numbers are aproximates)
current:
it takes 40xp from player1 and gives 50xp to player2
suggested:
it takes 50xp from player1 and gives 50xp to player2
its awarding more then its taking which creates a small unbalance / un-semetrical xp gain/loss.
w/e
slmclarengt 04-11-2007, 08:41 AM My members would complain either way - if they lost 1 XP per kill, they'd be bitching but Equal Loss/Gained XP would be fair for those servers wanting underdog XP penalties.
Possible bug with my code: last night one of my members said the server TOLD him he lost more XP than he had (he was level 30), but then he got demoted to level 5 with lower XP and the same lvl 30 attributes. I think we need to integrate the different SQL tables so when a player loses XP, they lose the proportional amount of skills/attributes and resists. By the way, he was killed by a level 0 (so level diff. was 30).
Slmclarengt
Smokey 04-11-2007, 09:02 AM ROFL! Serves him right getting killed by the noob :p
hmmm, I will try to take a more indepth look at the code, but to be honest my quick glance last night didnt see anything wrong per se - not too much changed except that the numbers are now cvars as opposed to being statically set.
What were your cvar values set to at the time (if not default)?
slmclarengt 04-11-2007, 09:20 AM I had underdog penalty set to 1 and that was all that was different. The Modifier values were the same, default.
We may want to consider making the modifiers DEFINES rather than cvars in-case a reckless admin feels like changing something they don't understand.
Slmclarengt
Smokey 04-11-2007, 09:52 AM Could be, but all they would do is serious muck up their own server right?
slmclarengt 04-11-2007, 10:10 AM Could be, but all they would do is serious muck up their own server right?
Yes, they wouldn't hurt anyone else, however, the server admins may come to us saying "Why is every underdog penalty 999,999,999 and all we can say is, guess your admin messed up one of the cvars :eek:"
Slmclarengt
Smokey 04-11-2007, 10:14 AM I doubt players would come here to ask us why some one elses server stole their xp. They would go to that server owners site, or they would just leave and find a new server.
i agree we should make this as configurable as possible so every community can have its "own way" and I agree we should make it as "fool proof" as possible, but that would mean we have one on/off cvar and Im sure some one would find a way to mess that up as well.
We cant really help if people are stupid :p
kevin93 04-11-2007, 10:45 AM i dont understand this... and ur making me feel stupid...
anyways if the person loses xp cus he got killed by a noob its usually not much, like i lose about the same amount of xp as i would have gained if i killed him, if its just a stray bullet it doesnt matter cus u can kill him l8er... and high lvls have to get taken down a notch anyways. its nearly impossible 2 kill a lvl 29+ because of the bs evasion.
Left Nut 04-11-2007, 11:56 AM Begginers luck = as strong as a level 28 hehe.
kevin93 04-11-2007, 12:15 PM yea.. but they still suck..... i can easily kill them with a maxed out shadow strike/crit. or my fav poison/napalm/crit nade. it would do poison dmg, fire dmg and the normal crit dmg (this is what i use for he_maps. cus poison does 5 every sec but fire does 10 every sec or something and crit nade does a shitload of dmg either way
|