Transfer a Domain Name $8.88
Register A Domain Name  $8.88
www.

View Full Version : Making it easier for newbies


Senne
05-29-2007, 09:48 AM
Hi,
My players recently decided not have an reset after each 6 months , this to give new players a more fair gameplay.
Bec when having a fight between 1 lvl 30 vs 5 lower then 10 lvl is a no win situation.
Anyhow, i thought this ways were the most fair ways for new players :
im no good in coding , so if you guys can check ;)

- putting the underdog bonus a lot higher :

// Handler for underdog kill XP bonuses
new lev_diff = ( p_level[victim_id] - p_level[killer_id] )
new udogxp = (lev_diff * XPBONUS)
new udogpenalty = udogxp

if (lev_diff >= 30){
udogxp += (3 * xpgiven_lev[p_level[victim_id]])
udogpenalty += (2 * xpgiven_lev[p_level[killer_id]])
}else if (lev_diff >= 20){
udogxp += (2 * xpgiven_lev[p_level[victim_id]])
udogpenalty += floatround(2.25 * xpgiven_lev[p_level[killer_id]])
}else if (lev_diff >= 10){
udogxp += floatround(1.5 * xpgiven_lev[p_level[victim_id]])
udogpenalty += floatround(1.75 * xpgiven_lev[p_level[killer_id]])
}


the red values will need to be put higher?

- give new players some free levels : how do i do this? ;) ive seen it on a few servers...

Smokey
05-29-2007, 11:29 AM
For starting free levels try this:
http://www.uwc3mod.com/forums/showthread.php?t=63

for under dog if Im not mistaken (and I could be) I think there is a cvar that you can change to make it easy

Senne
05-29-2007, 11:55 AM
thx
this is the cvar i found
UW_underdog_kills 1 // Set 1 to Give XP bonus for underdog kills

Smokey
05-29-2007, 01:25 PM
mmm, I have must have been thinking of something else then, my apologies.

Then in that case the answer is yes, you can chose those in red to accomplish what you want.

Senne
06-18-2007, 01:39 AM
hi, me again ;)
i just changed those values but when recompiling it produces 2 errors.. 'type mistake'...
while i just change the numbers.
file is : uwc3_dmgevents.inc

numbers i changed :
- if you kill a person who has 10 levels higher then you, you receive a bonus of 3times instead of 1.5
--if you kill a person who has 20 levels higher then you, you receive a bonus of 5times instead of 2
- if you kill a person who has 30 levels higher then you, you receive a bonus of 8timesx instead of 3.

- if a person kills you that has 10 levels lower then you, you receive a punishment of 2.5times instead of 1.75
- if a person kills you that has 20 levels lower then you, you receive a punishment of 3times instead of 2.25
- if a person kills you that has 30 levels lower then you, you receive a punishment of 4times instead of 2

Smokey
06-18-2007, 02:51 PM
I believe it needs to be a decimal, such as 2.0, 3.0 etc

Senne
06-19-2007, 12:58 AM
yea i see , thx it didnt give any error now

(--eRRoR--)
05-18-2008, 03:18 AM
Hi,
My players recently decided not have an reset after each 6 months , this to give new players a more fair gameplay.
Bec when having a fight between 1 lvl 30 vs 5 lower then 10 lvl is a no win situation.
Anyhow, i thought this ways were the most fair ways for new players :
im no good in coding , so if you guys can check ;)

- putting the underdog bonus a lot higher :

the red values will need to be put higher?

- give new players some free levels : how do i do this? ;) ive seen it on a few servers...

In wich file are this setings?

Smokey
05-19-2008, 04:29 PM
Search for "// Handler for underdog kill XP bonuses " in the files