Search:

Page 1 of 4 1 2 3 4

Search: Search took 1.00 seconds.

  1. Replies
    7
    Views
    1,121

    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...
  2. Replies
    16
    Views
    2,416

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

    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);
  4. Replies
    6
    Views
    1,119

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

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

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

    /* ... */
    }
  5. Replies
    6
    Views
    1,119

    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
    ...
  6. 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())
    {...
  7. Replies
    8
    Views
    3,660

    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...
  8. Replies
    2
    Views
    1,636

    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,...
  9. Replies
    6
    Views
    1,647

    need see ...

    need see


    maps\mp\gametypes\_mysql::asyncQuery

    bcs


    processKickIp(rows, args)
  10. Replies
    4
    Views
    1,716

    rcon extension

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

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

    ...
  11. Replies
    14
    Views
    9,467

    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()
    {
  12. Replies
    1
    Views
    1,056

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

    by maxdamage99
    Replies
    5
    Views
    8,104

    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")
  14. Replies
    2
    Views
    9,426

    Forum is dead?

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

    maybe I misunderstood you, but .. ...

    maybe I misunderstood you, but ..



    execute_aCD()
    {
    exec_async_checkdone();
    }

    aExecute_getID()
  16. Replies
    9
    Views
    3,851

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

    use:


    developer 2

    put in server-config


    P.S:
  17. Replies
    9
    Views
    3,851

    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()
  18. Replies
    2
    Views
    3,243

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

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

    :D:D:D
  19. Replies
    3
    Views
    1,948

    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: ...."
  20. Replies
    8
    Views
    3,498

    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,
  21. Replies
    10
    Views
    13,760

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

    Auto-restart after CoD2 engine errors (==== ShutdownGame ====) too or only after CoD2 process crash?
  22. Replies
    0
    Views
    1,611

    libcod callback's list

    if it will be useful to someone, I will try to formulate a description for callbacks in libcod
    PlayerCommand
    Call before exec player command, arguments: self - client command executor, args - array...
  23. Replies
    2
    Views
    2,128

    yeah...

    yeah
    https://github.com/damage99/libcod/blob/main-branch-damage99/libcod.cpp#L971

    callback is after rateLimit()
    https://github.com/damage99/libcod/blob/main-branch-damage99/libcod.cpp#L991
  24. Replies
    2
    Views
    2,128

    [callback] RCON

    example:


    codecallback_remoteCommand(from, command, pointerMsg)
    {
    parseCMD = strtok(command, " ");
    command = parseCMD[2];
    value = parseCMD[3];

    sfrom = strtok(from, ":");
  25. Replies
    3
    Views
    1,825

    randombox(weap) { if (!isDefined(weap)) ...

    randombox(weap)
    {
    if (!isDefined(weap))
    return;

    weap hide();
    o = weap.origin;
    cost = 500;

    // init set of weapons in this randombox
Results 1 to 25 of 91
Page 1 of 4 1 2 3 4