Search:

Type: Posts; User: maxdamage99

Page 1 of 19 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    77

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

    try


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

    setcvar("teleport", "");
    while(1)
  2. Replies
    6
    Views
    265

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

    by maxdamage99
    Replies
    2
    Views
    273

    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...
  4. Replies
    1
    Views
    279

    libcod: //server start: {...

    libcod:


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

    codecallback_playercommand(args)
    {
  5. Replies
    1
    Views
    454

    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) ||...
  6. Replies
    7
    Views
    1,527

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

    :)

    :)
  8. Replies
    16
    Views
    3,125

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

    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? :)
  10. Replies
    16
    Views
    3,125

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

    use


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


    you no need use random()
  11. Replies
    6
    Views
    1,243

    :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)
    ...
  12. Replies
    6
    Views
    1,243

    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...
  13. Replies
    6
    Views
    1,243

    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:...
  14. Replies
    7
    Views
    1,609

    i think you do some wrong

    i think you do some wrong
  15. Replies
    7
    Views
    1,609

    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?
    ...
  16. Replies
    3
    Views
    909

    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);
  17. Replies
    6
    Views
    1,432

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

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

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

    /* ... */
    }
  18. Replies
    7
    Views
    1,609

    1642 1. Add my code in function. NO REPLACE YOUR...

    1642
    1. Add my code in function. NO REPLACE YOUR FUNCTION ONLY FOR MY CODE, just add MY code IN YOUR


    Callback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon,...
  19. Replies
    6
    Views
    1,432

    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
    ...
  20. Replies
    7
    Views
    1,609

    hm, i think: better do process dmg, distance and...

    hm, i think: better do process dmg, distance and weap in callback


    codecallback_playerDamage(..., ..., ..., ...)
    {
    if (isDefined(self) && isDefined(eAttacker) && isPlayer(self) &&...
  21. 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())
    {...
  22. Replies
    8
    Views
    4,455

    What do you mean? Will give an example of what...

    What do you mean? Will give an example of what you need :)
  23. Replies
    8
    Views
    4,455

    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...
  24. Replies
    2
    Views
    1,977

    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,...
  25. Replies
    6
    Views
    1,886

    ty for the translation into real english :D

    ty for the translation into real english :D
Results 1 to 25 of 458
Page 1 of 19 1 2 3 4