Server Help

ASSS Questions - kill points (game.c points_kill.c)

Smong - 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
Code: Show/Hide
   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.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group