Jump to content

Dragonji

Members
  • Posts

    530
  • Joined

  • Last visited

  • Days Won

    62

Posts posted by Dragonji

  1. Anybody know the answer?
    I think it's not possible at the moment, otherwise it'd be documented.
    The main way I want to use it currently is to have some configuration options available to the clients. For example, I am working on a script that plays custom sounds on our server. I would like to give the client the option to disable this functionality if they do not want to hear them. The way I am currently planning on doing this is to allow the clients to set a custom cvar such as playsound_disable, so they can just add the line "set playsound_disable "1"" to their config if they want them disabled on our server. This would be excellent functionality because setting cvars is mostly common knowledge in the ET community, and I would be able to avoid workarounds such as having to make players execute a custom command and recording the preference in some type of data file on the server.
    I wrote a similar script but didn't find a way to get client's specific cvar so I just used a work-around, I scan for a specific rate amount (userinfo) and if it matches the one defined for disabled sounds, the server doesn't send playsound request to the client.

     

    Indeed, it'd be great to have a possibility to check client's cvar value so we can create better scripts! :)

    Dzwiek = {
    [0] = "path/to/sound.wav"
    [1] = "path/to/sound.wav"
    -- etc.
    }
    
    client_sounds = { }
    
    function et_InitGame(levelTime, randomSeed, restart)
        sv_maxclients = tonumber(et.trap_Cvar_Get("sv_maxclients"))
    end
    
    function et_ClientBegin(id)
        CheckRate(id)
    end
    
    function et_ClientDisconnect(id)
        client_sounds[id] = 0
    end
    
    function CheckRate(id)
        local rs = et.Info_ValueForKey(et.trap_GetUserinfo(id), "rate")
        if rs == "45123" then
            client_sounds[id] = 0
        else
            client_sounds[id] = 1
        end
    end
    
    function et_ConsoleCommand()
        if et.trap_Argv(0) == "pfsound" then
            if et.trap_Argc() == 2 then
                local indeks = tonumber(et.trap_Argv(1))
                PlaySound(Dzwiek[indeks])
            else
                sayClients("chat","^1ERROR: Not enough parameters given!")
            end
        end
    end
    
    function PlaySound(sound)
        local odtworz = et.G_SoundIndex(sound)
        for i=0, sv_maxclients-1 do
            if client_sounds[i] == 1 then
                et.G_ClientSound(i, odtworz)
            end
        end
    end
  2. EA has released its seminal PC first-person shooter Battlefield 1942 for free on its distribution portal Origin.

     

    This is in honour of the series' 10 year anniversary as well as Battlefield 3's premium service acquiring over two million members worldwide since it launched in June. EA noted that Battlefield 3 has been its fastest-selling game in history with 17 million copies copies sold since its release just over a year ago.

     

    When we launched Battlefield 1942 ten years ago, we had lofty ambitions to create a first-person shooter that would push the boundaries of innovation, creativity and design. We evolved the FPS gameplay formula by introducing the world to all-out warfare via land, air and sea, said vice president and general manager of DICE, Karl Magnus Troedsson.

     

    We wanted to thank our fans who have supported us throughout the years by restoring Battlefield 1942 for a digital re-release and give everyone a chance to play the game that started it all.

     

    Since the game has full mod support, here's a great list of mods available for BF1942, courtesy of Redditor Sonic_Dah_Hedgehog:

     

    reddit.com - BF1942 mods

     

     

    Do note that you cannot play multiplayer with CD version users and vice versa. Origin version has got completely separated server list.

  3. File Name: OpenWarfare Source Code

    File Submitter: Dragon

    File Submitted: 28 Oct 2012

    File Category: Mods

     

    OpenWarfare is a multi-purpose open source mod for the Call of Duty series. The project started on May 7th, 2008 and quickly grew to become one of the leading mods for the Call of Duty series. The mod supports new gameplay features to make the game more fun as well as league competition features like ready-up, strategy time, checksums, variable changes detection, rulesets, etc. Features in the OpenWarfare mod are not forced at all and can be enabled/disabled based on what the server owners like.

     

    This is the latest source code of the mod, at revision 2483, last update was done on 19 June 2011.

     

    You can compile any parts of the mod by just executing the file makeMod.bat (a menu will guide you through the process).

     

    Click here to download this file

  4. From ET:L IRC channel:

    17:07 <Dragonji> btw, anybody knows what the heck is 'Obsolete cgame system trap: 173'? My console is full of it everytime I load a map or do vid_restart
    17:08 <IR4T4> which mod is used?
    17:09 <Dragonji> silent
    17:10 <IR4T4> tell mod creators to read this http://etpub.org/viewtopic.php?f=9&t=74
    17:10 <Dragonji> IR4T4: okey dokey

  5. It would be much appriciated if you could separate custom defined shrubbot commands from the original built-in ones. I have around 60 custom fun commands on the server and most of the admins are complaining because they see too many commands and don't exactly know which ones are for fun and which actually are for managing the game. I was thinking about such !help's output structure:

     

    ]!help
    silEnT admin commands available for you:
    admintest list userlist showbans ...more_commands
    
    Custom commands available for you:
    command1 command2 command3 ...more_commands
    
    help: x available commands
    Type !help [command] for help with a specific command.

×
×
  • Create New...