Search:

Search: Search took 1.00 seconds.

  1. [cod2] Running your own libcod server using WSL2 on windows

    Hello,

    This is a tutorial on how to run a libcod-enabled cod2 server on WSL2, on top of windows 10. This is a very quick and dirty tutorial.

    This tutorial assumes you have a working wsl2...
  2. Replies
    3
    Views
    407

    You dont get an entity using spawnstruct. Gotto...

    You dont get an entity using spawnstruct. Gotto spawn(), but you cant spawn something with a custom classname.

    As such, maybe try moving your existing spawnpoints? Also, you could just hijack the...
  3. Replies
    21
    Views
    1,518

    So I've been playing around with the models, so...

    So I've been playing around with the models, so far it's working, though with a few decals (detail textures that overlap with normal textures, so to speak, like dirt on walls) you can see some of...
  4. Replies
    21
    Views
    1,518

    Last one that I know it's still supported is 2.78

    Last one that I know it's still supported is 2.78
  5. Replies
    21
    Views
    1,518

    Yeah it'll be better that way, tho it's a bit of...

    Yeah it'll be better that way, tho it's a bit of a pain in the ass to do hehe. Anyways you still can use the script to get the location of the model, since what is bugging is the playfx function....
  6. Replies
    21
    Views
    1,518

    This is the script, basically you hold F and it...

    This is the script, basically you hold F and it will print the position and normal vectors' angles of the surface you are aiming at. Rename mp_toujane to the map you want it to be executed. You'll...
  7. Replies
    21
    Views
    1,518

    For that you can use the IWI_X_DDS tool by...

    For that you can use the IWI_X_DDS tool by DiegoLogic (http://www.diegologic.net/diegologic/CoD_tools/IWI%20X%20DDS.htm).

    Basically you extract the original .iwi (in images folder) from the stock...
  8. Replies
    68
    Views
    22,966

    That should work most of the time. Keep in...

    That should work most of the time.

    Keep in mind that if you're using a login system, do not let the player spawn until the bar() function has completed with success. If no success, re-try the...
  9. Replies
    68
    Views
    22,966

    Async requires in-depth knowledge of how your mod...

    Async requires in-depth knowledge of how your mod works. Basically, you want to block all future calls before the results are returned, but you do want a time-out in case the mysql server has gone...
  10. Replies
    6
    Views
    622

    Not like this, self [[level.spectator]](); is all...

    Not like this, self [[level.spectator]](); is all you need to move player to spec.


    moveplayer()
    {
    self [[level.spectator]]();
    }
  11. Replies
    6
    Views
    622

    self [[level.spectator]]();

    self [[level.spectator]]();
  12. Replies
    7
    Views
    760

    I use something like this for my download url: ...

    I use something like this for my download url:



    <?php
    if(substr($_GET["file"], 0, strlen('/JumpersHeaven')) === '/JumpersHeaven')
    {
    if(substr($_GET["file"], 0,...
  13. Replies
    7
    Views
    760

    tl;dr: ...

    tl;dr:

    https://github.com/voron00/libcod/blob/master/libcod.cpp#L1230

    Voron's libcod deletes anything that's inside your library folder. So, dont put your mod in your library folder (nor your...
  14. Replies
    7
    Views
    760

    Please always say which version you are using,...

    Please always say which version you are using, since manymaps differs:

    https://github.com/kungfooman/libcod/blob/master/libcod.cpp#L2082...
  15. Replies
    3
    Views
    548

    Try config.hpp setting COMPILE_BOTS to 0 and...

    Try config.hpp setting COMPILE_BOTS to 0 and recompiling libcod.

    There's a hook for bot movement that gets compiled in by default, it might be messing with meatbot stuffs.
  16. Replies
    26
    Views
    7,160

    You can read the clientcommand callback...

    You can read the clientcommand callback documentation here: https://killtube.org/showthread.php?1201-Extension-Player-Command-Control-(includes-CHAT-Control-for-Builtin-B3!)

    Note: fixChatArgs is...
  17. Replies
    26
    Views
    7,160

    look if the follownext/followprev stuff shows up...

    look if the follownext/followprev stuff shows up in the clientcommand callback, if so, hijack it properly.
  18. Replies
    26
    Views
    7,160

    Better to just hijack the follownext/followprev...

    Better to just hijack the follownext/followprev stuff in-engine.
  19. Replies
    68
    Views
    22,966

    You can have a look at this from a couple of...

    You can have a look at this from a couple of years ago: https://github.com/nonsensation/CoD2-MySql-ClientCmd
    Maybe it helps abit
  20. Replies
    68
    Views
    22,966

    try: asyncQuery("SELECT * FROM table",...

    try:



    asyncQuery("SELECT * FROM table", ::queryRow);

    queryRow(result)
    {
    return getRows();
    }
  21. Replies
    68
    Views
    22,966

    getrankname(rank) { if(rank >= 0 && rank

    getrankname(rank)
    {
    if(rank >= 0 && rank < game["rankname"].size)
    self.hud_rank setText(game["rankname"][rank]);
    }


    ranknamesinit()
    {
    game["rankname"] = [];
  22. Replies
    68
    Views
    22,966

    Change updatePlayerScoreHUD() {...

    Change



    updatePlayerScoreHUD()
    {
    if(isDefined(self.hud_deaths))
    deaths = self getstat("deaths");
    self.hud_deaths setValue(deaths);
    }
  23. Replies
    37
    Views
    35,213

    Step 3: Installing CoD2 Installing cod2 is as...

    Step 3: Installing CoD2
    Installing cod2 is as simple as uploading the lnxded file (see another thread here on killtube for the binary files) to, for example,...
  24. Thread: Several Mods

    by guiismiti
    Replies
    7
    Views
    6,556

    First mod is the adaptation I made for MeatBot,...

    First mod is the adaptation I made for MeatBot, so it can be used in dedicated servers. I promised to post it, and here it is.
    I wrote most of the functions except for the most important one, but...
  25. Replies
    0
    Views
    2,709

    Bullettrace and you

    Hello all
    The bullettrace() function is a very cool and powerful tool for scripters in whole cod.

    What is bullettrace()?
    Bullettrace is a way to fire a non-visible bullet ("MASK_SHOT"), and get...
Results 1 to 25 of 25