Page 2 of 2

Re: To correctly handle custom weapon hit

Posted: 25 Jul 2014, 11:19
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...

Re: To correctly handle custom weapon hit

Posted: 25 Jul 2014, 11:22
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

Re: To correctly handle custom weapon hit

Posted: 29 Jul 2014, 10:32
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.

Re: [Tuto] To correctly handle custom weapon hit

Posted: 29 Jul 2014, 11:57
by Dommy
I updated topic with link to GitHub tutorial :) .

Can some mod sticky the topic (and btw unstick "Show your actions here")?