177 Results
[QUOTE=Skere_;49159941]I'm making a bot that answers to questions players type in. The server admins can configure the a few things like community name, community link and a few other things. This bot currently has over 300 if statements (and still increasing). On my own serve...
ash47 Developing Reply
[QUOTE=PortalGod;48281711]I didn't literally mean awesomium or scaleform, I meant something [i]like[/i] them[/QUOTE] Panorama please :) [url]https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Panorama[/url]
ash47 Developing Reply
[QUOTE=Teddi Orange;48185011]Not true. It's possible to remove them without affecting the checksum and indeed is used to keep maps 'private'. As long as the server has the full version of the map, the appropriate entities get networked down anyways.[/QUOTE] Ok, I have edit...
ash47 Developing Reply
[QUOTE=Jcw87;48182938]Did you know that individual map lumps can be overridden without changes to the BSP? I think that this can be used to override the Entity lump on the server without the clients having to know anything about it. [url]https://developer.valvesoftware.com/...
ash47 Developing Reply
Change the name of it, googling for Garry's Mod 2 resources is going to be a nightmare and I will always end out finding gmod1 resources :/
ash47 Developing Reply
I also noticed there seems to be a lot of stuff missing. Another thing to watch out for: If you put obstacles in the way of NPCs, they will just walk into them, and get stuck >_> I can't really answer your question though, all I can recommend is maybe using the player spawn...
ash47 Lua Developer Discussion Reply
You can use this to make custom "trigger brushes" entities/some_ent/init.lua -- server sided only [code]ENT.Base = "base_brush" ENT.Type = "brush" -- Updates the bounds of this collision box function ENT:SetBounds(min, max) self:SetSolid(SOLID_BBOX) self:Set...
ash47 Developing Reply
Is there a special order to PhysicsFromMesh() ? Sometimes when I use it, it works flawlessly, other times, I seem to get "random" collisions happening. I've even tried passing the collision meshes into BuildFromTriangles(), and rendering them -- They look like what I would exp...
ash47 Developing Reply
[QUOTE=ExtReMLapin;44827688]Hello Conna. [editline]now[/editline] [CODE]int IsDebuggingModule() { return 0; }[/CODE] REALLY ? :v:[/QUOTE] Yes, it's probably a #define at the start of their code...
ash47 Lua Developer Discussion Reply
[QUOTE=CrashLemon;44776916]DB scheme for a project (idea) of mine: (This is MySQL Workbench for those of you wondering) [IMG]http://i.imgur.com/0pNuB7W.png[/IMG][/QUOTE] Since the source engine uses floats for coordinates (correct me if I'm wrong), wouldn't it make m...
ash47 Lua Developer Discussion Reply
[QUOTE=nickster50;44755526]Great fix. I suggest moving the spawns to the town though.[/QUOTE] I thought about moving the spawns, and ultimately decided it's EASY to do with Lua, and hence, if people need custom spawns, they can easily do that themselves. There will be load...
ash47 Lua Developer Discussion Reply
More BSP editing, I now know how to edit displacements, and was able to fix this one where people would always crash into with their vehicles: BEFORE: [thumb]http://i.imgur.com/pvNvejY.jpg[/thumb] AFTER: [thumb]http://i.imgur.com/jH7oPPs.jpg[/thumb] edit: Uploade...
ash47 Lua Developer Discussion Reply
[QUOTE=vexx21322;44697409]The current popular version of prophunt going around is pretty terrible.[/QUOTE] Oh, I've never really played it, I join a server, wait forever, then get killed straight away because I'm no good at it, and I've certainly not seen the code for it ...
ash47 Lua Developer Discussion Reply
[QUOTE=Giraffen93;44696952][t]http://f2.braxupload.se/lud1gs.jpg[/t] Seems to be pretty stable now, anyone wanna try it out?[/QUOTE] Nice! But I swear prop hunt already exists for the current gmod, I've seen MANY servers recently with it on...
ash47 Lua Developer Discussion Reply
Why not just use the advanced duplicator?
ash47 Developing Reply
[QUOTE=Funley;44362671]What actually is it that makes people crash when entering the cave?[/QUOTE] It's the angle of the displacements, the physics engine doesn't like it when you walk on them, it's like it tries to lift you up (as you walk up the ramp thing) then you hit ...
ash47 Developing Reply
Before: [thumb]http://i.imgur.com/FBS2P8Y.jpg[/thumb] After: [thumb]http://i.imgur.com/GfDjjAs.jpg[/thumb] I can now fully remove the cave, including the collisions, with no other map side effects! Using McSimp's module, we were able to load my modified map on the s...
ash47 Developing Reply
Update on that evocity patch: [thumb]http://i.imgur.com/C8Hol1Y.jpg[/thumb] McSimp wrote a module to load my modified map on the server, while the clients load the regular map, the cave no longer crashes, the way it's patched at the moment, it has very weird collisions, ...
ash47 Developing Reply
I wrote a script for removing displacements by modifying BSP files. [thumb]http://i.imgur.com/ZeA3wAI.jpg[/thumb] Pictured is evocity with the cave removed. [thumb]http://i.imgur.com/FBS2P8Y.jpg[/thumb] The same location (different angle) with the cave.
ash47 Developing Reply
[QUOTE=ralle105;43303245]So if I wanted to test for 1 and write 2 I would set the reference value to 3? (1 | 2)[/QUOTE] What if you wanted to test for 2 and write 1? (2 | 1) = 3, that doesn't make sense :P
ash47 Developing Reply
What he means by 60/40 is that the coder would be 60% :P
ash47 Developing Reply
[QUOTE=Instant Mix;43083224]it's using the Swep Construction kit base code where VElements is a constantly drawn table, the thing is though, If i do [code] self.VElements["GearSmall"].angle.y = self.Potato self.Potato = self.Potato + 1 [/code] then it spins at a rate of...
ash47 Developing Reply
idk if gmod has changed or something, but I've never seen: [code]DEFINE_BASECLASS("base_anim")[/code] Back when I used to do this stuff, it was done with: [code]ENT.Type = "anim"[/code] I'm not sure if it's needed, but you may need: [code]function ENT:Draw() self:...
ash47 Developing Reply
gamemodes/<gamemode name>/entities/entities/<ent name as a folder (possibly no spaces?)> and in that folder, you need an init.lua, for example: [code]ENT.Base = "base_point" ENT.Type = "point" function ENT:KeyValue( key, value ) key = string.lower(key) if (key == "...
ash47 Developing Reply
[QUOTE=Ultravisitor;43000227]I have a mapper who is working on a map, the one I have is just for testing and the locations, distances and such will change map-to-map so I need the code to be flexible and work with any map no matter where the entities are. Is this possible usin...
ash47 Developing Reply
[QUOTE=FlameCow;42887956]Haven't messed with Derma in a while and just finished making a shop type thing. Does it look alright? [img]http://i.imgur.com/z0EmGdW.png[/img][/QUOTE] Personally, If I was using it, I'd rather just use one scroll bar for the entire thing :P
ash47 Developing Reply
According to photoshop, there is no interlacing on the image. I'm using 256 x 256 image (or how ever big) because most of it isn't drawn yet, I will eventually fill up the entire image, just haven't gotten that far yet. I'm hoping imgur doesn't compress it: [img]http://i.im...
ash47 Developing Reply
[code]x % 700[/code] % means modulo, It does x / 700 and gives you the remainder :P
ash47 Developing Reply
I have the following code: [CODE]hook.Add('HUDPaint', 'TestHud', function() local mat = Material('test.png') surface.SetMaterial(mat) surface.SetDrawColor(255, 255, 255, 255) surface.DrawTexturedRect(32, 32, 1024, 1024) end)[/CODE] The material is a 256 X ...
ash47 Developing Reply
surface.DrawTexturedRect not rendering correctly?
ash47 Developing Thread
530 Login authentication failed You didn't even add the username or password to your ftp account, how are people meant to access it?!? But yes, you should do http, not ftp
ash47 Developing Reply
You're joking right? The donation system you linked HAS A FULL TUTORIAL on how to install it? How hard is it to follow a tutorial? Regardless of weather or not you use mysql, you still need some sort of a database, and trying to use something like json or XML will just over co...
ash47 Developing Reply
Assuming you're running PHP, just grab someone's rcon library, after 2 seconds of googling: [URL="https://github.com/xPaw/PHP-Source-Query-Class"]https://github.com/xPaw/PHP-Source-Query-Class[/URL] Then just do a basic form submit sort of thing, and have it run the rcon c...
ash47 Developing Reply
install one of those gateway addons for rcon :P
ash47 Developing Reply
[QUOTE=KatNotDinner;41465702]Solved thanks to Wizzard of Ass. Thread can be closed.[/QUOTE] Why not post the solution so those googling and finding this thread also have the answer?
ash47 Developing Reply
[QUOTE=Badutski;41466437]Thanks :) Never seen that before and ive been looking everywhere ..[/QUOTE] Obviously not everywhere >_>
ash47 Developing Reply
Well Mikkel, we can't read minds, post the code and we can help :P
ash47 Developing Reply
To answer your question, the odds are 0 in 100.
ash47 Developing Reply
In SHARED, change: GM:SetupMove(ply, data) You could either use data:SetVelocity(xxx) or data:SetForwardSpeed(xxx) and data:SetSideSpeed(xxx) and data:SetUpSpeed(xxx) the code would run on the client and server if you did it in shared, so no "hacking" etc could happen...
ash47 Developing Reply
There is probably a list of dlabels somewhere, if you could find said list, you could loop through them all, check if they have a parent or not, and remove them if they have no parent...
ash47 Developing Reply
Nothing original but: I wrote a script that strips all the comments, and puts everything onto a single line, and I can tell it which files can be merged together, and it does that, and it also has a list of variables it can change :D
ash47 Developing Reply
Use a weld, if you use the vector idea, the entity could go through the world, and probably wont collide with anything, since you're simply setting it's position.
ash47 Developing Reply
[QUOTE=For Science;40293697]I AM!! I am converting vectors in a think hook! I have to convert two vectors from local to world and from world to a different local each think!! Is that going to be more expensive?[/QUOTE] Depends what the physics objects are doing, if they ar...
ash47 Developing Reply
[quote]how do I fix it?[/quote] Debug it. 0) Go into init.lua and cl_init.lua, turn everything into a comment (add --[ before the start and ]-- at the end.) 1) Load up the gamemode, does it still crash? Yes) You found your problem. No) uncomment the next couple of l...
ash47 Developing Reply
I learnt how to do this in Linear Algebra :D It uses Vector Projections, from the looks of things, the post above mine has covered it very well :P
ash47 Lua Developer Discussion Reply
[QUOTE=NightmareX91;40249085]And a SkyHook SWEP.[/QUOTE] And a chick who throws you guns :P
ash47 Developing Reply
[QUOTE=garry;40242426]This is just the way it works internally. A lot of Valve's scripts test the position to see if it's moved in x seconds. If it hasn't then it calls onstuck manually. Maybe the MoveTo function should do that - or maybe I should change the engine code to do ...
ash47 Developing Reply
I don't think ENT:OnStuck() it working properly, In a map, there are some props which block the npc, the npc gets stuck in them, and it takes around 10 seconds before ENT:OnStuck() is called (maybe I did something wrong?) [url]http://i.imgur.com/JHyZ2Ri.jpg[/url] [code]l...
ash47 Developing Reply
[QUOTE=garry;40217342]Yeah, spawn not being called is your problem.[/QUOTE] Wait what? I was having trouble spawning client side entities, then I read that you removed spawning client side entities in a gmod 13 update, so I stopped trying...
ash47 Developing Reply
[QUOTE=Crapy;40216016]Did you put it in a shared lua file?[/QUOTE] Ya, but he didn't AddCSLuaFile because you didn't add that line :P
ash47 Developing Reply
I'm working on my original gamemode Blark Bloleplay.
ash47 Developing Reply
[QUOTE=Leystryku;40040751]There's 1 problem, let's say a player is fully new to gmod and the server has got like 50 maps it'll say he's missing nearly every map. That would be quit annoying.[/QUOTE]Or even new to the gamemode, loads of gamemodes like Zombie related ones have d...
ash47 Developing Reply
[QUOTE=Nak;40031965]And a mapvote-system that warn the client if if he/she doesn't have that map.[/QUOTE] Why? Just install a FastDL, and then it won't matter, and if everyone else votes for that given map, it really doesn't matter if that person is missing the map...
ash47 Developing Reply
Assuming this is for DarkRP? Doesn't the gun lab have spinning rotating text above it? Maybe grab the code from the gun lab, and just change the model?
ash47 Developing Reply
IMO, as far as RP server goes, I think all props should either be: i) Frozen, and fully collide against everything ii) Unfrozen and collide with nothing else, except other frozen props, and the world (including doors etc) Just my opinion, on Aussie servers, when people m...
ash47 Developing Reply
I would recommend waiting for the nextbot stuff that garry is working on, if not, read on: I was able to do this with lua (lol), my way is very dodgy though, as you're not meant to do it. [lua]-- Remove our enemy: v:SetEnemy() v.Enemy = nil -- Walk to position: v:S...
ash47 Lua Developer Discussion Reply
I know you solved it by removing the spawn thingo but: [lua]local Spawn = {} Spawn[1] = { Ent = "npc_car_dealer", Pos = Vector(-1621.910767, -1584.883545, -54.160973), Ang = Angle(0, 180, 0) } function SpawnEnts() for k, v in pairs(Spawn) do local ent = ents...
ash47 Developing Reply
[QUOTE=YoshieMaster;39717436]He's checking that IsDetective is not Nil and then actually checking the result of it.[/QUOTE] But wouldn't IsDetective be a meta function, so it's always defined? Assuming you're running this client side, it's failed because it's storing Lo...
ash47 Developing Reply
[QUOTE=Drakehawke;39654915]Should make them stored online and let anyone contribute, then it could be really powerful[/QUOTE]Agreed, as long as it has spam control, and GOOD filters, It would be cool for Garry to do something like this, and use the workshop...
ash47 Developing Reply
[QUOTE=grobov13;39641950]This one is kinda simple. I just use 2 textures for mana and health and rotate them while clipping with ScissorRect: [code] render.SetScissorRect( size about 50% of hud, true) surface.DrawTexturedRectRotated(......, rotation based on health/mana a...
ash47 Developing Reply
assuming they are in the same ent: [lua]local ragdoll = false function ENT:Initialize() blablabla... ragdoll = ents.Create("prop_ragdoll") ragdoll:Spawn() end function ENT:Think() blablabla... if ragdoll then ragdoll:Remove() end ...
ash47 Developing Reply
[QUOTE=Nak;39573370]Normally with 60+ HL2 zombies, it will lag even the best servers when 30 people are connected. I guess it's the source code that keep updating all the 'useless' animations/tasks. You could make a simple 'entity_dummy' that get rendered on the client an...
ash47 Developing Reply
I have two dpanels that are 640 x 480, they are they don't render a background (as intended), but they do have content on them. If one overlays the other, it stops me from pressing the buttons on the panel that is under the other, causing me issues. Is there a way I can ...
ash47 Developing Reply
[QUOTE=CrashLemon;39570252]Optimization. Not using useless expensive stuff.[/QUOTE] What sort of zombies though? We talking HL2 zombies, or your own?
ash47 Developing Reply
[QUOTE=MacDGuy;39563146]I rarely post in here, but I figured I'd start. Been working on a Minigolf gamemode as of late. [video=youtube;67gvT-vsLv4]http://www.youtube.com/watch?v=67gvT-vsLv4[/video][/QUOTE] I'd love it if you had the option to allow everyone to go at onc...
ash47 Developing Reply
[QUOTE=Neo Kabuto;39567338]It's from a 2D perspective. The DS NSMB actually just used sprites made from renders of 3D models for the graphics.[/QUOTE] So does the Wii version, I know because of the way it scales in Dolphin :P
ash47 Developing Reply
[QUOTE=Failure;39565809]The point of this shitfest is that this guy started another overcomplicated project and asks for help without providing any real proof of his own work.[/QUOTE] Well, I have an idea on getting it started, probably not gonna bother taking it much furth...
ash47 Developing Reply
The point is, Garry's Mod is a 3D engine, and isn't meant for 2D games! I have one proof of concept idea that might actually work for this, I'll try it tonight, and post it if it works :P
ash47 Developing Reply
[QUOTE=luavirusfree;39549051]No, that isn't orthographic (I know because I see perspective distortions.) With orthography, you will see only anything facing the camera (IE: If the camera looks straight at a 0,0,0 angle, it will only see the faces of brushes that are looking a...
ash47 Developing Reply
I want to save the "state" of a vehicle, it's position, angles, and velocity. It seemed simple enough, I managed to save position, and angle no worries. The problem comes with restoring the velocity, when I do AirBoat:SetVelocity(velocity), it doesn't do anything, I thin...
ash47 Developing Reply
Why rate him dumb? He's correct, you should save it to a .txt file using file.Write, you can use a text entry derma panel for editing, or they can jsut edit the .txt file directly...
ash47 Developing Reply
[img]http://i.imgur.com/7sumH7H.png[/img] [img]http://i.imgur.com/rkHf33y.png[/img] [img]http://i.imgur.com/kdcParL.png[/img] I used to run a "puzzles" server, which was basically just js_build_maps (and a few others), going around in rotation, with a basic UI to help out...
ash47 Developing Reply
Sorry if this is off topic, but I was working on a sidescrolling gamemode a while back, would this be similar to the effect you were after? [img_thumb]http://cloud.steampowered.com/ugc/595862671460229209/D8B3A0CAA536E52AC12228AA30AAD56F9F83C56A/[/img_thumb] [img_thumb]ht...
ash47 Developing Reply
Wouldn't it cause a problem if a player disconnects? The timer would still reach 0, then it would do: if self:GetHunger() > 0 then but self would be nil as the player doesn't exist...
ash47 Developing Reply
[QUOTE=leflambikitue;39353770]It is in darkrp/gamemodes/server/main.lua It is like that : function GM:ShowHelp(ply) umsg.Start("ToggleHelp", ply) umsg.End() end I want to replace it with "say /contrat" i tried it does LUA errors[/QUOTE] Depends on the code you p...
ash47 Developing Reply
[QUOTE=Samg381;38968215]Because you were the one who died [editline]25th December 2012[/editline] I tried the 'NLR Reminder' on workshop but it fails to load in my addons[/QUOTE] oic, but what stops that person from just pressing it anyways? lol, I'm gonna stop posti...
ash47 Lua Developer Discussion Reply
[QUOTE=Bletotum;38962806]How could you possibly not know if an attack had any reason but to randomly deathmatch with other players?[/QUOTE] Player is refusing to leave my store, pulls out a weapon, and is threatening me, security guard has no choice but to shoot as there i...
ash47 Lua Developer Discussion Reply
How could you possibly know if it was RDM or not?
ash47 Lua Developer Discussion Reply
With the old SNPC stuff, you can tell them to target a prop. You can also set the NPC so it's friends with every player on the server (stopping them from shooting the players) and set their enemy to the prop... As far as coding it goes, all the SNPC stuff is sort of brok...
ash47 Developing Reply
[QUOTE=Ruzza;38850383]I miss glon, you could have just glon.encoded a table and saved it as a file, anywho if the person crashes the server or lags it out, they wont be listed in the table, thus its best to use the connection rather than disconnection.[/QUOTE] "For example...
ash47 Developing Reply
So, I'm assuming an admin was online at the time, if so: [lua]hook.Add( "PlayerDisconnected", "playerdisconnected", function(ply) PrintMessage( HUD_PRINTTALK, ply:GetName() .. " ( " ..ply:SteamID().." ) has left the server." ) --file.Append("logs.txt", ply:SteamID()...
ash47 Developing Reply
Entity.SetRenderBounds ( [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index949a.html[/url] ) ?
ash47 Lua Developer Discussion Reply
[QUOTE=Acecool;38769244]Use [lua]self:CapabilitiesAdd( CAP_ANIMATEDFACE + CAP_TURN_HEAD )[/lua] in ENT:Initialize() ENUMs are usually designed in such a way that they can be added together. Scripted entities are still working and functional.[/QUOTE]Ya, that's what I wa...
ash47 Developing Reply
I found some SNPCs on the workshop, I'm gonna look at those to help me learn :P
ash47 Developing Reply
[QUOTE=Ylsid;38752542]Garry removed snpc functions a while ago while he works on better alternatives. Who knows why he removed them before any were added...[/QUOTE] Thanks, you have no idea how useful that is :P
ash47 Developing Reply
I've been trying to get a basic SNPC working, copied the code from: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexde03.html[/url] Replaced: [code]self:CapabilitiesAdd( CAP_MOVE_GROUND | CAP_OPEN_DOORS | CAP_ANIMATEDFACE | CAP_TURN_HEAD | CAP_USE_SHOT_...
ash47 Developing Reply
Basic SNPC?
ash47 Developing Thread
[QUOTE=Stiveno;38751596]I never really post in this thread, but I thought that this might be worthy. Started doing lua work because I couldn't really find anybody who wanted to help me out with what I need, im still pretty bad with it. I took a bunch of screenshots of the ...
ash47 Developing Reply
I've been trying to get a basic SNPC working, copied the code from: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexde03.html[/url] Replaced: [code]self:CapabilitiesAdd( CAP_MOVE_GROUND | CAP_OPEN_DOORS | CAP_ANIMATEDFACE | CAP_TURN_HEAD | CAP_USE_SHOT_...
ash47 Developing Reply
Can't you link us?
ash47 Developing Reply
[url]http://www.facepunch.com/showthread.php?t=1228429[/url]
ash47 Developing Reply
They networked the kinect in lots of 360 games, must be possible :D
ash47 Developing Reply
Kinect Question: Is it / will it be networked?
ash47 Developing Reply
[QUOTE=hatton700;38586220]Hey, Has base wars been converted to gmod 13 yet? if so is it publicly available does anyone know? Regards Aaron[/QUOTE] someone i know runs a gmod 13 basewars server, so yes. No idea about links / public availability though...
ash47 Developing Reply
[QUOTE=Jongunner;38548940]I request someone who can code an NPC for darkrp, but it's a car dealer. It's the only place you can buy cars, but also, when a player d/c's, it will save the car as there own personal inventory. SO pretty much, an NPC to sell cars, and an inventory...
ash47 Developing Reply
[QUOTE=Turtle95;38491813]Sorry, I fixed it. I wanted that the player touched an entity spawned by the SWEP. I figured it out.[/QUOTE] Post the solution? I have when people say "I figured it out" then fail to tell us how they did it >_>
ash47 Developing Reply
If you pay someone, they might :D
ash47 Developing Reply
[QUOTE=derp97;38339184][B]What i need done:[/B] - Custom HUD [B]What im willing to pay:[/B] - Custom HUD 5$ [B]Contact[/B] [url]http://steamcommunity.com/id/stormthepro/[/url][/QUOTE] Depends on the custom hud really, for which gamemode? [quote] I was interes...
ash47 Developing Reply
[QUOTE=Spencer Sharkey;38299244]Don't make errors. [editline]3rd November 2012[/editline] Also just curious - does that error list display server-side errors and errors on SRCDS?[/QUOTE] Most of my errors are errors because of simple spelling mistakes, I often live d...
ash47 Developing Reply
[QUOTE=McDunkable;38294579]Okay so after updating my server I realized that the gamemode name that shows in the server browser changed to my gamemodenameherelol.txt file, for example garry.txt instead of GM.Name = "Garry Awsum " .. GM.Version Why is this happening ? It kind...
ash47 Lua Developer Discussion Reply