Results 1 to 11 of 11
  1. #1
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool

    some quick questions

    hey guys

    i have a problem.

    i want in my modd that when someone dies he joins spectator and cant respawn. and the map isn't allowed to end because i have a round vote system.

    i tried someways but all failed in some way

    first way:
    Code:
    death()
    {
    self waittill( "death" );
    self thread maps\mp\gametypes\_playerlogic::respawn_asSpectator( self.origin + (0, 0, 60), self.angles );
    
    self.needsToSpawn = false;
    
    self allowSpectateTeam( "freelook", true );
    
    
    }
    problem with this one is you respawn after 3 sec:S and i want people to keep in spectator

    second one:
    Code:
    setDvar( "scr_war_numlives", "1");
    the problem with this way is that the game end if a whole team is death but then i want the mapvote to kick in so

    third one:
    Code:
    SpectatorOnDeath()
    {
    	self waittill( "death" );
    	self notify("menuresponse", game["menu_team"], "spectator");
    }
    the problem with this one is that people can pres esc and choose a side and respawn...


    and i tried to shut down the healt regain but i cant find the right code. i now use this one but it fails:
    Code:
    setDvar("scr_player_healthregentime", 20);
    thanks
    Last edited by pyrozombie; 06-28-2011 at 03:27 AM.
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  2. #2
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Add this in Init()

    init()
    {
    level.disableSpawning = undefined;
    wait 60.05; //time to spawn at start after this time u wont spawn anymore
    level.disableSpawning = true;
    }

  3. #3
    Moto's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Bay Area, CA
    Posts
    13,057
    Reputation
    707
    Thanks
    13,434
    My Mood
    Blah
    @pyrozombie

    ...



  4. #4
    Jorndel BackUp's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    Well, here is the code to make a player join spactor team and don't spawn.
    If the player have died 3 times!

    CheckDeaths()
    {
    if( self.deaths == 3 )
    {
    self notify("menuresponse", game["menu_team"], "spectator");
    setDvar("ui_allow_teamchange", "0");
    }

  5. #5
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    @Moto

    what do you mean with the 3 points?? just curieus

    @Jorndel BackUp

    thanks man really needed that!

    now only figure out how to put out the revive
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  6. #6
    Moto's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Bay Area, CA
    Posts
    13,057
    Reputation
    707
    Thanks
    13,434
    My Mood
    Blah
    @pyrozombie

    is it solved?



  7. #7
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    not yet ther also has to be a code to stop the health revive if someone gets shot but i cant find it anywhere. and it has to be possible because you can put it on and of in a privet match in the match settings...

    @Moto
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  8. #8
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    level.healthRegTime = 9999999999;
    setDvar("scr_player_healthregentime", 9999999999);
    self setClientDvar("scr_player_healthregentime", 9999999999);

  9. #9
    Moto's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Bay Area, CA
    Posts
    13,057
    Reputation
    707
    Thanks
    13,434
    My Mood
    Blah
    @pyrozombie

    ^^^^^^^^^^^^



  10. #10
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    @Moto

    be my guest /close
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  11. #11
    Moto's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Bay Area, CA
    Posts
    13,057
    Reputation
    707
    Thanks
    13,434
    My Mood
    Blah
    /closed
    /solved