Results 1 to 9 of 9

Thread: Ideas for auto configurations

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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
    Quote Originally Posted by guiismiti View Post
    And we all know that, when you modify a mod in a pure server, you need to change your fs_game, or the players who have downloaded the previous mod will have conflicts.
    You don't need to change any .iwd-file, when you just change the scripts. Either you put your scripts into a name_svr_.iwd or just without any .iwd in fs_game/maps/mp/

    If you really need some exec-function without libcod, you can also use BigBrotherBot/rcon for that, I made an easy to understand tutorial here: http://killtube.org/showthread.php?1...Command-Adding!

    A direct Cmd_ExecuteString()-function got added by Mitch in libcod:

    https://github.com/kungfooman/libcod...master/gsc.cpp
    PHP Code:
                    case 1204:
                    {
                            
    #if COD_VERSION == COD4_1_7
                                    
    void (*Cmd_ExecuteString)(int a1int a2, const char *text);
                            
    #else
                                    
    void (*Cmd_ExecuteString)(const char *text);
                            
    #endif

                            
    (*(int *)&Cmd_ExecuteString) = getExecuteString();

                            
    char *msg;
                            
    int helper 0;
                            
    helper += stackGetParamString(1, &msg); // todo: is string?

                            
    if (helper 1)
                            {
                                    
    printf_hide("scriptengine> wrongs args for: say(): at least 1 arg\n");
                                    return 
    stackReturnInt(0);
                            }

                            
    #if COD_VERSION == COD4_1_7
                                    
    Cmd_ExecuteString(00msg); // idk what first 2 numbers do
                            #else
                                    
    Cmd_ExecuteString(msg);
                            
    #endif

                            
    return stackPushInt(1);
                    } 
    Call it in CoDScript with: closer(1204, "set someKey someValue")
    timescale 0.01

  2. The Following User Says Thank You to kung foo man For This Useful Post:

    guiismiti (12th December 2013)

Tags for this Thread

Posting Permissions

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