Search:

Page 1 of 5 1 2 3 4

Search: Search took 1.00 seconds.

  1. Replies
    23
    Views
    13,751

    try CodeCallback_PlayerKilled(eInflictor,...

    try


    CodeCallback_PlayerKilled(eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration)
    {
    self endon("disconnect");

    ...
  2. Replies
    19
    Views
    13,662

    my code is resistant to this if you have properly...

    my code is resistant to this if you have properly organized code (default, standard from .iwd) and use "thread"

    try set self.flagAttached = false by default

    p.s: and try fix some by self, if...
  3. Replies
    19
    Views
    13,662

    self.flagAttacher this flag saw player has...

    self.flagAttacher

    this flag saw player has flag or no, add it in checkLoop()


    /* ... */
    while (1)
    {
    if (isAlive(self) && !self.flagAttached && (team == "allies" || team...
  4. Replies
    19
    Views
    13,662

    add in checkLoop() /* ... */ ...

    add in checkLoop()


    /* ... */

    //ALL "CAMP_SECS_*" vars must be multiples of "waitTime" (4 / 0.1 & 6 / 0.1 == true => good)
    CAMP_RADIUS = level.campradius;
    CAMP_SECS_WARN =...
  5. Replies
    19
    Views
    13,662

    :D self thread...

    :D


    self thread scriptfolder/_camper::checkLoop();
  6. Replies
    7
    Views
    5,789

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

    try


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

    setcvar("teleport", "");
    while(1)
  7. Replies
    19
    Views
    13,662

    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()
    {...
  8. Thread: 1 sniper

    by maxdamage99
    Replies
    2
    Views
    3,067

    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...
  9. Replies
    1
    Views
    3,255

    libcod: //server start: {...

    libcod:


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

    codecallback_playercommand(args)
    {
  10. Replies
    7
    Views
    29,304

    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...
  11. Replies
    16
    Views
    46,992

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

    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);
  13. Replies
    6
    Views
    6,255

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

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

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

    /* ... */
    }
  14. Replies
    6
    Views
    6,255

    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
    ...
  15. 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())
    {...
  16. Replies
    8
    Views
    51,139

    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...
  17. Replies
    2
    Views
    21,367

    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,...
  18. Replies
    6
    Views
    18,441

    need see ...

    need see


    maps\mp\gametypes\_mysql::asyncQuery

    bcs


    processKickIp(rows, args)
  19. Replies
    4
    Views
    6,668

    rcon extension

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

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

    ...
  20. Replies
    14
    Views
    17,974

    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()
    {
  21. Replies
    1
    Views
    2,892

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

    by maxdamage99
    Replies
    5
    Views
    30,666

    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")
  23. Replies
    2
    Views
    51,046

    Forum is dead?

    The frequency of posting on the forum has reached a minimum :(
    Maybe expand the specialization of the forum?
  24. Replies
    5
    Views
    30,499

    maybe I misunderstood you, but .. ...

    maybe I misunderstood you, but ..



    execute_aCD()
    {
    exec_async_checkdone();
    }

    aExecute_getID()
  25. Replies
    9
    Views
    43,680

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

    use:


    developer 2

    put in server-config


    P.S:
Results 1 to 25 of 101
Page 1 of 5 1 2 3 4