Page 1 of 1

Help with this code. WITH PICTURES! :)

Posted: Sat Dec 03, 2016 4:27 am
by ss13Nerd
Okay, so I wanted to add a bone thing.
Where if the person gets there leg broken. They can't move.

so I started off with this.
https://gyazo.com/7589d1e5a33959966aedd92b1f778a7e

then I moved onto
https://gyazo.com/f937deac269a4f46e8e07796c3f8f59f

Then I don't know what to do?

Do I edit the weapon, to make it if it targets the legs it has a random chance of breaking the league?
I just really don't know what to put and i'm stuck in a rut.

Re: Help with this code. WITH PICTURES! :)

Posted: Sat Dec 03, 2016 4:28 am
by ss13Nerd
I'm really really NEW to coding.
I'm sorry if this is a really bad question I'm just stuck in a rut.

Re: Help with this code. WITH PICTURES! :)

Posted: Sat Dec 03, 2016 4:55 am
by WJohnston
If you want immensely more rapid feedback, you should hop on over to IRC, #coderbus on rizon. The whole damn dev team sits in there.

Re: Help with this code. WITH PICTURES! :)

Posted: Sat Dec 03, 2016 5:03 am
by ss13Nerd
WJohnston wrote:If you want immensely more rapid feedback, you should hop on over to IRC, #coderbus on rizon. The whole damn dev team sits in there.
nah i'm okay.

they have more important things to worry about.

plus they ignored me when I already asked so idk

Re: Help with this code. WITH PICTURES! :)

Posted: Sat Dec 03, 2016 5:06 am
by WJohnston
They don't have more important things to worry about. Everyone does their own thing. Keep asking, someone will eventually get to you, the dev team is not a professional one which doesn't waste time on newcomers, they're mostly idiots that meme their ass off all day. Myself included. At the time of writing it's also quite late at night so you may not get responses terribly quickly. Be patient.

Re: Help with this code. WITH PICTURES! :)

Posted: Tue Dec 06, 2016 7:29 pm
by Drynwyn
You could accomplish this by editing the base code for weapon, but the better way to do it would IMO to look at how bloodloss code works- more than a set amount of brute damage to a given area causes bleeding, bleeding can be stopped by bandages. Do basically the same thing- more than a set amount of brute damage to the leg causes a broken leg, which can be fixed with a splint.


That said, given that losing a leg entirely still lets you crawl around, you shouldn't make a broken leg halt all movement. Just slow it down.