Results 1 to 9 of 9
  1. #1
    Fisher22's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    Question In the zombie mod nuclear charge!

    Help make a zombie fashion a nuclear warhead. When you kill 100 zombies yaderka given?
    Last edited by Fisher22; 07-19-2012 at 08:52 AM. Reason: Help me make a zombie fashion a nuclear warhead. When you kill 100 zombies given yaderka!

  2. #2
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    Are you asking for someone to make a mod for you, or do you need help with fixing your mod? If so, post your code and elaborate.


    The lines in my Steam are i's

  3. #3
    Fisher22's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Well, no zombie mod I already have, I just want to add a nuclear warhead, when you kill 100 zombies.

    ---------- Post added at 01:25 PM ---------- Previous post was at 01:11 PM ----------

    Here I have the code but for some reason it does not work?

    Nuke()
    {
    self endon("disconnect");
    if(self.score >= 1000)
    {
    self maps\mp\gametypes\_hud_message::killstreakSplashNo tify("nuke", 1337);
    self maps\mp\killstreaks\_killstreaks::giveKillstreak(" nuke", false);
    wait 1;
    self thread maps\mp\gametypes\_hud_message::hintMessage("You WON Launch Your Nuke!!!!");
    wait 30;
    }
    }
    }

  4. #4
    Larity2056's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    UDF 2457
    Posts
    2,497
    Reputation
    188
    Thanks
    700
    My Mood
    Dead
    Quote Originally Posted by Fisher22 View Post
    Well, no zombie mod I already have, I just want to add a nuclear warhead, when you kill 100 zombies.

    ---------- Post added at 01:25 PM ---------- Previous post was at 01:11 PM ----------

    Here I have the code but for some reason it does not work?

    Nuke()
    {
    self endon("disconnect");
    if(self.score >= 1000)
    {
    self maps\mp\gametypes\_hud_message::killstreakSplashNo tify("nuke", 1337);
    self maps\mp\killstreaks\_killstreaks::giveKillstreak(" nuke", false);
    wait 1;
    self thread maps\mp\gametypes\_hud_message::hintMessage("You WON Launch Your Nuke!!!!");
    wait 30;
    }
    }
    }
    You have to loop it with While or For...

  5. #5
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by Singularity View Post

    You have to loop it with While or For...
    Let me help you:
    Code:
    Nuke()
    {
    for(;;)
    {
    self endon("death");
    self endon("disconnect");
    if(self.score >= 1000)
    {
    self maps\mp\gametypes\_hud_message::killstreakSplashNo tify("nuke", 1337);
    self maps\mp\killstreaks\_killstreaks::giveKillstreak(" nuke", false);
    wait 1;
    self thread maps\mp\gametypes\_hud_message::hintMessage("You WON Launch Your Nuke!!!!");
    wait 30;
    }
    }
    wait 1;
    }
    }


    Why I wanted to help you:
    because you had to add the endon death as well.
    Else it would just re-make it every time the person died
    Last edited by Jorndel; 07-20-2012 at 04:18 PM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. The Following User Says Thank You to Jorndel For This Useful Post:

    Larity2056 (07-20-2012)

  7. #6
    Fisher22's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    When you start the mod gives an error!
    script compile error
    unknown function
    (see console for details)

  8. #7
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    Quote Originally Posted by Fisher22 View Post
    When you start the mod gives an error!
    script compile error
    unknown function
    (see console for details)
    I assume you want us to find the error, and we can't do that without the your code.


    The lines in my Steam are i's

  9. #8
    Fisher22's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    added here nuke!
    doInit()
    {
    level.gameState = "";
    level thread weaponInit();
    level thread CostInit();
    level thread MenuInit();
    level thread MapVoteInit();
    level thread Nuke();
    level thread CreateServerHUD();
    level thread doServerHUDControl();
    level thread OverRider();
    level thread RemoveTurrets();
    level thread maps\mp\gametypes\MapEdit::init();
    setDvar("g_gametype", "war");
    setDvar("ui_gametype", "war");
    setDvar("scr_war_scorelimit", 0);
    setDvar("scr_war_timelimit", 0);
    setDvar("scr_war_waverespawndelay", 0);
    setDvar("scr_war_playerrespawndelay", 0);
    setDvar("camera_thirdperson", 0);
    wait 2;
    level thread maps\mp\gametypes\RoundSystem::doGameStarter();
    if(level.friendlyfire != 0){
    level thread ffend();
    }
    if( maps\mp\gametypes\_tweakables::getTweakableValue( "game", "onlyheadshots" ) ){
    level thread headend();
    }

    And at the bottom added!
    Nuke()
    {
    for(;
    {
    self endon("death");
    self endon("disconnect");
    if(self.score >= 1000)
    {
    self maps\mp\gametypes\_hud_message::killstreakSplashNo tify("nuke", 1337);
    self maps\mp\killstreaks\_killstreaks::giveKillstreak(" nuke", false);
    wait 1;
    self thread maps\mp\gametypes\_hud_message::hintMessage("You WON Launch Your Nuke!!!!");
    wait 30;
    }
    }
    wait 1;
    }
    }
    Last edited by Fisher22; 07-22-2012 at 02:46 PM.

  10. #9
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    166
    My Mood
    Angelic
    killstreakSplashNo tify("nuke", 1337); there shouldnt be a space between no-tify just killstreakSplashNotify("nuke", 1337);

Similar Threads

  1. Help in Quarantine Chaos Zombie Mod v4.91 killstreaks add to the store
    By nikit6000 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 12-29-2011, 08:52 AM
  2. How do I remove the map from the zombie mod?
    By JukeBoxxHero in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 09-13-2010, 09:03 PM
  3. Anyone know when update the zombies mod
    By Soul.Death in forum CrossFire Hacks & Cheats
    Replies: 11
    Last Post: 01-12-2010, 11:11 AM
  4. [Question] Can he mod the zombie RoF?
    By nectros in forum Combat Arms Mod Discussion
    Replies: 6
    Last Post: 12-05-2009, 08:48 AM
  5. Will you survive the Zombie Epidemic?
    By thechewu in forum General
    Replies: 3
    Last Post: 08-07-2007, 10:02 PM