601 Results
I'm trying to figure out how to translate a 3D map vector ( lets say Vector(100,200,0) ) to a 2d coordinate within a frame. Can anyone assist me with this? I've tried a few things but can't seem to work out the math and it's got me stumped. I've kind of illustrated what i'm th...
stealthpaw Lua Developer Discussion Reply
Translating 3D vectors to 2D coordinates
stealthpaw Lua Developer Discussion Thread
This is exactly what i was wondering a few days ago before i made a hacky workaround. Thanks!
stealthpaw Lua Developer Discussion Reply
stealthpaw {{Meta}} Reply
When you say "no gamemode evolving" are you simply ignoring DarkRP, TTT, ZS, GMS and their many, many variations that have been constantly played, changed and improved over the history of Garry's Mod? Nobody said being 3D made coding harder, i don't know where you got that fro...
stealthpaw Lua Developer Discussion Reply
There is a HUGE difference between making total conversion mod for a 2D game like SS13 then it is a 3D game like Gmod. To make something that looks even somewhat aesthetically different to the source engine Garry's Mod is built on, it requires vast amounts of time and effort t...
stealthpaw Lua Developer Discussion Reply
Finally got around to publishing the Emoji addon today that i showcased in WAYWO many months back. I should probably apologize to all Gmod players in advance for this atrocity.
stealthpaw Lua Developer Discussion Reply
Good, but it should also have the bumping rule in a smaller font in the warning box too.
stealthpaw {{Meta}} Reply
No armor is not an entity, it is part of the health system built into the source engine. local mySWEP = "your_swepClass" hook.Add( "EntityTakeDamage", "BypassArmor", function( target, dmginfo ) if target:IsPlayer() and dmginfo:GetAttacker():GetActiveWeapon():GetClass() == myS...
stealthpaw Lua Developer Discussion Reply
No, EntityTakeDamage != ShouldCollide
stealthpaw Lua Developer Discussion Reply
Whoops. Fixed. As i mentioned, i didn't test. [edit] I can think of a few more ways to achieve what you are looking for @Lenny Lennington but you should investigate these things on the wiki yourself.
stealthpaw Lua Developer Discussion Reply
Not really, @mx.silent . This can be achieved with something along these lines (not tested): hook.Add( "EntityTakeDamage", "BypassArmor", function( target, dmginfo ) if target:IsPlayer() then local newHealth = target:Health() - dmginfo:GetDamage() dmginfo:SetDamage( 0 )...
stealthpaw Lua Developer Discussion Reply
Yes, it is possible, but not practical. Entity
stealthpaw Lua Developer Discussion Reply
You seem to be misunderstanding how Lua files are read and how hooks work. Not tested, but this should do it: local function comma_value(amount) local formatted = amount while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if (k == 0) then ...
stealthpaw Lua Developer Discussion Reply
10,000
stealthpaw Fast Threads Reply
Rather then calling LocalPlayer() over and over, at the top put local ply = LocalPlayer() then use ply, makes things more readable. Also, when using surface.GetTextSize(), since the first parameter is always width you don't need to put the 2nd (h) into a variable. local HTSize...
stealthpaw Lua Developer Discussion Reply
local myTab = {"tab1","tab2"} local wait local i = 0 hook.Add( "Think", "SleepTest", function( ply, data ) for _,v in ipairs(myTab) do if (wait or 0) > CurTime() then continue end if i >= #myTab then wait = CurTime() + 1 print("Sleeping...") i = 0 end i = i + 1 print...
stealthpaw Lua Developer Discussion Reply
I see you are pretty much only using the surface library, but you can also use the http://wiki.garrysmod.com/page/Category:draw draw library, which are essentially helper functions to reduce the amount of code needed. For example, you do: surface.SetFont("Default") surface.Set...
stealthpaw Lua Developer Discussion Reply
HUD painting is usually a clusterfuck, the usual way to reduce the pile is to create local functions for repeated tasks.
stealthpaw Lua Developer Discussion Reply
Uh ? It will skip some index no ? Yes - fixed; local wait local i = 0 for _,v in ipairs(myTab) do    if (wait or 0) > CurTime() then continue end   if i >= #myTab then wait = CurTime() + 1 i = 0 end -- sleep 1 sec    i = i + 1   -- do stuff  end
stealthpaw Lua Developer Discussion Reply
local wait for _,v in ipairs(myTab) do    if (wait or 0) > CurTime() then continue end   wait = CurTime() + 1 -- sleep 1 sec    -- do stuff  end
stealthpaw Lua Developer Discussion Reply
Not that i'm aware of, but i have no idea why you would want to go to all that extra work anyway.
stealthpaw Lua Developer Discussion Reply
A relevant read: https://wiki.garrysmod.com/page/Object_Oriented_Lua
stealthpaw Developing Reply
If you were going for an MS Paint-esk feel, it's looking great.
stealthpaw Developing Reply
You are likely drawing the HUD using the HUD Paint hook but AvatarImage is a panel so you are creating a new panel every frame the HUD is in view. This question has been answered many many times before but in different ways, try googling the keyword AvatarImage around facepu...
stealthpaw Developing Reply
Never forget.
stealthpaw Sandbox Game General Reply
You don't have permission to view this result. It's probably in a forum that your account has no access to.
Unfortunately you have no idea what you are talking about. You probably already use countless desktop applications that use HTML for their GUI. Use Discord? Twitch? Google Music? Github? Spotify? Chrome extensions? All made in HTML/JavaScript. Here is a list of just a few ap...
stealthpaw Sandbox Game General Reply
I think you are wanting to make a new spawn menu tab? If so look at spawnmenu.AddCreationTab.
stealthpaw Developing Reply
Why do you need help? Errors? Problems? At least put in a base amount of effort if you want the help of others.
stealthpaw Developing Reply
Remove the boot animation and it's very nice.
stealthpaw Developing Reply
It may have something to do with surface.GetTextSize() returning different values because the font is changing. You need to call surface.SetFont("MyFont") before using surface.GetTextSize(), otherwise it will use the text size that was last set in the frame buffer.
stealthpaw Developing Reply
I feel really unconformable posting an entire thread just for a singular video/image, maybe it's just the mega-thread mentality that has been around for so many years, but i just really don't see the point of creating an entire thread for a few passing thoughts on what i'm cur...
stealthpaw Meta Reply
Generally unless a function has 'local' in front of it, they are global and can be called from any lua file regardless of it's location. If DarkRP's function name to bring up the job menu is OpenDarkRPMenu() then you just call that in your entity. If the function is local then...
stealthpaw Developing Reply
This forum might be more appropriate: Help & Support
stealthpaw Developing Reply
stealthpaw General Discussion Reply
You might want something like this: function ENT:Use(ply) ply.beforeJug = { Armor = ply:Armor(), RunSpeed = ply:GetRunSpeed(), WalkSpeed = ply:GetWalkSpeed(), Model = ply:GetModel() } ply:SetArmor(200) ply:SetRunSpeed(150) ply:SetWalkSpeed(110) ply:SetModel( "mod...
stealthpaw Developing Reply
Can we get profile pictures on profiles and not just posts? I associate people with their profile picture and it helps to quickly identify where i am.
stealthpaw Meta Reply
stealthpaw General Discussion Reply
I think he was referring to the fact that the information i provided you with, was incredibly easy to obtain with some very simple searching skills. You will be amazed at the variable plethora of "help" you can find with a simple google search.
stealthpaw Developing Reply
I have seen a few over the years, but those two are the only ones that are actually used i'm pretty sure.
stealthpaw Developing Reply
Take a look at the sample code on this page: GM:PostPlayerDraw It's pretty self explanatory.
stealthpaw Developing Reply
Then just use a loop: local function countJobs( jobs ) local i = 0 for _,v in pairs( jobs or {} ) do i = i + team.NumPlayers(v) end return i end print( countJobs( {TEAM_JOB, TEAM_JOB1} ) ) // 5 if there are 2 players in TEAM_JOB and 3 players in TEAM_JOB1
stealthpaw Developing Reply
To count a table with numbered keys you just use #: local tab = { 1, 2, 3 } print( #tab ) // 3 If the keys are non-numeric then you need to do something different, such as manually counting the keys in a for-each loop or using table.count (inefficient for things done every tic...
stealthpaw Developing Reply
[QUOTE=txike;52600815]I think I found a problem with [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/util/JSONToTable]util.JSONToTable[/url].[/QUOTE] I can't think of any reason why you would want to do that anyway.
stealthpaw Developing Reply
Anyone know how i can fix the Z layer issues with [URL="https://github.com/mattkrins/gfodder/blob/master/entities/entities/base_food_preparation.lua#L128"]3D2D[/URL]? [t]https://puu.sh/x4CmM/f47d1f0cfe.png[/t]
stealthpaw Developing Reply
[QUOTE=pierre0158;52547377]Keep the hook.Run/Call for others devs (if they want to make addons for your GM) and call your functions without using hooks.[/QUOTE] Nitpicking like you are is an obvious sign of jealousy and pretty unsightly to be honest. My gamemode is built...
stealthpaw Developing Reply
I'm going to apologize in advance... [vid]https://puu.sh/wZvd6/350f657163.mp4[/vid]
stealthpaw Developing Reply
[QUOTE=FPtje;52529812]Also, I probably don't fully understand your idea, but how would you plan on using it clientside?[/QUOTE] Easiest way would to just mount everything as usual but ignore any folder that isn't map/material/model/sound/resource. An even better method would b...
stealthpaw Developing Reply
[IMG]https://user-images.githubusercontent.com/2367602/28755154-c5fd8868-7597-11e7-855f-20bee32f275e.png[/IMG] [URL]https://github.com/mattkrins/gfodder[/URL] [t]https://cdn.discordapp.com/attachments/323588874905452554/341629464016322580/unknown.png[/t] [t]https://cdn.dis...
stealthpaw Developing Reply
Well that was too bloody close - I noticed my games HDD (obviously containing my gamemode) was going a bit slower then usual, so i did a scan and found a shit-ton of bad sectors. Immediately went out and bought a replacement today and I am currently in the process of backing u...
stealthpaw Developing Reply
[QUOTE=NeatNit;52499035]Yes, with [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/halo/RenderedEntity]halo.RenderedEntity[/url], see example usage at [url]https://github.com/Facepunch/garrysmod/blob/784cd57576d85712fa13a7cea3a9523b4df966b0/...
stealthpaw Developing Reply
Does anybody know if it's possible to use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/halo/Add]halo.Add[/url] without it rendering over 3D2D materials, just the model?
stealthpaw Developing Reply
[QUOTE=Minelayer;52494976]Space Engineers prepared me for this.[/QUOTE] Reminded me more of Shattered Horizon.
stealthpaw Developing Reply
[url]https://facepunch.com/showthread.php?t=1560743&p=52492165#post52492165[/url]
stealthpaw Developing Reply
[QUOTE=pierre0158;52489532]okwhat restarting gmod fixed it spooky[/QUOTE] Looks like some junk data somehow made it's way into your net.Write call.
stealthpaw Developing Reply
Any Mappers available? My gamemode is nearly finished and it can use any map. That being said, a (simple) custom map would certainly add some icing to the cake.
stealthpaw Developing Reply
That shit-posting from before has [URL="http://i.imgur.com/frE7mp0.jpg"]really screwed[/URL] with the rendering of this page for me lol.
stealthpaw Developing Reply
[QUOTE=colincooke;52340258]Children shouldn't be playing per the Steam subscriber agreement[/QUOTE] "I don't think thing should happen, so it isn't." Ignorance is bliss as they say.
stealthpaw Addons Reply
[QUOTE=colincooke;52338694]I don't see any rationale for this add-on over using Win+L[/QUOTE] You must be a highly intelligent unbiased rationally thinking individual then. What if someone only has access to a family computer which imposes a no personal accounts/passwords rul...
stealthpaw Addons Reply
[QUOTE=CelaeonSan;52336554]I believe you'd just have to reconnect to the server, I think passwords are per connection.[/QUOTE] It is actually per server. If you disconnect while locked, when you rejoin it will still be locked. To reset a password the server will need to be...
stealthpaw Addons Reply
Sick and tired of your siblings trying to interfere with your game while you go AFK? Ever needed that little bit more privacy or a way to password protect your game session without logging off? [B]Introducing Gmod Locker![/B] [img]http://i.imgur.com/Tn3iq6b.png[/img] [QUOTE...
stealthpaw Addons Reply
Gmod Locker
stealthpaw Addons Thread
[QUOTE=Robotboy655;52323779]net library.[/QUOTE] So is the net library faster & more efficient then concommands?
stealthpaw Developing Reply
I accidentally did IsValid(string) just yesterday, i expected it to return false, but it certainly didn't get suck in a loop - it just spat out an error.
stealthpaw Developing Reply
Although i have exams over the next couple of weeks i'm totally interested. [URL="http://steamcommunity.com/id/stealthpaw"]http://steamcommunity.com/id/stealthpaw[/URL]
stealthpaw Developing Reply
I was wondering if it was possible and sure enough: [video=youtube;u2JIH-sUniM]https://www.youtube.com/watch?v=u2JIH-sUniM[/video] Just threw it together tonight so it doesn't have the best timing or any polish, but the proof of concept is solid. For those wondering it is e...
stealthpaw Developing Reply
[QUOTE=Fillipuster;52177358]Any [URL="https://www.gmodstore.com/scripts/view/3864"]inspirational sources[/URL] you forgot to credit? :P[/QUOTE] I don't see you crediting any of the 50 or more "crafting tables" that came before yours, Mr Hypocritical.
stealthpaw Developing Reply
[QUOTE=Potatofactory;52081083] - Optimise everything! - Add proper documentation [/QUOTE] This is also what i say before i drop my project and never look at it again. :cool:
stealthpaw Addons Reply
[QUOTE=aaronuk12;52029804]This is awesome, only suggestion is to have it where you can disable the borderlands 'Hyperion' logo and keep it as a generic sci-fi spawner so that Star Wars RP servers or any sci-fi server can use it.[/QUOTE] But it's not a generic sci-fi spawner.
stealthpaw Addons Reply
[video=youtube;ffv4m33i-Sc]https://www.youtube.com/watch?v=ffv4m33i-Sc[/video] I have another 2-3 death screens in the works. Since there are so many to choose from, made a faux entitiy to switch between them quickly without using the console. [t]http://i.imgur.com/Raqn...
stealthpaw Developing Reply
Bump. Updates applied: - Added the Registration station from Borderlands 1. - Slight GUI changes. - Changed/Improved the spawn effect. [t]http://i.imgur.com/yGAv1PU.png[/t][t]http://i.imgur.com/E2z3Hmb.png[/t][t]http://i.imgur.com/1WANlL0.png[/t]
stealthpaw Addons Reply
[QUOTE=coolcat99;51995222]I could have sworn I saw it in WAYWO quite a few months back[/QUOTE] Yeah, there was something similar i think but that was an effect of sorts (i asked the guy how he did it because i was so impressed, but he didn't tell me :glare: ) [B][EDIT][...
stealthpaw Addons Reply
Update released: - Improved spawn camera/effect as requested. - Changed cVar NewU_Clear to NewU_ClearSpawn - Added cVars: NewU_PlayQuotes, NewU_SpawnEffects, NewU_DeathEffects, NewU_CanClearSpawn - General improvements/fixes [QUOTE=BeZerk;51994865]I love you for this, ...
stealthpaw Addons Reply
[B]The Borderlands New-U Station[/B] Ever wanted to (literally) re-live the Borderlands experience in Gmod? Well now you can! [video=youtube;I5FOuIwIZa4]https://www.youtube.com/watch?v=I5FOuIwIZa4[/video] [QUOTE] New-U Stations are terminals from the Borderlands series that...
stealthpaw Addons Reply
Borderlands New-U Station
stealthpaw Addons Thread
Starting to run out of fun memes to use. [video=youtube;WJtlxHTtvzU]https://www.youtube.com/watch?v=WJtlxHTtvzU[/video]
stealthpaw Developing Reply
Adding comic relief laughter reels to my [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=877271291"]Seinfeld[/URL] addon when the player takes damage. [video=youtube;380kr3WEO30]https://www.youtube.com/watch?v=380kr3WEO30[/video] Why am i making this meme add...
stealthpaw Developing Reply
[QUOTE=a1steaksa;51740868]You might want to consider changing the "Add" button to an "Edit" button and add a way to edit or remove loadouts because as far as I can see there isn't a way to.[/QUOTE] [QUOTE=101kl;51740489]I didn't show it in the video but you can also right c...
stealthpaw Developing Reply
[QUOTE=a1steaksa;51739509]So I've taken an hour or so and put together a quick police weapon locker.[/QUOTE] Funnily enough, i also decided to quickly put something together when i saw what he was looking for. [video=youtube;-keXe2X0eNc]https://www.youtube.com/watch?v=-keXe2X...
stealthpaw Developing Reply
[QUOTE=StickmanJohn;51721411]by keys i mean my swep keys[/QUOTE] And it doesn't touch anything to do with SWEPS. My code works perfectly fine and should not conflict with anything. You have broken your gamemode/sweps. Not me.
stealthpaw Developing Reply
[QUOTE=StickmanJohn;51713737]thank you! completely removes all keys functionality in my gamemode :)[/QUOTE] No idea how you managed that; this code doesn't override the Use function, it only hooks into it: [LUA]hook.Add( "KeyPress", "Interactive2D3DKeyPress", function( _, ke...
stealthpaw Developing Reply
I found the existing 2D3D interaction libraries to be pretty confusing so using examples from others i made my own simplified one. [LUA] local Interactive2D3D = {} Interactive2D3D.IsVisible = function(self) return (self.Visible or false) end Interactive2D3D.Start = funct...
stealthpaw Developing Reply
[QUOTE=Sonador;51653939]I'd agree, but no, really, the map has a lot of impact. [/QUOTE] Again, this is an administration problem. There are so many good maps to choose from now it really is a non-issue. If a server owner chooses a shit, unpopular or abuse-able map then they s...
stealthpaw Developing Reply
[QUOTE=darth-veger;51653923]Actually, the map has a lot to do with how the RP is being played out as some maps are more easily to be abused then others.[/QUOTE] You don't need a certain map to role play. If someone is abusing a map then that is a player/administration probl...
stealthpaw Developing Reply
What maps to use are entirely up to the server owner, it really isn't a thing to discuss here.
stealthpaw Developing Reply
[QUOTE=legendofrobbo;51620674]enjoy being mass spammed by every genericRP owner asking if their server can be on the list[/QUOTE] Thankfully FPtje is already accustomed to mass spam and has established a forum to help manage it.
stealthpaw Developing Reply
[QUOTE=FPtje;51616637]If I do start a server/community, I might have to delegate quite a bit of the administration work.[/QUOTE] One way you might be able to avert this is by having a 'verified' server list that you have personally or delegated others you trust to join and...
stealthpaw Developing Reply
[QUOTE=Tangyboxhead;51550076]More progress on my railcar[/QUOTE] Looks good, but you might be better off making a progress thread in the [URL="https://facepunch.com/forumdisplay.php?f=40"]modelling[/URL] sub-forum. [B][edit] [/B] PageKing, have some content: [vid]https://my....
stealthpaw Developing Reply
[QUOTE=LeeTheCoder;51283472]Oh, I see. I forgot about the GitHub releases thingy. I guess I'll have to try that, thanks! But how would I go about making it display only once? Convars perhaps? [editline]30th October 2016[/editline] I thought I could do it with convars...
stealthpaw Developing Reply
[QUOTE=Plowed;51237224]This would be neat to slap into a TTT server for people to mess around with when they're bored but I assume it isn't TTT compatible is it?[/QUOTE] It should be compatible with any gamemode.
stealthpaw Addons Reply
[QUOTE=Redfiend;51194235]It should also randomly crash and sometimes get stuck at a loading screen just because reasons[/QUOTE] This may, or may not be a feature. For greater authenticity as per is the standard Niantic, Inc. policy, i will not be issuing any kind of statemen...
stealthpaw Addons Reply
Working on 2D3D Interactive PokeGyms for my [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=776218747"]addon[/URL]. [t]https://puu.sh/rDLlu/6b5b8eb7db.png[/t] The NPC model spins and the 2D3D stadium lights are animated to spin around the stadium.
stealthpaw Developing Reply
[QUOTE=SatoshiAaron;51175962]I love the idea... But did it have to be Pokemon Go themed? I get that it's the in thing at the moment, but it annoys me that Pokemon Go changes too much about the real Pokemon that people see it this way.[/QUOTE] I mean sure i could have just a...
stealthpaw Addons Reply
[QUOTE=XxLMM13xXx;51170907]You should upload a video and release it to github[/QUOTE] I'm not good at videos, but i might make one eventually... As for GitHub, i usually do use it but since the script is not designed to be modified i'm going to keep it on just the Worksho...
stealthpaw Addons Reply
[QUOTE=BigBadWilly;51169473]Looks Great! Thank you for releasing this[/QUOTE] Thanks. It's funny, i did the main/bulk of the code overnight a few weeks back but it took me a few weeks of slow on/off coding to get it release-worthy.
stealthpaw Addons Reply
GarrýMon
stealthpaw Addons Thread
[IMG]http://i.imgur.com/48NcMuo.png[/IMG] [I][B]GarrýMon[/B][/I] [B]About:[/B] This is a Pokemon GO Simulator that will let you capture and battle NPC's. [t]http://i.imgur.com/qKB4OcD.jpg[/t] Everything works fairly similar to PokeMon GO, but if you have any other...
stealthpaw Addons Reply
Putting the finishing touches on v1.0 of my GarrýMon addon, hopefully releasing on workshop today. [t]http://i.imgur.com/B3jhm2h.jpg[/t] [edit] Aaaand [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=776218747"]done.[/URL] [URL="http://steamcommunity.com/sha...
stealthpaw Developing Reply
So i decided to give these pokemans a try. [video=youtube;E8jHdq-gWCg]https://www.youtube.com/watch?v=E8jHdq-gWCg[/video] Notes: Walk to hatch eggs, they will give you a random NPC with random stats etc. After releasing a pokemon you can tell it to go somewhere or atta...
stealthpaw Developing Reply