Search:

Page 2 of 4 1 2 3 4

Search: Search took 1.00 seconds; generated 52 minute(s) ago.

  1. Replies
    9
    Views
    66,060

    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()
  2. Replies
    2
    Views
    78,078

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

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

    :D:D:D
  3. Replies
    3
    Views
    35,628

    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: ...."
  4. Replies
    8
    Views
    59,919

    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,
  5. Replies
    10
    Views
    239,683

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

    Auto-restart after CoD2 engine errors (==== ShutdownGame ====) too or only after CoD2 process crash?
  6. Replies
    0
    Views
    28,514

    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...
  7. Replies
    2
    Views
    39,281

    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
  8. Replies
    2
    Views
    39,281

    [callback] RCON

    example:


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

    sfrom = strtok(from, ":");
  9. Replies
    3
    Views
    35,608

    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
  10. Replies
    0
    Views
    19,169

    itemPickup (on/off)

    self itemPickup(true); //can pickup items (weapons & ammo): default

    self itemPickup(false); //!


    https://github.com/damage99/libcod/commit/ec8aa1a3734a5b63584dc885b847b5df0b99d70b
    ...
  11. Replies
    1
    Views
    7,050

    with javascript, i think: no way make client...

    with javascript, i think: no way
    make client interface with HTML+javascript (ajax etc.), but server info from PHP, PERL etc.

    PHP Example:


    <?php
    /* if static */
    $ip = 'your ip';
    $port =...
  12. Replies
    6
    Views
    25,955

    1555

    1555
  13. Replies
    18
    Views
    55,044

    try /* */ //precache this somewhere...

    try


    /*
    */
    //precache this somewhere
    precacheString(&"tech_date"); //tech_date very long, better "t_d" or "td"
    /*
    */
  14. Replies
    5
    Views
    13,329

    CodeCallback_CLSpam(type, ip) {...

    CodeCallback_CLSpam(type, ip)
    {
    CONST_TimesForBan = 40;

    sm = strtok(type, ":");
    svc = sm[0];
    type = sm[1];

    switch (svc)
    {
  15. Thread: K/D Ratio

    by maxdamage99
    Replies
    4
    Views
    10,596

    very ez method (maybe no work :D): /* kda -...

    very ez method (maybe no work :D):


    /*
    kda - your var with 0.302564
    */

    final_kda = "";
    temp = ""+kda;
  16. Replies
    8
    Views
    16,451

    i no read your post :o p.s: sry for your...

    i no read your post :o

    p.s: sry for your butthurt :)
  17. Replies
    8
    Views
    16,451

    flipKillIcon attribute work only for obituary

    flipKillIcon attribute work only for obituary
  18. Replies
    20
    Views
    201,949

    Melee animation? :confused:

    Melee animation? :confused:
  19. Replies
    20
    Views
    201,949

    few "_mp" clon files with sprinting animation for...

    few "_mp" clon files with sprinting animation for all weapons?:D
  20. Replies
    8
    Views
    74,672

    Sticky: try start server with developer "0" ++ ...

    try start server with
    developer "0"

    ++
    Closer - it's old method for using libcod functions
    You can replace all "closer" on functions name

    LIST FUNC'S: https://znation.nl/cod4script
  21. Replies
    8
    Views
    12,603

    you can ban IP from game (.gsc scripts) - if you...

    you can ban IP from game (.gsc scripts) - if you need ban PLAYER by IP

    if you need ban access for your host machine (IP):


    system("iptables -I INPUT -i eth0 -s "+player getIP()+" -j DROP");
  22. Replies
    13
    Views
    50,370

    Maybe bad idea, but for "console: my message :3"...

    Maybe bad idea, but for "console: my message :3" this:
    Cmd_ExecuteString("say "+self.name+" welcome to the server!");
  23. Replies
    13
    Views
    50,370

    I said: You can try intercept rcon commands...

    I said:


    You can try intercept rcon commands in
    Code_CallbackPlayerCommand
    or
    add own addition to the log (libcod: SV_remote_command)
  24. Replies
    0
    Views
    22,454

    [LIBCOD] NO-CRASH "setanim"

    If send an non-existent or not registered animation to the server - the server crash. This function excludes server crash.
    For: https://killtube.org/showthread.php?2225-player-setAnim(string)
    Maybe...
  25. Thread: Make mod

    by maxdamage99
    Replies
    24
    Views
    96,857

    Yuri, you were not there (in TS3 with...

    Yuri, you were not there (in TS3 with Blanco,Rolson) if Blanco denies our dialogue with him, he bastard.
    We agreed that I shut the server in case it resumes its.
Results 26 to 50 of 96
Page 2 of 4 1 2 3 4