Headshot callback

Discuss everything related to Shootmania.

Moderator: English Moderator

Post Reply
User avatar
Lumpik
Posts: 41
Joined: 04 Jan 2015, 22:00
Contact:

Headshot callback

Post by Lumpik » 25 Feb 2015, 12:14

Hi Nadeo devs !

Would it be possible to add a callback for "headshot" please ?

It would be very usefull for all modes using laser and plugins (which can't get this information) !

Thanks :)

Lumpik

User avatar
Lumpik
Posts: 41
Joined: 04 Jan 2015, 22:00
Contact:

Re: Headshot callback

Post by Lumpik » 04 Mar 2015, 15:46

Any answer Nadeo ? Please ?

FYI, the headshot() function is already coded in InstaGib mode : https://github.com/steeffeen/ManiaPlane ... Script.txt + DoHeadShot() function.
So the harderst work seems to be already done.

kremsy
Posts: 1723
Joined: 21 Jul 2011, 09:51

Re: Headshot callback

Post by kremsy » 04 Mar 2015, 17:05

Try to contact Eole or write here:
viewforum.php?f=279
Lukas alias Kremsy, Developer of:
ManiaControl: http://www.maniacontrol.com
ParagonLeague: http://league.paragon-esports.com
MPAseco: http://mpaseco.org
ManiaViewer: http://www.maniaviewer.com

User avatar
Eole
Nadeo
Nadeo
Posts: 1261
Joined: 26 Apr 2011, 21:08

Re: Headshot callback

Post by Eole » 05 Mar 2015, 15:15

The implementation made by Steeffeen is an approximation of what could be considered an headshot, it's good but isn't 100% robust to all use cases. The game need to be updated to support such a feature, so it would be better to post your suggestion in the wishlist.
However as an alternative I updated the LibXmlRpc_OnHit callback with more data : victim and shooter positions and aim directions. So you'll be able to test for an headshot like Steeffeen did if you really want to.
The commit is available in the Test branch on GitHub.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!

Post Reply

Return to “Shootmania”

Who is online

Users browsing this forum: No registered users and 1 guest