In response to Artekia
Artekia, stop posting in this thread, you don't know what you're talking about.
In response to Justin Knight
<Editted out> I've tried reasoning with you, but you don't get it. If you aren't going to listen to logic then don't ask for help.

Sorry for insulting you, not in a good mood, but still, don't call me a moron for trying to help with good advice.
In response to Justin Knight
Justin Knight wrote:
People, people this is an OBJ proc. src is the object! usr is the person! If I used src then it would look like this: "Pistol has hit John Doe with the pistol!"

Try it my way. I'm pretter sure that the src is whoever calls the proc, not what the proc belongs to.
In response to Jamesburrow
Actually, src should be the obj. Usr is just plain wrong though.
In response to Jamesburrow
Dude, trust me, i've played this game many times. src is the object, not the person using the object. Usr is the person using the object.

Please, stop fighting about a the [expletive deleted] usr var. It's only used in text and has nothing to do with the TOPIC OF THIS THREAD "different accuracies at different ranges" I was having problems using the pistol at range, it wasn't working at all, it was only working at one tile distance.
In response to Justin Knight
Could you show me where you call this proc?
In response to Justin Knight
Justin Knight wrote:
Dude, trust me, i've played this game many times. src is the object, not the person using the object. Usr is the person using the object.

Well, do something like this then:
In the verb where you call the proc, so something like
mob/verb/shoot()
Harm(usr)

Then:
obj/pistol
Harm(mob/M)

then use M instead of usr.
Of course, you'll ahve to make some minor adjustments, but that way is better than using usr.
In response to Jamesburrow
James's advice should probably work. I wasn't sure how you were calling it. Usr is unstable and you shouldn't rely on it.

I'm sorry for my aggressiveness, but don't attack people for helping you. It doesn't make you look very good.
In response to Jamesburrow
Why are we still rambling on about usr? The proc is called by double clicking a mob.
In response to Justin Knight
It obviously has to do with how it is called.

 mob/DblClick()
if(!usr:alive || get_dist(src,usr) > 1 || usr:handable == 1 || !alive)
return
var/x=0


Is the problem, I need to somehow make an exception for pistols so that it actually works.
In response to Justin Knight
That doesn't really matter. Usr may work in this case, but it can easily go wrong on you. It's just not safe to use in a proc where it's not meant to be. As I've said, it's not stable and can change.
In response to Artekia
Artekia, now you REALLY have NO IDEA what you're talking about. THAT IS the problem. SHUT UP ABOUT USR, I HAVE READ THAT IT IS UNSTABLE ABOUT 7 TIMES. You obviously just like rambling on about what you know and think that anything I say is wrong.
In response to Justin Knight
...I tried saying sorry... but I'm kind of regretting it. I try to be semi-nice, and this is what I get. I'm sorry, I'll stop posting. I'm sorry for trying to give you advice. I may have repeated it a few times, but it never seemed to enter your head. I've tried helping you fix up your code, as it is full of bad practices, but no. You just can't take it. You can't take anyone standing to try to make you actually do something the right way.
In response to Justin Knight
Justin Knight wrote:
Artekia, now you REALLY have NO IDEA what you're talking about. THAT IS the problem. SHUT UP ABOUT USR, I HAVE READ THAT IT IS UNSTABLE ABOUT 7 TIMES. You obviously just like rambling on about what you know and think that anything I say is wrong.

Actually, Artekia is right, which means that YOU have no idea what YOU'RE talking about.
If it is obvious that something is wrong and you've been given a way to fix it, why do you insist on arguing?
In response to Jamesburrow
Becuase you guys insist on complaining about that usr is unstable, when that wasn't my problem at all. The unstableness of usr is meant to be used. In the game you can change your name to an RP name, so it uses the RP name instead of the BYOND key. Okay? Instead of "SuperGokuXX7 hits Joe Dirt" it is " Dennis Washington hit John Boeing"

The problem wasn't that obvious, you guys pointed it out in the midst of all your unrelated blabbing, and I thank you for that. If i'm not mistaken I have to make an exception for the pistol so it can be used. Any ideas for that? Other than the idea that i'm a complete asshole? I apologize for that, although you guys were talking about unrelated subjects.
In response to Justin Knight
Usr is supposed to be used in procs such as Click(), DblClick(), and things of the sort. Also, there are ways to do that without using usr, such as ref.name and stuff.
In response to Ol' Yeller
Ah, and that's exactly what it is used in, a DblClick() procedure.
In response to Justin Knight
Then why the hell are you using args and usr? You should only use one, specficially the arg so you can call it in other places.
In response to Ol' Yeller
What arg are you mentioning?
In response to Ol' Yeller
Wha? I didn't understand any of that myself....than again, I'm still a little new to coding....but, why didn't he just use an argument in place of usr, such as mob in oview()? I know that has nothing to do with his question, but if it's the topic right now.....
Page: 1 2 3 4