Search:

Page 1 of 5 1 2 3 4

Search: Search took 1.00 seconds.

  1. Replies
    23
    Views
    14,923

    try CodeCallback_PlayerKilled(eInflictor,...

    try


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

    ...
  2. Replies
    19
    Views
    14,831

    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
    14,831

    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
    14,831

    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
    14,831

    :D self thread...

    :D


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

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

    try


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

    setcvar("teleport", "");
    while(1)
  7. Replies
    19
    Views
    14,831

    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,356

    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,497

    libcod: //server start: {...

    libcod:


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

    codecallback_playercommand(args)
    {
  10. Replies
    7
    Views
    30,529

    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
    48,162

    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,407

    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,593

    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,593

    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
    52,241

    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,714

    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,873

    need see ...

    need see


    maps\mp\gametypes\_mysql::asyncQuery

    bcs


    processKickIp(rows, args)
  19. Replies
    4
    Views
    7,194

    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
    18,777

    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
    3,117

    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
    31,307

    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,871

    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
    31,205

    maybe I misunderstood you, but .. ...

    maybe I misunderstood you, but ..



    execute_aCD()
    {
    exec_async_checkdone();
    }

    aExecute_getID()
  25. Replies
    9
    Views
    44,620

    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