Results 1 to 8 of 8

Thread: What have you been up to?

  1. #1
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts

    What have you been up to?

    Anybody still modding for CoD2?
    set logfile 2

  2. #2
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Yes. 0123456789
    sudo apt-get rekt

  3. #3
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    +1 987654321

  4. #4
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Zombies? Jumping?
    set logfile 2

  5. #5
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    DeathRun...
    sudo apt-get rekt

  6. The Following User Says Thank You to voron00 For This Useful Post:

    guiismiti (23rd March 2017)

  7. #6
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    codjumper modding.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  8. The Following User Says Thank You to IzNoGoD For This Useful Post:

    guiismiti (23rd March 2017)

  9. #7
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    tdm, dm, ctf, hq, htf on the one server
    Last edited by Lonsofore; 21st March 2017 at 00:44.

  10. The Following User Says Thank You to Lonsofore For This Useful Post:

    guiismiti (23rd March 2017)

  11. #8
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    In the last days I've reimplemented the CoDScript style "threads" (coroutines) inside JavaScript/Duktape. As test engine I use ET:Legacy, because that's like CoD 0.5, lol.

    In the grand scheme, I wanna reimplement CoDScript as a whole and add JavaScript even on the client side, so it's possible to script the clients as server admin at runtime. And since ET has Quake3 heritage, the Quake Virtual Machine is available aswell... endless possibilities, I feel like in the beginning days of CoD2 scripting.

    All the JavaScript code I've put together in last days, it's the basemod "algorithm" to move brushes:

    PHP Code:
    // MIT License, have fun

    function sprintf() {
        var 
    ret "";
        var 
    param 1// maps to first %
        
    var msg arguments[0];
        for (var 
    i=0i<msg.lengthi++) {
            if (
    msg[i] == "%") {
                
    // %% will be printed as normal %
                
    if (msg[i+1] == "%") {
                    
    ret += "%";
                    
    i++;
                } else
                    
    ret += arguments[param++];
            } else {
                
    ret += msg[i];
            }
        }
        return 
    ret;
    }

    function 
    printf() {
        var 
    ret "";
        var 
    param 1// maps to first %
        
    var msg arguments[0];
        for (var 
    i=0i<msg.lengthi++) {
            if (
    msg[i] == "%") {
                
    // %% will be printed as normal %
                
    if (msg[i+1] == "%") {
                    
    ret += "%";
                    
    i++;
                } else
                    
    ret += arguments[param++];
            } else {
                
    ret += msg[i];
            }
        }
        
    log(ret);
        return 
    ret.length;
    }

    function require(
    filename) {
        var 
    content file_get_contentsfilename );
        try {
            eval.
    bindget_global() )(content);
        } catch (
    e) {
            
    printf("require(%): error %\n"filenamee.stack);
        }
    }


    if (
    typeof date_start == "undefined")
        
    date_start Date.now();
    // time since loading this file for first time
    function now() {
        return 
    Date.now() - date_start;
    }

    print = function() {
        for (var 
    i=0i<arguments.lengthi++) {
            
    log(arguments[i]);
        }
    }

    function 
    var_dump(ret) {
        switch (
    typeof ret) {
            case 
    "number": {
                print(
    "ret = "ret";");
                break;
            }
            case 
    "string": {
                print(
    "ret = \""ret"\";");
                break;
            }
            case 
    "function": {
                
    // print infos like byte codes or length of byte codes
                
    print("Function: "ret);
                break;
            }
            case 
    "boolean": {
                print(
    "ret = "ret";");
                break;
            }
            case 
    "object"