Results 1 to 4 of 4
  1. #1
    PP_CrazyApple's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    851
    Reputation
    28
    Thanks
    416
    My Mood
    Innocent

    Coding a zombie mod (editing)

    Hi, i am editing and improving this Zombie Mod by dozzer. I already done many things like dissabling planting and stuff. But i need help with this one part...

    I need to make this action NOT be able to repeat.
    I've tried every function like "return false;" or any kind of function but it doesnt seem to work or it gives me a syntax error.

    Code:
    ghost() {               //the zombie class.
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	
    	self notifyOnPlayerCommand("3", "+actionslot 3");      //button for flash ,smoke etc...
    
    	while(1) {
    		self waittill("3");
    		self maps\mp\perks\_perks::givePerk("specialty_thermal");  //thermal ability...
    
    		self hide();   // ability to be invisible
    		self iPrintlnBold("^2Zombie Vision On");   //Printing the mode...
    		wait 20;         // i dont know how many seconds....
    		self _clearPerks();
    		self maps\mp\perks\_perks::givePerk("specialty_marathon");
            self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    	self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
            self maps\mp\perks\_perks::givePerk("specialty_lightweight");
    		self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
    		self maps\mp\perks\_perks::givePerk("specialty_automantle");
    		self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
    		self maps\mp\perks\_perks::givePerk("specialty_quieter");
    		self maps\mp\perks\_perks::givePerk("specialty_coldblooded");
    		self show();      // to be visible again...
    		self iPrintlnBold("^2Zombie Vision Off");
    	}
    }
    I made it so that you can turn on Zombie mode vision on for a few seconds. But when the "few seconds" are done you can repeat the action wich i don't want... if anyone would help me out i would appriciate it, thank you... Apple!

  2. The Following User Says Thank You to PP_CrazyApple For This Useful Post:

    cgallagher21 (07-04-2010)

  3. #2
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    there's several ways you can do this, the easiest is to put a wait at the end:
    wait 999999;

  4. #3
    PP_CrazyApple's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    851
    Reputation
    28
    Thanks
    416
    My Mood
    Innocent
    Quote Originally Posted by Neekokeen View Post
    there's several ways you can do this, the easiest is to put a wait at the end:
    wait 999999;
    thank you, it worked. One more thing, can you tell me how much seconds are "wait 1;"

  5. #4
    schiz's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    GONE e_e
    Posts
    199
    Reputation
    11
    Thanks
    25
    My Mood
    Drunk
    wait 1; is 1 second

Similar Threads

  1. Need Help Editing Quarantine Chaos Zombie Mod
    By chriso_225 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 9
    Last Post: 01-20-2011, 06:45 AM
  2. Sir Psycho Sexy's Zombie Mod Map Edits!
    By Th3Psycho in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 4
    Last Post: 09-24-2010, 12:52 PM
  3. no hope zombie mod edit
    By erkki in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 08-25-2010, 08:16 AM
  4. Need Help With Editing Zombie Mod!
    By Pete8497 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 0
    Last Post: 08-07-2010, 12:38 PM
  5. Zombies mod
    By frfwolf in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 2
    Last Post: 04-26-2009, 04:07 PM