Search:

Page 1 of 4 1 2 3 4

Search: Search took 1.00 seconds.

  1. Replies
    7
    Views
    78

    try teleport() { level endon("boot");...

    try


    teleport()
    {
    level endon("boot");
    level endon("round_ended");

    setcvar("teleport", "");
    while(1)
  2. Replies
    6
    Views
    265

    Script is really very boring, but besides, there...

    Script is really very boring, but besides, there are a lot of nuances to consider.
    Try something like this


    /* start this (self ...();) when play connected on server */
    onPlayerConnect()
    {...
  3. Thread: 1 sniper

    by maxdamage99
    Replies
    2
    Views
    276

    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...
  4. Replies
    1
    Views
    284

    libcod: //server start: {...

    libcod:


    //server start:
    {
    setCvar("scr_gchat", "1"); //chat enabled default
    }

    codecallback_playercommand(args)
    {
  5. Replies
    7
    Views
    1,530

    maybe I'm wrong, but still need to describe...

    maybe I'm wrong, but still need to describe hidePlayer() function, I did it like this


    hidePlayer(model)
    {
    self.hidden = model;
    self setModel(model);
    }

    and add some code to the function...
  6. Replies
    16
    Views
    3,125

    1. attach playing sound on other event 2. test...

    1. attach playing sound on other event
    2. test other sounds
    3. try self playSound() before it's be working
  7. Replies
    3
    Views
    909

    1. try search code from .gsc like: /* ......

    1. try search code from .gsc like:


    /* ... */

    self waittill("menuresponse", menu, response);

    if (menu == "objects1")
    self setmodel(response);
  8. Replies
    6
    Views
    1,432

    onPlayerSpawned() //function when player spawned...

    onPlayerSpawned() //function when player spawned
    {
    /* ... */

    self.isSprint = false;
    self setclientcvar("g_speed", "190"); //libcod: self setg_speed(190);

    /* ... */
    }
  9. Replies
    6
    Views
    1,432

    really, download released mod, test, check, look...

    really, download released mod, test, check, look script (how work)
    exists few methods for make "player sprint", but before talk about it you need understand some
    ...
  10. if you using libcod: /* your callback script...

    if you using libcod:


    /* your callback script (callbacksetup) */
    CodeCallback_UserInfoChanged(num)
    {
    name = self get_userinfo("name");
    if (self.name != name && !self isBot())
    {...
  11. Replies
    8
    Views
    4,455

    There is not much code, you can describe it as...

    There is not much code, you can describe it as your own function (translate pseudocode in C/C++)

    You can analyze the function in which this section is located, it is possible to call the upper...
  12. Replies
    2
    Views
    1,977

    example on default gametype scripts. new lines...

    example on default gametype scripts.

    new lines marked like suffix "//+new"

    sd.gsc


    Callback_PlayerKilled(eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime,...
  13. Replies
    6
    Views
    1,887

    need see ...

    need see


    maps\mp\gametypes\_mysql::asyncQuery

    bcs


    processKickIp(rows, args)
  14. Replies
    4
    Views
    1,862

    rcon extension

    in addition to: https://killtube.org/showthread.php?3153-callback-RCON&highlight=rcon

    Added function https://github.com/damage99/libcod/commit/484ef3e4d6dee6d397eb404900afbab450c04bbe:

    ...
  15. Replies
    14
    Views
    9,825

    You can try storing money in global variables, I...

    You can try storing money in global variables, I don’t know how good this idea is :)


    getID()
    {
    return self getEntityNumber();
    }

    onPlayerConnect()
    {
  16. Replies
    1
    Views
    1,139

    If you are sure and checked everything, then most...

    If you are sure and checked everything, then most likely the case "finishPlayerDamage".

    I looked at the code in the decompile version, it is very similar if I do not confuse something with the...
  17. Thread: Masterlist

    by maxdamage99
    Replies
    5
    Views
    8,488

    What game? Server with libcod? What libcod...

    What game?
    Server with libcod?
    What libcod version if exist?

    if libcod from voron, check sv_noauthorize (set to "0" if are "1")
  18. Replies
    2
    Views
    10,024

    Forum is dead?

    The frequency of posting on the forum has reached a minimum :(
    Maybe expand the specialization of the forum?
  19. Replies
    5
    Views
    2,868

    maybe I misunderstood you, but .. ...

    maybe I misunderstood you, but ..



    execute_aCD()
    {
    exec_async_checkdone();
    }

    aExecute_getID()
  20. Replies
    9
    Views
    4,628

    use: developer 2 put in server-config ...

    use:


    developer 2

    put in server-config


    P.S:
  21. Replies
    9
    Views
    4,628

    you can use libcod functions from anywhere in...

    you can use libcod functions from anywhere in scripts.

    do you mean PHP /PHP tags? in these tags, the code looks more attractive and readable

    code like this


    /* hello guys */

    spawnPlayer()
  22. Replies
    2
    Views
    4,165

    if(!isDefined(eAttacker) || !isPlayer(eAttacker))...

    if(!isDefined(eAttacker) || !isPlayer(eAttacker)) //maybe last is not needed, idk :)
    return;

    :D:D:D
  23. Replies
    3
    Views
    2,343

    i think some loops maybe infinite test with ...

    i think some loops maybe infinite

    test with


    developer 2


    reason of lag printed after "hitch warning: ...."
  24. Replies
    8
    Views
    4,071

    https://github.com/damage99/libcod/blob/main-branc...

    https://github.com/damage99/libcod/blob/main-branch-damage99/declarations.hpp#L399
    or


    typedef enum
    {
    EV_NONE = 0,
    EV_FOOTSTEP_RUN_DEFAULT,
    EV_FOOTSTEP_RUN_BARK,
    EV_FOOTSTEP_RUN_BRICK,
  25. Replies
    10
    Views
    16,127

    Auto-restart after CoD2 engine errors (====...

    Auto-restart after CoD2 engine errors (==== ShutdownGame ====) too or only after CoD2 process crash?
Results 1 to 25 of 95
Page 1 of 4 1 2 3 4