Search:

Page 4 of 40 1 2 3 4 5 6 7

Search: Search took 1.00 seconds; generated 62 minute(s) ago.

  1. Thread: 1 sniper

    by IzNoGoD
    Replies
    2
    Views
    11,656

    Dont forget to clean up the list upon sniper...

    Dont forget to clean up the list upon sniper joining spec and/or on sniper joining other team/autobalance.
  2. Thread: 1 sniper

    by maxdamage99
    Replies
    2
    Views
    11,656

    a lot of nuances, mode and so on, how people...

    a lot of nuances, mode and so on, how people choose weapons, once or each (as an example).

    default _weapons.gsc:


    restrictWeaponByServerCvars(response)
    {
    SNIPER_LIMIT = 1;

    if...
  3. Thread: 1 sniper

    by mateocjs
    Replies
    2
    Views
    11,656

    1 sniper

    How can I make there is only one sniper per team?
    example: axis only a kar98ksniper and if a player select the sniper (in addition to the one who already has it) be assigned another weapon (kar98k)...
  4. 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...
  5. Replies
    0
    Views
    91,014

    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
  6. 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...
  7. 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.
  8. [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...
  9. Thread: Console script

    by Mitch
    Replies
    3
    Views
    17,177

    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...
  10. Thread: Console script

    by IzNoGoD
    Replies
    3
    Views
    17,177

    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.
  11. Thread: Console script

    by voron00
    Replies
    3
    Views
    17,177

    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
    ...
  12. Replies
    3
    Views
    17,177

    Console script

    how to make a script that runs a cmd on the console? Like rcon map_restart
  13. Replies
    3
    Views
    35,849

    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
    ...
  14. Replies
    3
    Views
    35,849

    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...
  15. Replies
    3
    Views
    35,849

    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");
    ...
  16. Replies
    3
    Views
    67,469

    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.
  17. Replies
    3
    Views
    67,469

    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...
  18. Replies
    3
    Views
    67,469

    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),...
  19. Replies
    7
    Views
    79,844

    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...
  20. Replies
    7
    Views
    79,844

    Static model functions

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

    Example code:


    onSpawnedPlayer()
    {
  21. Replies
    68
    Views
    274,013

    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...
  22. Replies
    6
    Views
    23,923

    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 =...
  23. Replies
    6
    Views
    23,923

    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]]();
    }
  24. Replies
    6
    Views
    23,923

    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)
    {
    ...
  25. Replies
    6
    Views
    23,923

    self [[level.spectator]]();

    self [[level.spectator]]();
Results 76 to 100 of 1000
Page 4 of 40 1 2 3 4 5 6 7