[Tuto] To correctly handle custom weapon hit

Moderator: NADEO

User avatar
fleo
Posts: 304
Joined: 02 Sep 2011, 12:56

Re: To correctly handle custom weapon hit

Post by fleo »

Hey Nadeo added a new method RemovePlayerArmor, did you figured out what's different from AddPlayerWeapon? Hylis said it's the same, so I don't get why adding a copy of an existing method just to have a different name...
Follow me on my maniaflash. Try the new elitealternative! Feedbacks on this post. :thumbsup:

♫ I need αεяø. I'm holding out for αεяø 'til the end of the night. ♫
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: To correctly handle custom weapon hit

Post by steeffeen »

i was asking me the same
but as RemoveXArmor makes more sense than AddXArmor i would like to suggest marking the AddX method as deprecated
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    Teardrop
    Posts: 95
    Joined: 02 Dec 2011, 19:47

    Re: To correctly handle custom weapon hit

    Post by Teardrop »

    I added a RemovePlayerArmor(...). Parameters are the same as AddPlayerArmor(), except you don't need a minus for the damage.

    And yeah, we can probably mark AddX as deprecated.
    User avatar
    Dommy
    Translator
    Translator
    Posts: 1866
    Joined: 25 Aug 2011, 21:45
    Location: Poland
    Contact:

    Re: [Tuto] To correctly handle custom weapon hit

    Post by Dommy »

    I updated topic with link to GitHub tutorial :) .

    Can some mod sticky the topic (and btw unstick "Show your actions here")?
    Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
    FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

    Contact me via GALAXY & PURSUIT DISCORD
    Post Reply

    Return to “ActionMaker and Item editor”

    Who is online

    Users browsing this forum: No registered users and 1 guest