• Problems That Don't Need Their Own Thread v3.0
    5,003 replies, posted
Is there an empty blank map with nothing whatsoever in it? I don't know mapping and can't be bothered setting it up just to get a blank map.
Hey I was wondering if there was a way for players to stop doing this: [img]http://cubesquaredrp.com/gyazo/873c2dbe5a5cb2d14aaa.png[/img] I could not figure out how to prevent that on a nextbot.
-snip figured out what caused spam-
[QUOTE=Maurdekye;47506178]Not sure. I'm pretty sure player.GetAll() won't return bots.[/QUOTE] player.GetAll() returns bots and people. player.GetHumans() returns people. player.GetBots() returns bots. [url]http://wiki.garrysmod.com/page/Category:player[/url]
[QUOTE=TFA;47504199]Please, don't use timers. They're pretty great at bugging out. Instead, maybe use CurTime and something short and efficient in the think hook.[/QUOTE] What would you use in place of the timer specifically? Just if CurTime( ) == oldCurTime + animDuration?
[QUOTE=DanielHershey;47507700]Hey I was wondering if there was a way for players to stop doing this: [img]http://cubesquaredrp.com/gyazo/873c2dbe5a5cb2d14aaa.png[/img] I could not figure out how to prevent that on a nextbot.[/QUOTE] Could you not just disable collisions on the bot?
Does the scale parameter on cam.Start3D2D() cause performance loss for the server? I'm curious whether making a panel 100x100 @ scale 0.1 opposed to 1000x1000 @ scale 0.01 would be inefficient.
How can it? Cam is client side. But to answer the question, no. EDIT: Small elaboration here. Nothing is free ever (Not being all philosophy 101 here.). The truth is, it does cost, but the cost is so negligible its... negligible.
Having some trouble with sweps and the owner's name after death. Basically I have a swep that changes your walk/run speed to something quite fast for a short time then changes it back after the time is up. The problem is that if the player dies mid speed burst the swep doesn't know who to change the speed of at the end of the time because I'm using self.Owner to refer to the swep holder and as a result it errors. Speed does reset after death however but that's totally unrelated to me specifically setting it. I can't check self.Owner:Alive() because that too uses self.Owner.
I want to replace the thing in TTT which lets you cycle between players as a spectator with left/right click. I know what to do, I just don't know where that code is found. I've searched the Git already. Help much appreactiated.
Function http.Fetch seems to be caching it's results when loading static files. How do I disable it?
[QUOTE=maurits150;47512195]Function http.Fetch seems to be caching it's results when loading static files. How do I disable it?[/QUOTE] Could try appending a different query string each time such as: [lua]url.."?"..os.time()[/lua]
What hook handles the red screen when you die? I want to remove it
[QUOTE=Sheeplie;47512259]What hook handles the red screen when you die? I want to remove it[/QUOTE] HUDShouldDraw with the CHudDamageIndicator element IIRC. Also removes the damage indicator however but a ply:Alive() check might fix this.
[QUOTE=Bo98;47512248]Could try appending a different query string each time such as: [lua]url.."?"..os.time()[/lua][/QUOTE] I tried that but it doesn't seem to work, yet it works in HTTP requester (firefox addon). This is pretty confusing. I guess I'm gonna have to wireshark these requests and responses to figure out what is going on. [b]Edit[/b] I guess it's an http.Fetch issue because even when I terminate my nginx processes entirely the function just continues to return cached content, even when I use the query string trick. I tried messing with the nginx cache settings like sendfile: off, add_header Cache-Control no-cache, expires: 1s but nothing seems to help. The header table seems to have an entry called 'Age' which goes all the way up to 600 seconds, and only after waiting those 10 minutes updated content is returned. [b]Edit 2[/b] I solved it. I guess GMod didn't pick up on the new cache settings but after a restart it worked.
[QUOTE=wauterboi;47509217]What would you use in place of the timer specifically? Just if CurTime( ) == oldCurTime + animDuration?[/QUOTE] You want to use >=, because likely the game won't land on the exact millisecond.
Sorry for the dumb post but.. is that guy /the/ maurits? Also thank you Bo I will get on that right away.
[QUOTE=Sheeplie;47512870]Sorry for the dumb post but.. is that guy /the/ maurits? Also thank you Bo I will get on tha right away.[/QUOTE] Everybody knows Maurits went AWOL after the downfall of the wiki.
[QUOTE=Willox;47512886]Everybody knows Maurits went AWOL after the downfall of the wiki.[/QUOTE] I don't spend as many hours on GMod anymore as I did a couple of years ago. But I'm not sure how the wiki has anything to with it; I actually had the mirror up [url=http://facepunch.com/showthread.php?t=887439&highlight=]years[/url] before the official one was rebooted.
Yeah, I know your name from maurits.tv, I thought you'd created that site or something though.
So a while ago someone released a gmod base gamemode for RPG gamemodes, it had an overhead view and the buildings would have their roof's faded when you go inside them. Anyone know how to re-create this effect?
How can I list all currently playing sounds?
[B] Is there a way to override the fact that you can press space when you die to respawn? I've tried looking at the player death hooks there don't seem to be any special returns for them.[/B] This part was solved, thank you. By the way, what is the client-side player death hook ? These things aren't too essential to the add-on I was working on anymore, I'm just curious.
Yes its in PlayerDeathThink or whatever the hook is called.
[url]http://wiki.garrysmod.com/page/gameevent/Listen[/url] there is a player death game event, which is called on client.
[QUOTE=AnonTakesOver;47515180][url]http://wiki.garrysmod.com/page/gameevent/Listen[/url] there is a player death game event, which is called on client.[/QUOTE] Nope. [url]https://github.com/garrynewman/garrysmod/blob/4a966f6b07d4d8bc2e8c7d18d158880cda2b2a2b/garrysmod/gamemodes/base/gamemode/player.lua#L109[/url]
[QUOTE=G4MB!T;47515895]Nope. [url]https://github.com/garrynewman/garrysmod/blob/4a966f6b07d4d8bc2e8c7d18d158880cda2b2a2b/garrysmod/gamemodes/base/gamemode/player.lua#L109[/url][/QUOTE] Oh, I thought he was just asking for a player death hook, didn't realized he wanted the one that checks for spacebar. I thought in the second part of the post he was looking for a hook like that game event. tldr; you are right, i misunderstood.
How to know when the a player is in spectator mode?
[QUOTE=James xX;47517025]How to know when the a player is in spectator mode?[/QUOTE] [url]http://wiki.garrysmod.com/page/Player/GetObserverMode[/url] [url]http://wiki.garrysmod.com/page/Enums/OBS_MODE[/url]
[QUOTE=AnonTakesOver;47517099][url]http://wiki.garrysmod.com/page/Player/GetObserverMode[/url] [url]http://wiki.garrysmod.com/page/Enums/OBS_MODE[/url][/QUOTE] Thanks! [snip no longer needed]
Sorry, you need to Log In to post a reply to this thread.