1. Post #241
    Gold Member
    raBBish's Avatar
    March 2007
    2,667 Posts
    Facepunch search sucks balls, so have this list compiled from google search, cache and wayback machine. Just in case someone wants to make a website with a list of them.
    It's probably missing some modules due to holes in the cache and archive (both only had the first page of binary modules)

    iphax: http://facepunch.com/showthread.php?t=1151450
    gm_luaerror: http://facepunch.com/showthread.php?t=859872
    gmcl_downloadfilter: http://facepunch.com/showthread.php?t=949401
    gm_bass_edit: http://facepunch.com/showthread.php?t=1159184
    gm_mysqloo: http://facepunch.com/showthread.php?t=933647
    gm_debugger: http://facepunch.com/showthread.php?t=1005357
    gmsv_rcon: http://facepunch.com/showthread.php?t=948263
    gm_process: http://facepunch.com/showthread.php?t=1195161
    gmcl_joystick: http://facepunch.com/showthread.php?t=403669
    gm_navigation: http://facepunch.com/showthread.php?t=953805
    gmsv_timeout: http://facepunch.com/showthread.php?t=803617
    gmsv_luamd5: http://facepunch.com/showthread.php?t=965500
    gmsv_gatekeeper: http://facepunch.com/showthread.php?t=695636
    gm_winapi: http://facepunch.com/showthread.php?t=1056208
    gm_steamworks: http://facepunch.com/showthread.php?t=823783
    gm_glsock: http://facepunch.com/showthread.php?t=1136961
    astar: http://facepunch.com/showthread.php?t=254059
    gm_mysql: http://facepunch.com/showthread.php?t=241247
    gm_command: http://facepunch.com/showthread.php?t=697445
    gm_speak: http://facepunch.com/showthread.php?t=718033
    gm_botcontroller and gm_aigraph: http://facepunch.com/showthread.php?t=736452
    gm_sourcenet3: http://facepunch.com/showthread.php?t=1040338
    gm_enginespew: http://facepunch.com/showthread.php?t=859870
    gm_io: http://facepunch.com/showthread.php?t=1171684
    gm_oosocks: http://facepunch.com/showthread.php?t=934006
    gm_concmdhook: http://facepunch.com/showthread.php?t=994287
    gmsv_furryfinder: http://facepunch.com/showthread.php?t=996309
    gm_yahm: http://facepunch.com/showthread.php?t=1081654

    gm_heap: http://www.facepunch.com/showthread.php?t=977995
    gm_clua: http://www.facepunch.com/showthread.php?t=920231
    gmcl_g19: http://www.facepunch.com/showthread.php?t=986126
    gmsv_gsapi: http://www.facepunch.com/showthread.php?t=996941
    gm_queryphys: http://www.facepunch.com/showthread.php?t=949119
    gm_sentences: http://www.facepunch.com/showthread.php?t=995054
    gmsv_datadesc: http://www.facepunch.com/showthread.php?t=793002
    gm_g15: http://www.facepunch.com/showthread.php?t=419645
    gm_svn: http://www.facepunch.com/showthread.php?t=774190
    gm_cvar2: http://www.facepunch.com/showthread.php?t=729841
    gmsv_vphysics (deprecated): http://www.facepunch.com/showthread.php?t=585848
    gm_itunes: http://www.facepunch.com/showthread.php?t=835692
    gm_litesocket: http://www.facepunch.com/showthread.php?t=986055
    gm_crypto I guess: http://www.facepunch.com/showthread.php?t=463999
    gm_hio: http://www.facepunch.com/showthread.php?t=970999
    gm_curly: http://www.facepunch.com/showthread.php?t=974310
    gm_beep: http://www.facepunch.com/showthread.php?t=774379
    gm_geoip: http://www.facepunch.com/showthread.php?t=969950
    gm_processor: http://www.facepunch.com/showthread.php?t=297017
    gm_chrome: http://www.facepunch.com/showthread.php?t=704294
    gm_rawio: http://www.facepunch.com/showthread.php?t=463961
    gm_luaprof: http://www.facepunch.com/showthread.php?t=742532
    gm_cmd: http://facepunch.com/threads/464014
    gm_vfs: http://facepunch.com/showthread.php?t=1094565
    gm_faceapi: http://facepunch.com/showthread.php?t=1107849
    gm_laserjet: http://facepunch.com/showthread.php?t=1155205

    gm_python: http://facepunch.com/showthread.php?t=835957
    gm_rawpacket: http://facepunch.com/showthread.php?t=888972
    gm_hwid: http://facepunch.com/showthread.php?t=1108453
    gm_modelinfo: http://facepunch.com/showthread.php?t=802281
    gm_console: http://facepunch.com/showthread.php?t=723687
    gm_ruby: http://www.facepunch.com/showthread.php?t=839641
    luasocket: http://facepunch.com/showthread.php?t=495940

    gm_lpeg: http://facepunch.com/showthread.php?t=750140
    gmsv_networktables: http://facepunch.com/showthread.php?t=754185
    gm_eifaces: http://facepunch.com/showthread.php?t=891824
    gmsv_pvs: http://facepunch.com/showthread.php?t=953788
    gmcl_renderx: http://facepunch.com/showthread.php?t=620137&page=7
    gm_bitflags: http://facepunch.com/threads/1159471
    gm_image: http://facepunch.com/threads/730661

    gm_memory: http://facepunch.com/threads/520896
    gm_zlib_b64: http://facepunch.com/threads/481268
    gm_cryptopeepee: http://facepunch.com/threads/1018405
    gmsv_bot: http://facepunch.com/threads/330732
    winamp: http://www.facepunch.com/showthread.php?t=479470
    Reply With Quote Edit / Delete Windows 7 Finland Show Events Friendly x 23Winner x 10Artistic x 1Informative x 1Useful x 1 (list)

  2. Post #242
    Nexus435's Avatar
    July 2010
    1,458 Posts
    Facepunch search sucks balls, so have this list compiled from google search, cache and wayback machine. Just in case someone wants to make a website with a list of them.
    It's probably missing some modules due to holes in the cache and archive (both only had the first page of binary modules)
    Would be nice if the list would be put in the next WAYWO OP.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 2 (list)

  3. Post #243
    Map in a box's Avatar
    July 2009
    7,073 Posts
    I uh


    Edited:

    and uh http.Get("http://dl.dropbox.com/u/4992578/starwars.txt","",function(content)
    Reply With Quote Edit / Delete Windows XP United States Show Events Funny Funny x 7Winner Winner x 1 (list)

  4. Post #244
    Dragon Dildoes
    Dennab
    April 2009
    4,432 Posts
    Why is there a RickRoll in that txt files?(I never bothered watching the ASCII version of starwars)
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Agree Agree x 1 (list)

  5. Post #245
    Map in a box's Avatar
    July 2009
    7,073 Posts
    I stoled it from ComputerCraft
    Anyway,
    local state=pate.open()
    state:RunString([[test = 123;realprint(print(test,"hi\"there",realprint))]])
    print("test = "..state.vars.test)
    Was working on this in Expression 2 but since there are no user defined function (WITH datatypes) I never finished it. Decided to port it to Lua and it works better than the E2 version did
    Reply With Quote Edit / Delete Windows XP United States Show Events

  6. Post #246
    Gold Member
    Mr. Quiggles's Avatar
    July 2010
    179 Posts
    In addition to having a function to add streams based on the existance of datastream/net, why not get "file.Find( LUA_PATH )/file.FindInLua()" their own function?

    Direct snip from previously mentioned API-esque addon:
    Code:
    Uforzyx.Functions.FileFindInLua = function( Directory )
    	if (file.FindInLua) then
    		return (file.FindInLua( Directory ) );
    	else
    		return (file.Find( Directory, LUA_PATH ) );
    	end
    end
    Since "file.Find" returns a table, it can be used for "for in pairs" loops.

    I also added "legacy"-esque function to use the proper syntax for "file.Find()"

    Another direct snip:
    Code:
    Legacy.Functions.FileFind = function( File, Directory )
    	local DIR;
    	if Stream.Variables.Version == 12 then
    		if Directory then
    			DIR = true;
    		else
    			DIR = false;
    		end
    		return (file.Find( File, DIR ) );
    	elseif Stream.Variables.Version == 13 then
    		if Directory then
    			DIR = "GAME";
    		else
    			DIR = "DATA";
    		end
    		return (file.Find( File, DIR ) );
    	end
    	Uforzyx.Functions.Print( "Legacy module is not set! Are we in Garry's Mod 12, or Garry's Mod 13?", "Legacy" );
    	return false;
    end
    Theoretically, they should work. I haven't tested it yet, as I'm diagnosing a little issue with the meshes.
    Edited:
    -- complete big fat snip --

    Realizing it's better to use a 3D table to store 32^3 indices, while having a chunk size scale to easily adjust it's size, is a ton better than having a 3D table to store 1520^3 and not be able to easily scale the block sizes. A little quick scan and change to the code, and it worked! Since the PHX 16x16 prop measures 760 units, I divided 760 / 16, thus giving me a scale of 47.5. Now I don't have to worry about looping a ton of shit.

    Also, I think this was asked earlier, but what's preferable: 'mesh' or 'IMesh'?
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  7. Post #247
    ezio audtioriet
    alexanderk's Avatar
    May 2007
    1,338 Posts
    -snip its late here wtf am i doing-
    Reply With Quote Edit / Delete Windows 7 Norway Show Events Late Late x 1Useful Useful x 1 (list)

  8. Post #248
    My Blog
    Spencer Sharkey's Avatar
    July 2009
    1,944 Posts
    Due to popular demand by a few people -

    http://modules.gmodwiki.com/

    Anyone can submit, but I'll check it every now and then and if someone bugs something up I'll remove it. Just ignore anyone who'd decide to be an idiot and posts something non-legit.

    I'll finish it up and add a few checks to make sure links to go Facepunch and all soon.

    I started adding a few modules listed from the first post on this page.

    Edit:

    Updated!

    It now checks if that module has been listed before by checking the topic id in the url, and by the name. This also means it should only accept Facepunch threads.
    I also have a nifty little admin panel where I can validate/unvalidate modules easily. The darker one was unvalidaed because it was crap. (Not really, I love you Spacetech)


    If you want to help out and check every now and then to make sure modules aren't bullshit and fake, give me a PM and I can set you up with an admin account.

    I hope some people start to fill in un-submitted modules! :D <3

    I made a quick topic too for a proper release-like-thing:
    http://facepunch.com/showthread.php?t=1197413

    it also works on android! lol
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 19Useful Useful x 1 (list)

  9. Post #249
    Map in a box's Avatar
    July 2009
    7,073 Posts
    Where's everyones favorite module(gmsv_include and gmcl_include)?
    Reply With Quote Edit / Delete Windows XP United States Show Events Funny Funny x 4Dumb Dumb x 1Agree Agree x 1 (list)

  10. Post #250
    Gold Member
    Divran's Avatar
    April 2008
    2,622 Posts
    Was working on this in Expression 2 but since there are no user defined function (WITH datatypes)
    What do you mean "with datatypes"?
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events Agree Agree x 1 (list)

  11. Post #251
    Gold Member
    sarge997's Avatar
    August 2008
    1,455 Posts
    I think Garry drown..
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 5Lua Helper Lua Helper x 1Optimistic Optimistic x 1 (list)

  12. Post #252
    Dragon Dildoes
    Dennab
    April 2009
    4,432 Posts
    I think Garry drown..
    What?
    Reply With Quote Edit / Delete Windows 7 Germany Show Events

  13. Post #253
    Awesome Gmod Servers!
    brandonj4's Avatar
    September 2011
    2,065 Posts
    Garry:
    2 posts every hour - I'm drowning in a sea of questions!!!

    Reply With Quote Edit / Delete Windows 7 Canada Show Events

  14. Post #254
    Steins;Gate SUCKS
    Dave_Parker's Avatar
    October 2008
    4,945 Posts
    Drowned in all the questions

    RIP in peace garry
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Funny Funny x 17Agree Agree x 3Dumb Dumb x 2Late Late x 1 (list)

  15. Post #255
    zzaacckk's Avatar
    June 2009
    2,140 Posts
    Why is there a RickRoll in that txt files?(I never bothered watching the ASCII version of starwars)
    Yea, there is.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  16. Post #256
    Gold Member
    dingusnin's Avatar
    February 2010
    1,940 Posts
    Drowned in all the questions

    RIP in peace garry
    Rest in peace in peace?
    Reply With Quote Edit / Delete France Show Events Agree Agree x 10Late Late x 3Dumb Dumb x 1 (list)

  17. Post #257
    ezio audtioriet
    alexanderk's Avatar
    May 2007
    1,338 Posts
    Rest in peace in peace?
    Yes
    Reply With Quote Edit / Delete Windows 7 Norway Show Events Zing Zing x 5Agree Agree x 1Dumb Dumb x 1 (list)

  18. Post #258
    johnny guitar was here
    comet1337's Avatar
    February 2010
    6,081 Posts
    Drowned in all the questions

    RIP in peace garry
    yeah, rip
    Reply With Quote Edit / Delete Windows 7 Finland Show Events

  19. Post #259
    Map in a box's Avatar
    July 2009
    7,073 Posts
    What do you mean "with datatypes"?
    RandomFunction:function
    Table["pengas",function]
    Datatypes
    Reply With Quote Edit / Delete Windows XP United States Show Events

  20. Post #260
    Gold Member
    Mr. Quiggles's Avatar
    July 2010
    179 Posts
    I completely forgot to test out the legacy-esque 'file.Find' functions! They do work, as well as the legacy-esque datastream function.

    Still trying to work out drawing the meshes. I know how to assign faces and stuff, but it's not working with IMesh:Draw(). I may be doing something wrong...

    Curse lack of any documentation!
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 1 (list)

  21. Post #261
    Get your own DarkRP Server!
    FPtje's Avatar
    January 2006
    5,543 Posts
    This took me way longer to make than it should have. I wanted to do something with stencil buffers at first (some weird implementation of shadow volumes), but that didn't work out because the z buffer doesn't like translucent objects.

    Then I had the problem that an entity not being created clientside. Turns out an early serverside call to SetNoDraw prevents a client from creating the entity.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Artistic Artistic x 3Lua King Lua King x 2Winner Winner x 1Funny Funny x 1 (list)

  22. Post #262
    Gold Member
    Divran's Avatar
    April 2008
    2,622 Posts
    RandomFunction:function
    Table["pengas",function]
    Datatypes
    Ah like that. Yeah can't do that in E2 unfortunately.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events

  23. Post #263

    May 2012
    39 Posts
    Well i havn't realy posted in here.. So here goes:

    I have been working on a Minigame gamemode (as in css) with a freind where on each map, There are different games/chalenges. That was what i considered the easy part.
    But now we are working on optimizing it to a ridicoulus point. We were going to implement trails using the built in source feature. But then we saw that it was an entity spawned by the server, and thus networked. We then decided to make our own trail system, And fully controlling them on the client.

    I started by making meshs... this worked quite well, But had some things that didn't work, And would only render correctly while going in one direction. So then my freind decided he would make it render on the HuD, using the render lib. This worked perfectly apart from the depth, And the pixels being drawn over the world.

    From this i decided to use a differant hook, and it works perfectly, I will upload pics in a few seconds.


    Reply With Quote Edit / Delete Windows 7 France Show Events Optimistic Optimistic x 1Useful Useful x 1 (list)

  24. Post #264
    S W
    S W's Avatar
    May 2010
    316 Posts
    This took me way longer to make than it should have. I wanted to do something with stencil buffers at first (some weird implementation of shadow volumes), but that didn't work out because the z buffer doesn't like translucent objects.

    Then I had the problem that an entity not being created clientside. Turns out an early serverside call to SetNoDraw prevents a client from creating the entity.
    What was that effect you used? I'm trying to find a cool effect to use when spawning a prop but have no clue where to find and demo effects.
    Reply With Quote Edit / Delete Windows XP United States Show Events

  25. Post #265
    Get your own DarkRP Server!
    FPtje's Avatar
    January 2006
    5,543 Posts
    What was that effect you used? I'm trying to find a cool effect to use when spawning a prop but have no clue where to find and demo effects.
    "models/props_combine/tpballglow"
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  26. Post #266
    werewolf0020's Avatar
    October 2009
    5,619 Posts
    not really someting im working on but someting i always wonder, why gmod doesnt has its own menu/derma designer? i mean ok designing derma by hand and getting the right placement would seem the right way to do it but since im more of a visual person and i really prefer a way to manually place derma instead of add menu,load gamemode, check position,change position and try again and so on

    if anyone get his hands on this it would be really helpfull
    Reply With Quote Edit / Delete Windows 8 Venezuela Show Events Agree Agree x 5 (list)

  27. Post #267
    Nexus435's Avatar
    July 2010
    1,458 Posts
    not really someting im working on but someting i always wonder, why gmod doesnt has its own menu/derma designer? i mean ok designing derma by hand and getting the right placement would seem the right way to do it but since im more of a visual person and i really prefer a way to manually place derma instead of add menu,load gamemode, check position,change position and try again and so on

    if anyone get his hands on this it would be really helpfull
    I use the DermaDesigner tool.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  28. Post #268
    werewolf0020's Avatar
    October 2009
    5,619 Posts
    I use the DermaDesigner tool.
    it really never worked well for me...
    Reply With Quote Edit / Delete Windows 8 Venezuela Show Events Agree Agree x 6 (list)

  29. Post #269
    I'm a tool
    KillerLUA's Avatar
    June 2009
    1,323 Posts
    I am working on GMod IDE, with all the beta changes, it's hard to keep up. But I'm hoping to maybe release after beta. Since I went dark with the project, I got alot of new controls on it as well as getting parenting working... and alot of bug fixes.

    (and for the person who voted optimistic, I'm not spouting crap. thread however, those pictures are severely outdated.)
    Reply With Quote Edit / Delete Windows Vista United Kingdom Show Events Winner Winner x 6Optimistic Optimistic x 2Lua King Lua King x 1 (list)

  30. Post #270
    werewolf0020's Avatar
    October 2009
    5,619 Posts
    I am working on GMod IDE, with all the beta changes, it's hard to keep up. But I'm hoping to maybe release after beta. Since I went dark with the project, I got alot of new controls on it as well as getting parenting working... and alot of bug fixes.

    (and for the person who voted optimistic, I'm not spouting crap. thread however, those pictures are severely outdated.)
    it looks amazing cant wait to try it out
    Reply With Quote Edit / Delete Windows 8 Venezuela Show Events

  31. Post #271
    I'm a tool
    KillerLUA's Avatar
    June 2009
    1,323 Posts
    I know, if I could get off my ass and code faster you'd probably get it released. The community needs an all-in-one editor. It takes time, and every time I get somewhat close to finishing, Garry releases a new update to beta. I had to scrap my entire skin system and start again with the new .png style system. I guess it makes it easier, but it kind of cheesed me off. He did say not to expect things to be final, so I just sucked in my gut and continued.
    Reply With Quote Edit / Delete Windows Vista United Kingdom Show Events

  32. Post #272
    werewolf0020's Avatar
    October 2009
    5,619 Posts
    I know, if I could get off my ass and code faster you'd probably get it released. The community needs an all-in-one editor. It takes time, and every time I get somewhat close to finishing, Garry releases a new update to beta. I had to scrap my entire skin system and start again with the new .png style system. I guess it makes it easier, but it kind of cheesed me off. He did say not to expect things to be final, so I just sucked in my gut and continued.
    maybe set up an commit so everyone can take a look and submit theyr revisions?
    Reply With Quote Edit / Delete Windows 8 Venezuela Show Events Agree Agree x 1 (list)

  33. Post #273
    MoronYard
    _nonSENSE's Avatar
    May 2010
    1,264 Posts
    I am working on GMod IDE, with all the beta changes, it's hard to keep up. But I'm hoping to maybe release after beta. Since I went dark with the project, I got alot of new controls on it as well as getting parenting working... and alot of bug fixes.

    (and for the person who voted optimistic, I'm not spouting crap. thread however, those pictures are severely outdated.)
    So glad to hear this project is still being worked on. Kudos to you!
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Agree Agree x 6 (list)

  34. Post #274
    Sassafrass's Avatar
    May 2007
    62 Posts


    Working on drawing territory borders for empires in Sassilization.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner x 17Artistic x 4Funny x 1Agree x 1Lua King x 1 (list)

  35. Post #275
    werewolf0020's Avatar
    October 2009
    5,619 Posts
    Only words describe this

    Hyper sexy
    Reply With Quote Edit / Delete Windows 8 Venezuela Show Events Agree Agree x 5Disagree Disagree x 1Dumb Dumb x 1 (list)

  36. Post #276
    My Blog
    Spencer Sharkey's Avatar
    July 2009
    1,944 Posts
    I love me some territory boundaries.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  37. Post #277
    walkmanguy's Avatar
    April 2012
    32 Posts
    local NPC = {};
    
    NPC.Name = "Kailey";
    NPC.ID = 99;
    
    NPC.Model = Model("models/players/PERP2/f_2_02.mdl");
    
    NPC.Location = Vector(-5528.38, 6680.61, 136.03)
    NPC.Angles = Angle(0, 180, 0);
    NPC.ShowChatBubble = "Normal";
    
    NPC.Sequence = 4;
    
    
    function NPC.OnTalk ( )
    		GAMEMODE.DialogPanel:SetDialog("Hello, My name is Kailey, I am A Proud Supporter of EvoCity");
    		
    		GAMEMODE.DialogPanel:AddDialog("Kailey, do you have the Tip of the Day Ready?", NPC.TipOfDay)
    		GAMEMODE.DialogPanel:AddDialog("What do you do around here Kailey?", NPC.WhatDo);
    		GAMEMODE.DialogPanel:AddDialog("Hello Kailey, Nice to meet you!", NPC.KaileyGoodBye);
    	
    	
    	GAMEMODE.DialogPanel:Show()
    end
    
    function NPC.KaileyGoodBye ( )
    		GAMEMODE.DialogPanel:SetDialog("Have a Nice Day !")
    		
    		GAMEMODE.DialogPanel:AddDialog("See you soon Kailey!", LEAVE_DIALOG)
    	
    	
    	GAMEMODE.DialogPanel:Show()
    end
    
    function NPC.WhatDo ( )
    		GAMEMODE.DialogPanel:SetDialog("You can do a variety of things! What would you like to know?")
    		
    		GAMEMODE.DialogPanel:AddDialog("Can I have some more guidance?", NPC.MoreHelp)
    		GAMEMODE.DialogPanel:AddDialog("Where can I go for basic stuff", NPC.KaileyShowAround)
    		GAMEMODE.DialogPanel:AddDialog("How Do I earn Quick Money as a police officer?", NPC.DrugsAreNotBad)
    		GAMEMODE.DialogPanel:AddDialog("How do I earn cash when I can't go to a job?", NPC.DrugsAreNotBad)
    		GAMEMODE.DialogPanel:AddDialog("I'm Sorry Kailey but I have to go now", NPC.KaileyGoodBye)	
    		elseif LocalPlayer():Team() == TEAM_POLICE
    		GAMEMODE.DialogPanel:SetDialog("How do I get money as a officer?", NPC.DrugsAreBad)

    Working on a NPC but it's kinda being dumb. Perp yuno.
    Reply With Quote Edit / Delete Windows 7 Canada Show Events

  38. Post #278
    skullorz's Avatar
    May 2009
    917 Posts
    local NPC = {};
    
    NPC.Name = "Kailey";
    NPC.ID = 99;
    
    NPC.Model = Model("models/players/PERP2/f_2_02.mdl");
    
    NPC.Location = Vector(-5528.38, 6680.61, 136.03)
    NPC.Angles = Angle(0, 180, 0);
    NPC.ShowChatBubble = "Normal";
    
    NPC.Sequence = 4;
    
    
    function NPC.OnTalk ( )
    		GAMEMODE.DialogPanel:SetDialog("Hello, My name is Kailey, I am A Proud Supporter of EvoCity");
    		
    		GAMEMODE.DialogPanel:AddDialog("Kailey, do you have the Tip of the Day Ready?", NPC.TipOfDay)
    		GAMEMODE.DialogPanel:AddDialog("What do you do around here Kailey?", NPC.WhatDo);
    		GAMEMODE.DialogPanel:AddDialog("Hello Kailey, Nice to meet you!", NPC.KaileyGoodBye);
    	
    	
    	GAMEMODE.DialogPanel:Show()
    end
    
    function NPC.KaileyGoodBye ( )
    		GAMEMODE.DialogPanel:SetDialog("Have a Nice Day !")
    		
    		GAMEMODE.DialogPanel:AddDialog("See you soon Kailey!", LEAVE_DIALOG)
    	
    	
    	GAMEMODE.DialogPanel:Show()
    end
    
    function NPC.WhatDo ( )
    		GAMEMODE.DialogPanel:SetDialog("You can do a variety of things! What would you like to know?")
    		
    		GAMEMODE.DialogPanel:AddDialog("Can I have some more guidance?", NPC.MoreHelp)
    		GAMEMODE.DialogPanel:AddDialog("Where can I go for basic stuff", NPC.KaileyShowAround)
    		GAMEMODE.DialogPanel:AddDialog("How Do I earn Quick Money as a police officer?", NPC.DrugsAreNotBad)
    		GAMEMODE.DialogPanel:AddDialog("How do I earn cash when I can't go to a job?", NPC.DrugsAreNotBad)
    		GAMEMODE.DialogPanel:AddDialog("I'm Sorry Kailey but I have to go now", NPC.KaileyGoodBye)	
    		elseif LocalPlayer():Team() == TEAM_POLICE
    		GAMEMODE.DialogPanel:SetDialog("How do I get money as a officer?", NPC.DrugsAreBad)

    Working on a NPC but it's kinda being dumb. Perp yuno.
    Line 43, you're missing a then
    Reply With Quote Edit / Delete Windows 7 United States Show Events Informative Informative x 1 (list)

  39. Post #279
    "The superior man understands what is right; the inferior man understands what will sell"
    Chessnut's Avatar
    August 2011
    3,442 Posts
    PERP NPC Table stuff

    Working on a NPC but it's kinda being dumb. Perp yuno.
    So, what exactly is special about that?
    Reply With Quote Edit / Delete United States Show Events Agree Agree x 1 (list)

  40. Post #280
    likes men
    Python1320's Avatar
    May 2007
    1,712 Posts
    Working on resolving one bug in the game/hl2 code.

    How many knows about the entity_blocker entity?
    It was used with adv dupe for example to cause invisible blocking of areas before they implemented whitelisting.
    ... but it still appeared on my server.


    Thanks to this guy I managed to finally nail it down with a simple GetOwner and some questioning:

    Code:
    09:05 - Python1320: how the hell did you spawn those entity blockers
    09:05 - Python1320: did you use airboat?
    09:05 - CHRIS THE RADIOACTIVE HYENA: wut
    09:05 - Python1320: have you used airboat on this server today?
    09:05 - CHRIS THE RADIOACTIVE HYENA: no
    09:05 - Python1320: jeep?
    09:05 - CHRIS THE RADIOACTIVE HYENA: yes
    09:05 - Python1320: have you spawned npcs?
    09:05 - CHRIS THE RADIOACTIVE HYENA: nope
    09:05 - Python1320: hmm
    09:06 - Python1320: That'll rule many things out, thanks.
    So a simple grep later:
    Code:
    X:\stuff>fgrep -ri Entityblocker sdk.txt | egrep -v /entityblocker.
    sdk/game/server/ai_behavior_passenger.cpp:12:#include "entityblocker.h"
    sdk/game/server/ai_behavior_passenger.cpp:760:  m_hBlocker = CEntityBlocker::Create( vecGroundPos, hullMin, hullMax, GetOuter(), true );
    sdk/game/server/ai_behavior_passenger.h:200:    CHandle <CEntityBlocker>                m_hBlocker;                             // Blocking entity for
    sdk/game/server/hl2/ai_behavior_actbusy.cpp:19:#include "entityblocker.h"
    sdk/game/server/hl2/ai_behavior_actbusy.cpp:2111:                                       CBaseEntity *pBlocker = CEntityBlocker::Create( GetOuter()->Get
    sdk/game/server/hl2/npc_combinedropship.cpp:32:#include "entityblocker.h"
    sdk/game/server/hl2/npc_combinedropship.cpp:2441:       CBaseEntity *pBlocker = CEntityBlocker::Create( vecDeployEndPoint, vecNPCMins, vecNPCMaxs, pNPC
    sdk/game/server/hl2/vehicle_airboat.cpp:258:    CHandle<CEntityBlocker> m_hPlayerBlocker;
    sdk/game/server/hl2/vehicle_airboat.cpp:499:    m_hPlayerBlocker = CEntityBlocker::Create( GetAbsOrigin(), Vector( -84, -32, 0 ), Vector( 54, 32, 84 ),
    sdk/game/server/props.cpp:29:#include "entityblocker.h"
    sdk/game/server/props.cpp:5189: CHandle<CEntityBlocker> m_hDoorBlocker;
    sdk/game/server/props.cpp:5750: m_hDoorBlocker = CEntityBlocker::Create( GetAbsOrigin(), mins, maxs, pOpenAwayFrom, false );
    sdk/game/server/swarm_sdk_server.vcproj:1420:                           RelativePath=".\entityblocker.cpp"
    sdk/game/server/swarm_sdk_server.vcproj:1424:                           RelativePath=".\entityblocker.h"
    sdk/game/server/vehicle_base.cpp:20:#include "entityblocker.h"
    sdk/game/server/vehicle_base.h:20:#include "entityblocker.h"
    sdk/game/server/vehicle_baseserver.cpp:1146:                            m_hExitBlocker = CEntityBlocker::Create( vecExitFeetPoint, VEC_HULL_MIN, VEC_HU
    sdk/game/server/vehicle_baseserver.h:14:#include "entityblocker.h"
    sdk/game/server/vehicle_baseserver.h:296:       CHandle<CEntityBlocker>                 m_hExitBlocker;                         // Entity to prevent ot
    And there we have it:
    Code:
    				// To prevent anything moving into the volume the player's going to occupy at the end of the exit
    				// NOTE: Set the player as the blocker's owner so the player is allowed to intersect it
    				Vector vecExitFeetPoint = vecExitPoint - VEC_VIEW;
    				m_hExitBlocker = CEntityBlocker::Create( vecExitFeetPoint, VEC_HULL_MIN, VEC_HULL_MAX, pPlayer, true );
    For some reason m_hExitBlocker doesn't always get removed along with the jeep so it leaves hanging in the world and causing annoyance. Hope Garry can take a look at it some day.
    Reply With Quote Edit / Delete Windows 7 Finland Show Events Useful Useful x 1Informative Informative x 1Winner Winner x 1Funny Funny x 1 (list)