• Lucid Dreaming - Dream Views




    Results 1 to 4 of 4

    Hybrid View

    1. #1
      Member Portalboat's Avatar
      Join Date
      Nov 2009
      Gender
      Location
      Nevada, United States
      Posts
      381
      Likes
      28
      DJ Entries
      1

      Anyone here a good C++ coder? (SourceMod Project)

      I'm working on a project with some other people, and I need a .dll to make it work. There's already a basic function for what I want, I just need it ported over from Garry's Mod into a extension for SourceMod for Left 4 Dead 2. I can compile it, I just lack the programing experience to write the actual code. Here's the function:

      Code:
      LUA_FUNCTION(SetTableSize)
      {
      	ILuaInterface *g = gMod->m_lua;
      
      	g->CheckType(1, GLua::TYPE_STRING);
      	g->CheckType(2, GLua::TYPE_NUMBER);
      
      	INetworkStringTable *netTbl = networkstringtable->FindTable(g->GetString(1));
      
      	if(netTbl)
      	{
      		netTbl->c = g->GetInteger(2);
      		netTbl->d = Q_log2(netTbl->c);
      	}
      
      	return 0;
      }
      And here's the Wiki page about building extensions for SourceMod:
      http://wiki.alliedmods.net/Writing_Extensions

      There's also a list of functions for SourceMod, but there isn't one for the basic HL2SDK.
      http://docs.sourcemod.net/dox/

      I know that this isn't really the place to be posting this, but I really need this done, and no one's responded to my request on the actual forums.
      Dream Journal

      Quote Originally Posted by GLaDOS Version 3.11
      We're a lot alike, you and I. I tested you. You tested me. You killed me. I-oh, no, wait. I guess I haven't killed you yet. Well. Food for thought during this next test.
      Quote Originally Posted by Mario92
      ...there is something seriously wrong with me, isn't there?
      <Lseadragon> i was so hopeful
      <Lseadragon> because (featuring Portalboat) sounds cool
      <Portalboat>
      <no-Name> that's what I was thinking as well
      <no-Name> Feat. Portalboat MC
      <no-Name> Feat. DJ Portalboat
      <no-Name> badass.

    2. #2
      DuB
      DuB is offline
      Distinct among snowflakes DuB's Avatar
      Join Date
      Sep 2005
      Gender
      Posts
      2,399
      Likes
      362
      I'm not even totally clear on what exactly you're asking from us. Also, for future reference, ninja has an ongoing C++ thread in the Ask/Tell Me forum: Ask me about C / C++

    3. #3
      Corrupting The Masses r2d2651's Avatar
      Join Date
      Nov 2009
      Gender
      Location
      Oregon
      Posts
      322
      Likes
      5
      DJ Entries
      60
      What is this project? Gmod and L4D2 are my favorite games!
      Goals:
      Consistently for two weeks recall at least one dream per night [ ]

    4. #4
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      I'm confused, if you already wrote the function, what do you need from us?

    Similar Threads

    1. Another good morning (or good night)
      By Viat in forum Introduction Zone
      Replies: 4
      Last Post: 02-11-2010, 03:37 AM
    2. Drinks that are good for you, and taste good.
      By slayer in forum Fitness and Health
      Replies: 47
      Last Post: 09-16-2009, 01:33 AM
    3. Replies: 10
      Last Post: 12-03-2008, 01:15 AM
    4. Mixed Dream [from good to bad to good]
      By dkth in forum Dream Interpretation
      Replies: 0
      Last Post: 06-01-2008, 06:50 PM
    5. Good day, good evening and goodnight
      By Trillidan in forum Introduction Zone
      Replies: 6
      Last Post: 08-24-2005, 01:30 AM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •