Search:

Page 1 of 40 1 2 3 4

Search: Search took 1.00 seconds.

  1. nice job, i got it it working pretty easily only...

    nice job, i got it it working pretty easily
    only problem is i have to copy the file inside wsl, if i use them from /mnt/c/User.. it says .iwd not found when launching run.sh
    for the network stuff...
  2. Replies
    0
    Views
    87

    Cross-post: Setting up cod2 on WSL

    See here: https://killtube.org/showthread.php?4465-cod2-Running-your-own-libcod-server-using-WSL2-on-windows
  3. Public network connectivity. Option 1: Just...

    Public network connectivity.

    Option 1: Just forward the ports from your host to your vm using https://gist.github.com/xmeng1/aae4b223e9ccc089911ee764928f5486

    Option 2: Bridge mode.



    Open...
  4. I was able to access the files and edit them with...

    I was able to access the files and edit them with the results affecting the vm. Also, creating a new folder worked.
  5. [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...
  6. Thread: Console script

    by Mitch
    Replies
    3
    Views
    214

    You can do this via GSC scripts: With libcod:...

    You can do this via GSC scripts:

    With libcod:
    https://killtube.org/showthread.php?3153-callback-RCON

    Without libcod:


    level endon("intermission");
    setCvar("customcommand1", ""); // can be...
  7. Thread: Console script

    by IzNoGoD
    Replies
    3
    Views
    214

    I think he's asking to add like /rcon yourmom to...

    I think he's asking to add like /rcon yourmom to do a thing.
  8. Thread: Console script

    by voron00
    Replies
    3
    Views
    214

    Cmds like map_restart are static and can only be...

    Cmds like map_restart are static and can only be added through engine itself.
    But you can edit libcod and add your own cmds there by using Cmd_AddCommand
    ...
  9. Replies
    3
    Views
    214

    Console script

    how to make a script that runs a cmd on the console? Like rcon map_restart
  10. Replies
    3
    Views
    414

    Ok it worked!!! First i put all the current map...

    Ok it worked!!! First i put all the current map spawnpoints in an array with
    level.customspawns = getentarray(spawnpointname, "classname");

    Then i added my custom spawnpoints as
    ...
  11. Replies
    3
    Views
    414

    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...
  12. Replies
    3
    Views
    414

    How do add custom spawnpoints to a map?

    Hi
    As you can tell from the title i'm trying to add custom spawnpoints to a map.


    spawnpointname = "mp_dm_spawn";
    spawnpoints = getentarray(spawnpointname, "classname");
    ...
  13. Replies
    2
    Views
    456

    1. Monitor if the player switches weapons 2....

    1. Monitor if the player switches weapons
    2. Replace unused slot with the "third weapon", saving the old info as the new "third weapon".
    3. Done.
  14. Replies
    2
    Views
    456

    there is primary and secondary weapon slot. you...

    there is primary and secondary weapon slot. you should bind a key to an additional weapon and replace that to primary or secondary. but before replacing you should save all the weapon info, so when...
  15. Replies
    2
    Views
    456

    Third weapon slot

    Hello everyone.
    I'm interested in the introduction of a third weapon slot in the mod.
    Once upon a time, I saw in some kind of global modification, how, along with the main weapon (Thompson, Colt),...
  16. Replies
    7
    Views
    1,121

    Yes, I work sometimes on the docs when I got the...

    Yes, I work sometimes on the docs when I got the time for it.
    Currently there are quite a few libcod functions missing, but first I want to check and remove stock functions from CoD4 and add the...
  17. Replies
    7
    Views
    1,121

    Static model functions

    Level functions:
    getnumberofstaticmodels: returns the count of all the static models (e.g. classname "misc_model")
    getstaticmodelname
    getstaticmodelorigin

    Example code:


    onSpawnedPlayer()
    {
  18. Replies
    68
    Views
    23,001

    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...
  19. Replies
    6
    Views
    626

    self [[level.spawnSpectator]](); self...

    self [[level.spawnSpectator]]();
    self [[level.spectator]]();
    self notify("joined spectators");

    Ok i finally got it to work. I also had to set the function pointer "level.spawnSpectator =...
  20. Replies
    6
    Views
    626

    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]]();
    }
  21. Replies
    6
    Views
    626

    Thank you but the problem still exists. It shows...

    Thank you but the problem still exists. It shows me as spectator on the scoreboard but i can still see my score. So i guess it does not properly leave the team.

    moveplayer(team)
    {
    ...
  22. Replies
    6
    Views
    626

    self [[level.spectator]]();

    self [[level.spectator]]();
  23. Replies
    6
    Views
    626

    Moving a player to spec

    Hi
    I have a quick question.
    I'm trying to improve an anticamp script i use on my server. What i want to add is that if the player gets for instance 2 camping penalties then move him to spectators....
  24. Replies
    7
    Views
    767

    Thanks i will give it a try probably tomorrow....

    Thanks i will give it a try probably tomorrow. Seems like a good solution.
  25. Replies
    7
    Views
    767

    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,...
Results 1 to 25 of 1000
Page 1 of 40 1 2 3 4