View previous topic :: View next topic |
Author |
Message |
Caleb13 Posting Spree!
Joined: 05 Feb 2014
|
Posted: Thu Apr 03, 2014 10:33 pm Post subject: Display monsters' sprees and multikills in Survival |
|
|
In many Thursday Night Survival games, it happens that some lucky cyberdemon (or another strong monster) kills several players, sometimes in rapid succession. This is usually viewed as funny event by the players and spectators alike. So it would be nice if Zdaemon could display monsters' killing sprees and multikills as well. Thing number could be used instead of name, so the text would be something like "Cyberdemon [thing number] is on a killing spree!" or "Chaingunner [thing number] had multi kill!"
I guess it could find some use in Coop, too. |
|
Back to top |
|
|
Zedek has entered the game!
Joined: 10 Mar 2013 Location: Tijuana, México
|
Posted: Thu Apr 03, 2014 11:04 pm Post subject: |
|
|
i think that it can be done via ACS, you should request this to TNS admins. |
|
Back to top |
|
|
Caleb13 Posting Spree!
Joined: 05 Feb 2014
|
Posted: Sat Apr 26, 2014 8:43 am Post subject: |
|
|
Okay, I looked at what could be done with ACS. Nothing too complicated - a 2x50 (or so) array which would store player kills by monsters and some identifier of said monsters. Unfortunately, ACS provides no way to identify which actor/monster killed a player. I guess there is a reason why obituaries are implemented directly in Zdoom/Zdaemon code...
I'm not saying it is completely impossible, though. I could conceivably write a script which would search (StrIcmp) the console for certain strings (such as "splattered by cyberdemon") and count them. I could even infer if the lucky monster was killed with the help of ThingCount to reset the counters. But this would obviously be very, very far from perfect: 1. without unique monster identifiers, there would be false positives. 2. It wouldn't work for custom monsters. 3. The scripts would be rather complex and their execution could slown down older computers needlessly.
Edit: Rhinoduck told me that Zdaemon doesn't support ACS string functions yet. Therefore, it is impossible to do at all. |
|
Back to top |
|
|
|