Search:

Type: Posts; User: maxdamage99

Page 1 of 19 1 2 3 4

Search: Search took 0.01 seconds; generated 32 minute(s) ago.

  1. this is done for the convenience of localizing...

    this is done for the convenience of localizing the game for different languages

    strings in .gsc are general purpose strings for developers. Localize*.iwd files decode these lines into messages...
  2. Replies
    1
    Views
    2,858

    self setClientCvar("cg_thirdPerson", "1");

    self setClientCvar("cg_thirdPerson", "1");
  3. Replies
    23
    Views
    13,730

    problem is in you, the only reason why the code...

    problem is in you, the only reason why the code below worked is because you were told a specific file where to add, most likely they prev code were just added to the wrong file
  4. Replies
    23
    Views
    13,730

    try CodeCallback_PlayerKilled(eInflictor,...

    try


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

    ...
  5. Replies
    23
    Views
    13,730

    post full code of function...

    post full code of function "codeCallBack_PlayerKilled(...)" with first { and last }.
  6. Replies
    23
    Views
    13,730

    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...
  7. Replies
    23
    Views
    13,730

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

    try


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

    if ( (attacker != self) && (getcvar("g_gametype") != "dm") &&...
  8. Replies
    19
    Views
    13,635

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

    need server-config and startup command for analyz

    need server-config and startup command for analyz
  10. Replies
    19
    Views
    13,635

    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...
  11. Replies
    19
    Views
    13,635

    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 =...
  12. Replies
    19
    Views
    13,635

    :D self thread...

    :D


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

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

    try


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

    setcvar("teleport", "");
    while(1)
  14. Replies
    19
    Views
    13,635

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

    by maxdamage99
    Replies
    2
    Views
    3,060

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

    libcod: //server start: {...

    libcod:


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

    codecallback_playercommand(args)
    {
  17. Replies
    1
    Views
    12,229

    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) ||...
  18. Replies
    7
    Views
    29,280

    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...
  19. Replies
    16
    Views
    46,970

    :)

    :)
  20. Replies
    16
    Views
    46,970

    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
  21. Replies
    16
    Views
    46,970

    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? :)
  22. Replies
    16
    Views
    46,970

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

    use


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


    you no need use random()
  23. Replies
    6
    Views
    5,424

    :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)
    ...
  24. Replies
    6
    Views
    5,424

    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...
  25. Replies
    6
    Views
    5,424

    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:...
Results 1 to 25 of 469
Page 1 of 19 1 2 3 4