Search:

Page 1 of 40 1 2 3 4

Search: Search took 1.00 seconds.

  1. Replies
    1
    Views
    47

    - Are those all avaible build-in functions,...

    - Are those all avaible build-in functions, natives, server variables? - https://znation.nl/cod2script/
    The cod2 + libcod documentation only contains functions and player/entity methods.
    All cod2...
  2. Replies
    1
    Views
    47

    Help me to get the knowledge.

    Hello community!

    Before I get into main topic FAQ, I want to introduce myself. I used to play in Call of Duty 2 since 2014 I think. Don't know exactly. I did played on almost all possible...
  3. Thread: 1 sniper

    by IzNoGoD
    Replies
    2
    Views
    223

    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.
  4. Thread: 1 sniper

    by maxdamage99
    Replies
    2
    Views
    223

    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...
  5. Thread: 1 sniper

    by mateocjs
    Replies
    2
    Views
    223

    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)...
  6. 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...
  7. Replies
    0
    Views
    245

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

    by Mitch
    Replies
    3
    Views
    451

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

    by IzNoGoD
    Replies
    3
    Views
    451

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

    by voron00
    Replies
    3
    Views
    451

    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
    ...
  14. Replies
    3
    Views
    451

    Console script

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

    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
    ...
  16. Replies
    3
    Views
    631

    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...
  17. Replies
    3
    Views
    631

    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");
    ...
  18. Replies
    3
    Views
    781

    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.
  19. Replies
    3
    Views
    781

    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...
  20. Replies
    3
    Views
    781

    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),...
  21. Replies
    7
    Views
    1,453

    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...
  22. Replies
    7
    Views
    1,453

    Static model functions

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

    Example code:


    onSpawnedPlayer()
    {
  23. Replies
    68
    Views
    24,117

    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...
  24. Replies
    6
    Views
    801

    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 =...
  25. Replies
    6
    Views
    801

    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]]();
    }
Results 1 to 25 of 1000
Page 1 of 40 1 2 3 4