SourceMod Empires Extension

Discussion in 'Coding' started by recon, Sep 20, 2009.

  1. recon

    recon SM Support Dev

    Messages:
    2,348
    Likes Received:
    0
    Trophy Points:
    0
    What is a SourceMod extension?

    A SourceMod extension is a more powerful type of plugin.

    What does the Empires extension do?
    • Adds the following target groups
      • @spec - Spectators
      • @mspec - All spectators, excluding the admin who is running the command
      • @nf - Northern Faction
      • @mnf - All Northern Faction players, excluding the admin who is running the command
      • @be - Brenodi Empire
      • @mbe All Brenodi Empire players, excluding the admin who is running the command
    To install, extract the attached zip file to empires/addons/sourcemod/extensions.

    There is no Linux binary at this time.

    You can get the source from SVN.
     

    Attached Files:

    Last edited: Jan 22, 2011
  2. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    make a command for "everyone playing" (@be and @nf :D
     
  3. DrummerX

    DrummerX Empires Tyrant

    Messages:
    1,193
    Likes Received:
    0
    Trophy Points:
    0
    what would be different about that command?
     
  4. Brutos

    Brutos Administrator Staff Member Moderator

    Messages:
    3,385
    Likes Received:
    0
    Trophy Points:
    0
    thats @all
     
  5. arklansman

    arklansman Member

    Messages:
    5,365
    Likes Received:
    0
    Trophy Points:
    0
    I like how Empires is the only game that requires special extensions for spectators. xD
     
  6. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    i dont like how empiresmod is not refined properly
     
  7. LordDz

    LordDz Capitan Rainbow Flowers

    Messages:
    5,221
    Likes Received:
    0
    Trophy Points:
    0
    !kill @spec?
     
  8. Brutos

    Brutos Administrator Staff Member Moderator

    Messages:
    3,385
    Likes Received:
    0
    Trophy Points:
    0
    !teamswitch_spec @spec ? :D
     
  9. DrummerX

    DrummerX Empires Tyrant

    Messages:
    1,193
    Likes Received:
    0
    Trophy Points:
    0
    That wouldn't work, that plugin uses a different @ command.

    Although i could be wrong....
     
  10. Kane

    Kane Member

    Messages:
    1,337
    Likes Received:
    0
    Trophy Points:
    0
    recon: would you like that to be official?
     
  11. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    Yes he would. I speak on his behalf.
     
  12. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    lol is he aware you are speaking on his behalf?

    edit: what's a behalf anyway, i know what it means because of movies etc but what is the word
     
  13. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    That's a very good question blizzerd. I don't really know.

    It's kind of a word that's only used in a saying, "their behalf"

    Sort of like, in their stead?
     
  14. =PVCS) Cpatton

    =PVCS) Cpatton Member

    Messages:
    1,822
    Likes Received:
    6
    Trophy Points:
    0
    "on behalf of" and "in behalf of" have similar and distnct meanings, and are the only two presently used idioms that make use of the word "behalf". Each has a slightly different meaning. "on behalf of" would be the meaning used here, which means in someone's stead, or as an agent acting as with the person's interests. "in behalf of" is slightly different, it is used to say that you are acting not necessarily with the person's approval or knowledge, but for their benefit.


    I speak in Recon's behalf, make this official pl0x ^_^
     
  15. recon

    recon SM Support Dev

    Messages:
    2,348
    Likes Received:
    0
    Trophy Points:
    0
    It's not. SourceMod doesn't provide a spectator target group.

    It's up for inclusion in SourceMod, but I'm not sure how long it's going to take to make it into their SCM.

    I was told that EmpiresMod would not officially support an admin modification, so... If that's changing, how about including the SM gamedata files as well?


    For future reference, the next person who tries to speak on my behalf gets permad.

    j/k
     
  16. Kane

    Kane Member

    Messages:
    1,337
    Likes Received:
    0
    Trophy Points:
    0
    Well, I want to create an API to Empires-specific stuff for plugin developers. I'd prefer upstream inclusion for gamedata files but not the extension.
     
  17. MOOtant

    MOOtant Member

    Messages:
    4,047
    Likes Received:
    0
    Trophy Points:
    0
    You should talk to Brutos and bug him to bind more things to Lua. Lua is supported on the server-side. There'll be no need to use SM or even worse, C++ server plugins.
     
  18. Kane

    Kane Member

    Messages:
    1,337
    Likes Received:
    0
    Trophy Points:
    0
    So you want that people port SM plugins to lua with propiretary API? No.
     
  19. MOOtant

    MOOtant Member

    Messages:
    4,047
    Likes Received:
    0
    Trophy Points:
    0
    I don't want anyone to port anything from SM to Lua. If you want to use SM then you're on your own because this whole thing is extremely hacky. As far as I remember you don't even have access to variables that are not in send tables. Also that SM devs can't write low-level code. (LTCG)

    Second option is C++ interface for server plugins. That's not efficient.

    Third option is Lua. Bindings have to be made but that's it.
     
  20. Kane

    Kane Member

    Messages:
    1,337
    Likes Received:
    0
    Trophy Points:
    0
    Why isn't a cpp interface not efficient? Metamod:Source and a cleaned version of our headers.

    Hmm... Lua to SM binding... Hack hack hack
     

Share This Page