Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sun Jul 13, 2003 1:51 pm Post subject: kill points (game.c points_kill.c) |
|
|
|
|
Currently the kill messages show the killed players bounty even when FixedKillReward is positive, although re-entering the zone shows you your correct score.
In game.c the bounty in the S2C_KILL packet should be the kill points, not the bounty (but the kill points may just happen to equal the bounty...).
points_kill.c if (cfg->GetInt(arena->cfg, "Kill", "FixedKillReward", -1) != -1) {
pts = cfg->GetInt(arena->cfg, "Kill", "FixedKillReward", 0);
}
else
pts = bounty; |
Maybe pass the points into each callback as a pointer, so the last registered callback gets to set the bounty in the kill packet. |
|