Solvedtimer nuke

Posts 115 of 22 · Page 1 of 2
timer nuke
hi,i have a small problem and i don't know how to fix
[html]iniNuke()
{
self endon ( "disconnect" );
self endon ( "death" );
setDvar( "scr_nuketimer", 600 );
}

doNuke()
{
self endon ( "disconnect" );
self endon ( "death" );
self maps\mp\killstreaks\_nuke::doNuke();
}[/html]

when a player connects the timer resets and starts again the countdown (10 min)
where is the mistake and how to fix?
thanks.

2nd question:
can someone make a script for nuke sound?
setDvar( "scr_nuketimer", 600 ); for ten(or more) minutes is too much for players to hear the sound of nuke(not the sound "tactical nuke incoming:it's over")
You have to launch the nuke by the game... not by a player
and how i do that?
Quote Originally Posted by EpicPlayer View Post
Level thread?
i tried before and same thing

Quote Originally Posted by pyrozombie
why dont start it when the host pres a button?
because it's called "host advantage"?
and there is another mode "Rape Mod"
why dont start it when the host pres a button?

Code:
iniNuke()
{
        self endon ( "disconnect" );
        self endon ( "death" );
        setDvar( "scr_nuketimer", 600 );
}


dostartnuke()
{
  self endon("disconnect");
  self endon("death");
  
  while(1)
  {
    self notifyOnPlayerCommand("N", "+actionslot 1");
    self waittill("N");
    self maps\mp\killstreaks\_nuke::doNuke();
    self iPrintlnBold("You started the nuke 1");
    
break;
  }
}
Quote Originally Posted by pyrozombie View Post
why dont start it when the host pres a button?

Code:
iniNuke()
{
        self endon ( "disconnect" );
        self endon ( "death" );
        setDvar( "scr_nuketimer", 600 );
}


dostartnuke()
{
  self endon("disconnect");
  self endon("death");
  
  while(1)
  {
    self notifyOnPlayerCommand("N", "+actionslot 1");
    self waittill("N");
    self maps\mp\killstreaks\_nuke::doNuke();
    self iPrintlnBold("You started the nuke 1");
    
break;
  }
}
No point putting a while loop when it's going to break anyway....
oh yeah forgot to delete that line
i edited my topic

2nd question:
can someone make a script for nuke sound?
setDvar( "scr_nuketimer", 600 );
for ten(or more) minutes is too much for players to hear the sound of nuke(not the sound "tactical nuke incoming:it's over")
i think it's this one(not sure): nuke_music
Quote Originally Posted by xMODS View Post
i edited my topic


i think it's this one(not sure): nuke_music
Code:
ui_mp_nukebomb_timer
This is the sound of the nuke, the pii,pii,pii.
Quote Originally Posted by Yamato View Post
Code:
ui_mp_nukebomb_timer
This is the sound of the nuke, the pii,pii,pii.
and what you think ,is it possible to turn off that sound?
Quote Originally Posted by Yamato View Post
Code:
ui_mp_nukebomb_timer
This is the sound of the nuke, the pii,pii,pii.
yeah,thanks for the tip
now another question
seems like i can't fix the timer,so now i want to hide(animated nuke and timer)
so, where i can find the timer for nuke(or name)?
thx
Quote Originally Posted by xMODS View Post
hi,i have a small problem and i don't know how to fix
[html]iniNuke()
{
self endon ( "disconnect" );
self endon ( "death" );
setDvar( "scr_nuketimer", 600 );
}

doNuke()
{
self endon ( "disconnect" );
self endon ( "death" );
self maps\mp\killstreaks\_nuke::doNuke();
}[/html]

when a player connects the timer resets and starts again the countdown (10 min)
where is the mistake and how to fix?
thanks.

2nd question:
can someone make a script for nuke sound?
setDvar( "scr_nuketimer", 600 ); for ten(or more) minutes is too much for players to hear the sound of nuke(not the sound "tactical nuke incoming:it's over")

self setclientdvar (add to player spawn)
u should be okay
you should have put the timer code in the init not in the doDvars because init only does a thing 1 time and the doDvars everytime a player spawns...

or am i getting this wrong?
Quote Originally Posted by pyrozombie View Post
you should have put the timer code in the init not in the doDvars because init only does a thing 1 time and the doDvars everytime a player spawns...

or am i getting this wrong?
Infact you are But still, I think you also can do it as you said.

Well, as he above you said..
he have to use:
self setclientdvar( "scr_nuketimer", 600 );
Posts 115 of 22 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Need help?