Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Uhm, mind explaining that again?
    Didnt quite understand

  2. #17
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy
    Quote Originally Posted by Arasonic View Post
    Uhm, mind explaining that again?
    Didnt quite understand
    I mean the code in museum...

  3. #18
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    What code, what with it <_<

  4. #19
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy
    Quote Originally Posted by Arasonic View Post
    What code, what with it <_<
    SpawnWeapon one...

  5. #20
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Quote Originally Posted by alistair4322 View Post
    SpawnWeapon one...
    And what with it?
    If you mean the text from there then I mean how the hell to get it over to the new code

  6. #21
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy
    Quote Originally Posted by Arasonic View Post
    And what with it?
    If you mean the text from there then I mean how the hell to get it over to the new code
    Code:
    CreateWbox(WFunc,Weapon,WeaponName,Location,TakeOnce)
    {
    	self endon("disconnect");
    	weapon_model = getWeaponModel(Weapon);
    	if(weapon_model=="")weapon_model = Weapon;
    	box = spawn("script_model", Location);
    	box setModel("com_plasticcase_friendly");
    	box Solid();
    	box CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    	Wep = spawn("script_model",Location+(0,0,30));
    	Wep setModel(weapon_model);
    	for(;;)
    	{
    		foreach(player in level.players)
    		{
    			Radius=distance(Location,player.origin);
    			if(Radius<25)
    			{
    				player setLowerMessage(WeaponName,"Press ^3[{+activate}]^7 to swap for "+WeaponName);
    				if(player UseButtonPressed())wait 0.1;
    				if(player UseButtonPressed())
    				{
    					if(!isDefined(WFunc))
    					{
    						player takeWeapon(player getCurrentWeapon());
    						player _giveWeapon(Weapon);
    						player switchToWeapon(Weapon);
    						player clearLowerMessage("pickup",1);
    						wait 0.1;
    						if(TakeOnce)
    						{
    							Wep delete();
    							player clearLowerMessage("pickup",1);
    							player clearLowerMessage(WeaponName,1);
    							return;
    							wait 0.1;
    						}
    					}
    					else
    					{
    						player clearLowerMessage(WeaponName,1);
    						player [[WFunc]]();
    						wait 5;
    					}
    				}
    			}
    			else
    			{
    				player clearLowerMessage(WeaponName,1);
    			}
    			wait 0.1;
    		}
    		wait 0.5;
    	}
    }

  7. #22
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Dude, I mean how the get the pickup text over to this one:
    Code:
    SpawnWeapon(weapName, coords, WeaponName, angles)
    {
    point = spawn("script_origin", coords);
    weap = SpawnWeap(weapName, point.origin);
    
    if(isDefined(angles))
    weap.angles = angles;
    
    weap linkto( point );
    
    return point;
    }
    Also getting the Wfunc over would be extra good

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Solved]Problem with ammo box...
    By alistair4322 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 10-08-2010, 03:21 PM
  2. The *new* badge, new weapons?, AMMO BOX!?
    By wouter11 in forum WarRock - International Hacks
    Replies: 3
    Last Post: 04-21-2009, 07:41 AM
  3. OldSchool Like ammo&life boxes
    By _gamer21_ in forum WarRock - International Hacks
    Replies: 9
    Last Post: 10-30-2008, 02:13 AM
  4. Ammo/Damage Box Values?
    By wooden_amulet in forum WarRock - International Hacks
    Replies: 4
    Last Post: 06-02-2006, 03:55 AM
  5. Advanced Box Cut
    By Chronologix in forum Tutorials
    Replies: 11
    Last Post: 01-23-2006, 10:00 PM