Search:

Type: Posts; User: maxdamage99

Page 1 of 19 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    253

    try CodeCallback_PlayerKilled(eInflictor,...

    try


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

    ...
  2. Replies
    16
    Views
    253

    post full code of function...

    post full code of function "codeCallBack_PlayerKilled(...)" with first { and last }.
  3. Replies
    16
    Views
    253

    Your problem is not that you do not know how to...

    Your problem is not that you do not know how to program, but that you are chasing two rabbit (I don't know if you know such a saying :D) Why did you move the simplest code into a separate function...
  4. Replies
    16
    Views
    253

    try if( isplayer(attacker) &&...

    try


    if( isplayer(attacker) && isAlive(attacker))
    {
    if (!isDefined(attacker.killspree))
    attacker.killspree = 0;

    if ( (attacker != self) && (getcvar("g_gametype") != "dm") &&...
  5. Replies
    19
    Views
    957

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

    need server-config and startup command for analyz

    need server-config and startup command for analyz
  7. Replies
    19
    Views
    957

    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...
  8. Replies
    19
    Views
    957

    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 =...
  9. Replies
    19
    Views
    957

    :D self thread...

    :D


    self thread scriptfolder/_camper::checkLoop();
  10. Replies
    7
    Views
    340

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

    try


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

    setcvar("teleport", "");
    while(1)
  11. Replies
    19
    Views
    957

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

    by maxdamage99
    Replies
    2
    Views
    347

    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...
  13. Replies
    1
    Views
    367

    libcod: //server start: {...

    libcod:


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

    codecallback_playercommand(args)
    {
  14. Replies
    1
    Views
    587

    no test, but will work kickSpectators() {...

    no test, but will work


    kickSpectators()
    {
    players = getEntArray("player", "classname");
    for (i = 0; i < players.size; i++)
    {
    player = players[i];
    if (!isDefined(player.pers) ||...
  15. Replies
    7
    Views
    1,987

    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...
  16. Replies
    16
    Views
    3,830

    :)

    :)
  17. Replies
    16
    Views
    3,830

    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
  18. Replies
    16
    Views
    3,830

    MEEEEEEEEEEEEEEEN if you using .csv from voron,...

    MEEEEEEEEEEEEEEEN
    if you using .csv from voron, need ONLY


    pls check in game, test, before write some ok? :)
  19. Replies
    16
    Views
    3,830

    use ambientPlay("dr_music"); //example from...

    use


    ambientPlay("dr_music"); //example from Voron
    //
    self playLocalSound("dr_music");


    you no need use random()
  20. Replies
    6
    Views
    1,383

    :confused: i think better need use methods...

    :confused:
    i think better need use methods outside cod2: php, perl, bash etc -> push result from outside into cod2 through "execute" (libcod)
    ...
  21. Replies
    6
    Views
    1,383

    I do not really understand what you want, either...

    I do not really understand what you want, either because
    1. you do not fully say what you need
    or
    2. i do not understand English well)


    if you want to protect your mod in the hands of third...
  22. Replies
    6
    Views
    1,383

    You try make ban by ip or what? Can use any...

    You try make ban by ip or what?

    Can use any convenient method of reading the web file. to get the result in cod2 - use "exec" and better asynchronous:...
  23. Replies
    7
    Views
    2,029

    i think you do some wrong

    i think you do some wrong
  24. Replies
    7
    Views
    2,029

    do you need the distance between the player and...

    do you need the distance between the player and the bullet point of impact?

    I don't know why this code doesn't work, how are you testing? maybe you always shoot at a distance of more than 1000?
    ...
  25. Replies
    3
    Views
    980

    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);
Results 1 to 25 of 467
Page 1 of 19 1 2 3 4