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 »

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 »

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.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Headshot callback

Post by Eole »

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