• Need help with EntIndex()
    51 replies, posted
[QUOTE=maurits150;43324273]I don't want to join this discussion, but to prevent confusion, Entity(0) does return worldspawn when ran clientside. It's also kind of stupid that game.GetWorld() does work on the server, but not on the client. So I always had to use game.GetWorld() on the server and Entity(0) on the client.[/QUOTE] That's the issue too; a lot of these false-positives were happening client-side with halo effect removal, etc which is why I added that. I could care less that server-side it says worldspawn is posing on level change. maurits, use this clientside; it's an easy fix for that, I've been doing this for a while: [lua]// // game.GetWorld( ) fix for CLIENT // function game.GetWorld( ) return Entity( 0 ); end[/lua] [QUOTE=Handsome Matt;43324200]You realize Entity(0) always returns a null entity instead of worldspawn right? So you're code isn't even checking for worldspawn... Hey now, I stated earlier the OP has his solution, you continued to try and explain why your Acecool Company Copyright 2013 methods are superior to our methods. So obviously I'm going to stand my ground and get every bit of amusement out of watching you try.[/QUOTE] I don't know what you mean, I don't have to try with you; you break your own arguments, I am left with nothing to do.
[QUOTE=Acecool;43324181]Both of you aren't understanding. The OR is for this snippet of code[/QUOTE] Everyone observe closely, this is the point where he realized his fallacy and now presents another piece of code and says "Well I mean [I]clearly[/I] I was referring to this piece of code instead of the piece of code that I actually posted, duuh!"
[QUOTE=EvacX;43324393]Everyone observe closely, this is the point where he realized his fallacy and now presents another piece of code and says "Well I mean [I]clearly[/I] I was referring to this piece of code instead of the piece of code that I actually posted, duuh!"[/QUOTE] I copied and pasted the code for whoever to use; without the snippet of code the or does nothing and costs nothing. the only way the or logic would've been touched is if _index was false. So by nitpicking about something small like that is beyond me... I posted the whole code to show that it did in-fact belong to something and you're still nitpicking even after it's been proven.
[QUOTE=Acecool;43324480]I copied and pasted the code for whoever to use; without the snippet of code the or does nothing and costs nothing. the only way the or logic would've been touched is if _index was false. So by nitpicking about something small like that is beyond me... I posted the whole code to show that it did in-fact belong to something and you're still nitpicking even after it's been proven.[/QUOTE] Why can you never admit you're wrong?
[QUOTE=Nexus435;43326219]Why can you never admit you're wrong?[/QUOTE] I do admit when I'm wrong, why aren't you contributing to the thread? I've proven that the snippet works, I've proven it's there for a reason yet your mind can not seem to grasp that idea that I am right. [highlight](User was banned for this post ("Please Acecool, you have to know when to stop. This isn't helping you. Timeout." - Swebonny))[/highlight]
[QUOTE=Acecool;43326962]I do admit when I'm wrong, why aren't you contributing to the thread? I've proven that the snippet works, I've proven it's there for a reason yet your mind can not seem to grasp that idea that I am right.[/QUOTE] [lua] local meta = FindMetaTable("Entity") function meta:GetReferenceID() return self:EntIndex() - game.MaxPlayers() end function ents.GetByReferenceID(id) return ents.GetByIndex(id + game.MaxPlayers()) end [/lua] This is all that's necessary. The extra addition of 128 wasn't necessary in your code and the check for "pretending to be null" is arguably not necessary either.
Ace, if right then why not post wiki sauce? Would end discussion.
[QUOTE=TalkingWaterfall;43327276]Ace, if right then why not post wiki sauce? Would end discussion.[/QUOTE] Are you seriously proposing that somebody uses the [I]user-generated[/I] content on the wiki to prove that they are right?
Guys, just stop trying to prove Acecool wrong. He's wrong, but he's stubborn and will fight to the death to prove that he's right even though he isn't. You're wasting your time. Look I don't want to start shit or anything, but I'm just being honest. This isn't from an angry standpoint or anything, this is just being honest. You're pretentious. You think you're more important than you really are. I don't really know how to say it without sounding like a dick. I'm honestly just trying to give you advice, but of course you don't need my advice because you're AceCOOL ("I've been doing this almost 20 years" "I am not one of you" "I do things my way" -The Lua God ") but just stop. There are people better than you out there and you aren't as important and valuable as you think. This'll probably go over your head and you'll just rate me dumb, even though I'm trying to help you. Also, stop with the (Acecool Company Copyright 2013 DMCA You All Day) stuff with your codes. They're not that special. And before you say it, no it isn't necessary. No one is out to get you and they're not [URL="http://facepunch.com/showthread.php?t=1312994"]trying to steal your precious gamemode[/URL]. (Which isn't really that different anyways) "On a final note. Your server was removed for inactivity and for simply giving us a hard time." Even server hosts get tired of you... I've never seen that before. Did you threaten to DMCA them too? Whatever, maybe it'll help you maybe it won't. Don't DMCA me I was just trying to give you some constructive criticism of your childish behaviors.
Sorry, you need to Log In to post a reply to this thread.