Xonotic Forums
How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? (/showthread.php?tid=2921)



How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - neXus - 04-19-2012

Well. The title says it all. I see that Xonotic has these sounds disabled, but I'm wondering how can I enable them on my server?[/align]


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Mr. Bougo - 04-19-2012

I don't know if that's intentional, but in the current git state the code that announces kill sprees is never reached.

At line 446 in g_damage.qc,
Code:
if (attacker.killcount > 2) {
    Send_KillNotification(a, ftos(attacker.killcount), "", KILL_SPREE, MSG_SPREE);
}
else if (attacker.killcount == 3)
{
    Send_KillNotification(a, "", "", KILL_SPREE_3, MSG_SPREE);
    AnnounceTo(attacker, "03kills");
    PlayerStats_Event(attacker, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_3, 1);
}
else if(...)
{...}

As you can see, if the killcount is higher than 2 there will be no AnnounceTo because of the first conditional. I don't know if that's a bug or if it's intentional, but that's where it's disabled.


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - neXus - 04-19-2012

so. i have to set lower than 2 in this case?


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Mr. Bougo - 04-19-2012

Do you use git or autobuilds? If so, be patient, this should be fixed soon.

I filed a merge request for this bug fix: http://dev.xonotic.org/issues/1167
If you're in a hurry, apply that patch manually or merge mrbougo/killspree_bugfix into your master branch.


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - neXus - 04-19-2012

unfortunately, im not using git. i use autobuild updater, but if i have time, i'll get the git soon


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Mr. Bougo - 04-19-2012

Then wait until this patch gets into the master branch. Then, the next autobuild will have it.


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Samual - 04-19-2012

so this is FruitieX' fault, once again Big Grin


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Mirio - 04-19-2012

It's like that.. forever. No one believed me at first ffs. Tongue


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Mr. Bougo - 04-19-2012

I've never seen you complaining about this. I'm not saying you didn't but at least it didn't reach me.


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - neXus - 04-21-2012

this isnt working Sad


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Mr. Bougo - 04-21-2012

Because the branch is not merged yet. There's not much I can do about this. I'll talk to the team.

You can follow progress on the link I posted above.


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Lento - 05-02-2012

In my server, I solved this problem by removing "else" from each "else if (attacker.killcount ==...)" statement.


RE: How to add 5,10,15,20,25,30 kills sounds like in Nexuiz? - Mr. Bougo - 05-03-2012

That's almost what my patch above does. It's linked in an earlier post in this thread.