Thread: Frag Grenade

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5

    Frag Grenade

    Hello Forum, how can I change the explosion of Frag Grenade? Would have liked a bigger explosion with fire.

    Afghan exploding barrels. Can this be installed in a grenade fragments?

    Best regards from Germany

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by apache-wd-forum View Post
    Hello Forum, how can I change the explosion of Frag Grenade? Would have liked a bigger explosion with fire.

    Afghan exploding barrels. Can this be installed in a grenade fragments?

    Best regards from Germany
    http://www.mpgh.net/forum/308-call-d...od-beta-5.html

    I modded grenades there, and I did that more or less, but with a concussion grenade, take a look at _grenades.gsc

  3. #3
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    Have this code in my _rank.gsc Inserted. Compile Error. What is wrong?

    Code:
    self thread stopFlash();
    self thread GranadasMagicas();

    Code:
    GranadasMagicas()
    {
    	self giveWeapon("concussion_grenade_mp",0,false);
    	self DisableGrenadeTouchDamage();
           	while(1)
            	{
            		self waittill("grenade_fire", grenade, weaponName);
    		if(weaponName == "frag_grenade_mp") //OMA Grenade
    		{
            			grenade hide();
            			granadacool = spawn("script_model", grenade.origin);
            			granadacool SetModel("weapon_oma_pack");
    			granadacool linkTo( grenade );
    			wait 4.5;
    			self thread Boom(granadacool);
    		}
    		if(weaponName == "smoke_grenade_mp") //Nova Gas
    		{
    			maquinador = spawn("script_model", grenade.origin);
    			maquinador setModel("projectile_us_smoke_grenade");
    			maquinador Linkto(grenade);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			maquinador delete();
    		}
    		if(weaponName == "flash_grenade_mp") //Decoy Grenade by Master131
    		{
    			loc = GetCursorPos();
    			num = 0;
    			
    			self thread getWeapons();
    			wait 1;
    			foreach(player in level.players)
    				player thread stopFlash();
    				
    			wait 0.5;
    			while(1)
    			{
    				num++;
    				if(num == 196)
    					break;
    				if(num != 32 || 64 || 96 || 128 || 160)
    				{
    					MagicBullet( level.primary[self.randprimary] + "_mp", loc+(0,0,1), loc, self );
    					wait(RandomFloat(0.1));
    				}
    				else
    					wait 5;
    			}
    		}
    		if(weaponName == "concussion_grenade_mp") //Molotov Coctail
    		{
            			grenade hide();
            			molotov = spawn("script_model", grenade.origin);
            			molotov SetModel("projectile_concussion_grenade");
    			molotov linkTo( grenade );
    			wait 1;
    			self thread Fuego(molotov);
    		}
    	}
    }
    
    Boom(granadacool)
    {
    	RadiusDamage(granadacool.origin,400,150,75,self);
    	granadacool delete();
    }
    
    Fuego(molotov)
    {
               	playfx(level.molotovfx, molotov.origin);
    	RadiusDamage(molotov.origin,50,150,75,self);
    	molotov delete();
    }
    
    stopFlash()
    {
    	temp = 0;
    	self endon("death");
    	self endon("disconnect");
    	while(1)
    	{
    		temp++;
    		self stopShellShock();
    		if(temp == 10)
    			break;
    		wait 0.1;
    	}
    }
    Last edited by apache-wd-forum; 07-24-2011 at 04:11 AM.

  4. #4
    Heartview's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    KY Cygni
    Posts
    9,208
    Reputation
    717
    Thanks
    2,872
    This really should be in the GSC Modding Help.

    So now its there.
    Texture Mods


    Obedear, the sky is low

  5. #5
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by apache-wd-forum View Post
    Have this code in my _rank.gsc Inserted. Compile Error. What is wrong?

    Code:
    self thread stopFlash();
    self thread GranadasMagicas();

    Code:
    GranadasMagicas()
    {
    	self giveWeapon("concussion_grenade_mp",0,false);
    	self DisableGrenadeTouchDamage();
           	while(1)
            	{
            		self waittill("grenade_fire", grenade, weaponName);
    		if(weaponName == "frag_grenade_mp") //OMA Grenade
    		{
            			grenade hide();
            			granadacool = spawn("script_model", grenade.origin);
            			granadacool SetModel("weapon_oma_pack");
    			granadacool linkTo( grenade );
    			wait 4.5;
    			self thread Boom(granadacool);
    		}
    		if(weaponName == "smoke_grenade_mp") //Nova Gas
    		{
    			maquinador = spawn("script_model", grenade.origin);
    			maquinador setModel("projectile_us_smoke_grenade");
    			maquinador Linkto(grenade);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			RadiusDamage(maquinador.origin,300,100,50,self);
    			wait 1;
    			maquinador delete();
    		}
    		if(weaponName == "flash_grenade_mp") //Decoy Grenade by Master131
    		{
    			loc = GetCursorPos();
    			num = 0;
    			
    			self thread getWeapons();
    			wait 1;
    			foreach(player in level.players)
    				player thread stopFlash();
    				
    			wait 0.5;
    			while(1)
    			{
    				num++;
    				if(num == 196)
    					break;
    				if(num != 32 || 64 || 96 || 128 || 160)
    				{
    					MagicBullet( level.primary[self.randprimary] + "_mp", loc+(0,0,1), loc, self );
    					wait(RandomFloat(0.1));
    				}
    				else
    					wait 5;
    			}
    		}
    		if(weaponName == "concussion_grenade_mp") //Molotov Coctail
    		{
            			grenade hide();
            			molotov = spawn("script_model", grenade.origin);
            			molotov SetModel("projectile_concussion_grenade");
    			molotov linkTo( grenade );
    			wait 1;
    			self thread Fuego(molotov);
    		}
    	}
    }
    
    Boom(granadacool)
    {
    	RadiusDamage(granadacool.origin,400,150,75,self);
    	granadacool delete();
    }
    
    Fuego(molotov)
    {
               	playfx(level.molotovfx, molotov.origin);
    	RadiusDamage(molotov.origin,50,150,75,self);
    	molotov delete();
    }
    
    stopFlash()
    {
    	temp = 0;
    	self endon("death");
    	self endon("disconnect");
    	while(1)
    	{
    		temp++;
    		self stopShellShock();
    		if(temp == 10)
    			break;
    		wait 0.1;
    	}
    }
    OMG, dont copy paste literally¡¡¡¡¡¡¡, you forgot other threads included there.

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

    apache-wd-forum (07-25-2011)

  7. #6
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    That does not help! That would destroy my mod. Is there any easy way?



    This is my Mod
    Last edited by apache-wd-forum; 07-24-2011 at 12:48 PM.

  8. #7
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by apache-wd-forum View Post
    That does not help! That would destroy my mod. Is there any easy way?

    ‪Outside the map [Rust] with Custom Spawn‬‏ - YouTube

    This is my Mod
    loc = GetCursorPos();
    num = 0;

    self thread getWeapons();

    Those for example, are missing

  9. The Following User Says Thank You to Yamato For This Useful Post:

    apache-wd-forum (07-25-2011)

  10. #8
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    Thank you YAMATO for your help! OMA granade your work very well!

    Can we have a bigger explosion? I want more fire: D


    Edit:
    Last edited by apache-wd-forum; 07-25-2011 at 09:23 AM.

  11. #9
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by apache-wd-forum View Post
    Thank you YAMATO for your help! OMA granade your work very well!

    Can we have a bigger explosion? I want more fire: D


    Edit:
    YourTube video I upload - will come.
    explosions/tanker_explosion

    Use that FX instead ^^^^^
    And make this bigger

    RadiusDamage(granadacool.origin,400,150,75,self);

  12. The Following User Says Thank You to Yamato For This Useful Post:

    apache-wd-forum (07-25-2011)

  13. #10
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    That is strong! I Test it: D Do you know the code for gasoline barrels explode?
    Last edited by apache-wd-forum; 07-25-2011 at 09:13 AM.

  14. #11
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by apache-wd-forum View Post
    That is strong! I Test it: D Do you know the code for gasoline barrels explode?
    Highrise ones? Probably are bold ones.

    explosions/propane_large_exp_fireball
    explosions/propane_large_exp

    fire/propane_valvefire_flareup
    distortion/propane_cap_distortion
    fire/propane_capfire_leak
    fire/propane_small_fire

    600, 32, 300 //Range, min damage, max damage

    propanetank02_explode
    propanetank02_fire_blown_med

    Sounds
    Last edited by Yamato; 07-25-2011 at 09:30 AM.

  15. The Following User Says Thank You to Yamato For This Useful Post:

    apache-wd-forum (07-25-2011)

  16. #12
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    I change the Explosions Type. Is all the same. What is wrong? Nooo Fire

    Code:
    Frags()
    {
    	while(1)
    	{
    		self waittill("grenade_fire", grenade, weaponname);
    		if(weaponname == "frag_grenade_mp")
    		{
    			grenade hide();
    			granadacool = spawn("script_model", grenade.origin);
    			granadacool SetModel("weapon_oma_pack");
    			granadacool linkTo( grenade );
    			wait 3.5;
    			//more or less self thread Boom(granadacool);
    		}
    		wait 1;
    	}
    }
    Boom(granadacool)
    {
    	barrelboom = loadfx ("explosions/tanker_explosion");  <----
    	RadiusDamage(granadacool.origin,900,50,600,self);
    	playfx(barrelboom, granadacool.origin);
    	wait 0.05;
    	granadacool delete();
    }
    Last edited by apache-wd-forum; 07-25-2011 at 10:21 AM.

  17. #13
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by apache-wd-forum View Post
    I change the Explosions Type. Is all the same. What is wrong? Nooo Fire

    Code:
    Frags()
    {
    	while(1)
    	{
    		self waittill("grenade_fire", grenade, weaponname);
    		if(weaponname == "frag_grenade_mp")
    		{
    			grenade hide();
    			granadacool = spawn("script_model", grenade.origin);
    			granadacool SetModel("weapon_oma_pack");
    			granadacool linkTo( grenade );
    			wait 3.5;
    			//more or less self thread Boom(granadacool);
    		}
    		wait 1;
    	}
    }
    Boom(granadacool)
    {
    	barrelboom = loadfx ("explosions/tanker_explosion");  <----
    	RadiusDamage(granadacool.origin,900,50,600,self);
    	playfx(barrelboom, granadacool.origin);
    	wait 0.05;
    	granadacool delete();
    }
    Try on highrise, FX doesnt work on all maps.

  18. #14
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,324
    My Mood
    Breezy
    It would be smarter for the grenade itself to run the thread but I guess running it as 'self' is still alright.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  19. #15
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by master131 View Post
    It would be smarter for the grenade itself to run the thread but I guess running it as 'self' is still alright.
    Yes, I know,

  20. The Following User Says Thank You to Yamato For This Useful Post:

    apache-wd-forum (07-26-2011)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] Tennis Ball Frag grenade
    By Blackaiser in forum Call of Duty Modern Warfare 2 Texture Modding
    Replies: 11
    Last Post: 05-15-2011, 05:16 AM
  2. Frag Grenade
    By BooooMxD in forum Call of Duty Modern Warfare 2 Texture Requests
    Replies: 6
    Last Post: 05-08-2011, 02:42 PM
  3. [Request] M67 Frag Grenade to M32
    By Spacedecade in forum Combat Arms EU Discussions
    Replies: 4
    Last Post: 03-01-2011, 01:27 PM
  4. JesseUnit´s M67 Frag Grenade.
    By jesseunit in forum Combat Arms Mods & Rez Modding
    Replies: 11
    Last Post: 06-09-2010, 03:27 PM
  5. maybe grenade to frag can be nice
    By simmygeek in forum Combat Arms Mod Discussion
    Replies: 9
    Last Post: 12-19-2009, 03:26 AM