Questions, comments, and news on the server side plug-ins and it's API
6 posts • Page 1 of 1
I know that in a few plugins, such as turretcontrol, kills via the ww are attributed to a player. However, the wwzone plugin is *much* more customizable. Could anyone write (or modify) a plugin to allow this?
Darkid--Not a happy camper.
I think that having the WW be tied to a user causes the scores to get out of sync in 2.0.x. Basically, each client keeps track of their own score. So if a world weapon kills 30 people for a specific player, that player will see their score as 30 points lower than everyone else sees their score. So, I would recommend not doing that until version 3.0.0 comes out.
So you've run two clients and compared what you see?
It has been a while since I looked at the plug-in API, but I think it depends on how you change the score. I know the functions for setting scores are out of sync. If, however, you use bz_killPlayer(), the scores will be in sync. Also, you can use the playerDieEvent to change the killerID when someone dies. If we change the killerID when a WW kills someone, we can *give* the kill to anyone. I believe the scores are updated as well. The trick (hack) is to use a list of predefined shot ID's for the WW, then check for those shot ID's in the die event.