Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 60 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: Super Deagle
Sgt.SLAUGHTER
General Member
Since: Jun 4, 2010
Posts: 48
Last: Aug 16, 2010
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Tuesday, Jun. 8, 2010 09:23 pm
yes if you don't save over the file in the winrar archive then its not going to work.
Share |
Pedro699
General Member
Since: Jun 19, 2006
Posts: 781
Last: Dec 18, 2010
[view latest posts]
Level 7
Category: CoD4 Scripting
Posted: Wednesday, Jun. 9, 2010 07:52 am
Don't do that as it will erase the stock iwd and you will get kicked from servers for impure iwds. You need to create a mod folder and put your custom iwd in there.
Share |
LiQ.HeaDShOt
General Member
Since: Jun 1, 2010
Posts: 51
Last: Feb 21, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Wednesday, Jun. 9, 2010 09:25 pm
Pedro699 writes...
Quote:
Don't do that as it will erase the stock iwd and you will get kicked from servers for impure iwds. You need to create a mod folder and put your custom iwd in there.


Done! Now the doubt is: How can I put the Deagle at 15 kills in a row? Do I need a script?

Thx for the help :D
Share |
Sgt.SLAUGHTER
General Member
Since: Jun 4, 2010
Posts: 48
Last: Aug 16, 2010
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Wednesday, Jun. 9, 2010 09:30 pm
Add me on xfire. Your definitly going to need a script, this is someting I'm learning and would like to take on a challange =D or at least help
Share |
LiQ.HeaDShOt
General Member
Since: Jun 1, 2010
Posts: 51
Last: Feb 21, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Wednesday, Jun. 9, 2010 10:24 pm
Sgt.SLAUGHTER writes...
Quote:
Add me on xfire. Your definitly going to need a script, this is someting I'm learning and would like to take on a challange =D or at least help


"Your search did not match any Xfire users." ==> I searched for Sgt.SLAUGHTER.

What's happening?
Share |
LiQ.HeaDShOt
General Member
Since: Jun 1, 2010
Posts: 51
Last: Feb 21, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Saturday, Jun. 12, 2010 05:11 pm
If anyone can help with a pre-made script...
Plz any help would be apreciated.. :D

Pre-made script of a killstreak and we adapt it.

Thx for your cooperation :D :D
Share |
BeansyBoy
General Member
Since: Jun 20, 2008
Posts: 5
Last: Sep 12, 2011
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Wednesday, Jul. 7, 2010 12:28 am
right copy this coding below into notepad then when you save it drop the tab so it says all files and call it _customks.gsc and place it where the globallogic lives (the gametypes folder)

Code:

main()
{
	self endon("death");
	self endon("disconnect");

	killstreak = self.cur_kill_streak;

	level.timing = 30;

		
	if(killstreak == 15)
	{
		currweap = self getCurrentWeapon();

		iPrintLnBold( self.name + "^3 Has Got The ^1Super Deagle!" );
		self giveWeapon( "superdeagle_mp" ); // Rename the weapon file name to whatever weapon you want them to use			
		self switchToWeapon( "superdeagle_mp" );
		self giveMaxAmmo( "superdeagle_mp" );
		self playLocalSound( "mp_killstreak_jet" ); // just an extra sound, if you dont like it delete it
		self thread minihud();
		wait( level.timing );
		self takeweapon( "superdeagle_mp" );
		self switchtoweapon( currweap ); // switches back to your old weapon before gettin the ks weapon
	}
	
}
minihud()
{

	self.guntext = newClientHudElem();
	self.guntext.alignX = "right";
	self.guntext.alignY = "middle";
	self.guntext.horzAlign = "fullscreen";
	self.guntext.vertAlign = "fullscreen";
	self.guntext.x = 250;
	self.guntext.y = 300;
	self.guntext.alpha = 1;
	self.guntext.sort = 2;
	self.guntext.fontscale = 1.4;
	self.guntext.color = (1,0,0);
	self.guntext setText("Time Left With Gun:");

	self.gunnum = newClientHudElem();
	self.gunnum.alignX = "left";
	self.gunnum.alignY = "middle";
	self.gunnum.horzAlign = "fullscreen";
	self.gunnum.vertAlign = "fullscreen";
	self.gunnum.x = 254;
	self.gunnum.y = 300;
	self.gunnum.alpha = 1;
	self.gunnum.sort = 2;
	self.gunnum.fontscale = 1.4;
	self.gunnum.color = (0,1,0);
	self.gunnum setTimer( level.timing );
	
	wait ( level.timing );
	
	self.guntext destroy();
	self.gunnum destroy();
}


ok once you done that go into the _globallogic and put this line in underneath this line which you must find

(1st line TO FIND)
"attacker thread maps\mp\gametypes\_hardpoints::giveHardpointItemForStreak();"

(2nd Line TO ADD)
attacker thread maps\mp\gametypes\_customks::main();


hopefully that should work you may need to move around the x and y values to put the hud in a correct position but thats about it and the "level.timing = 30;" that value can be changed depending on how long you feel they should have the gun for, if you want to make it a dvar ill just add that in later

enjoy

Beansy Boy
Share |
LiQ.HeaDShOt
General Member
Since: Jun 1, 2010
Posts: 51
Last: Feb 21, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Monday, Jul. 26, 2010 04:13 pm
BeansyBoy writes...
Quote:
right copy this coding below into notepad then when you save it drop the tab so it says all files and call it _customks.gsc and place it where the globallogic lives (the gametypes folder)

Code:

main()
{
	self endon("death");
	self endon("disconnect");

	killstreak = self.cur_kill_streak;

	level.timing = 30;

		
	if(killstreak == 15)
	{
		currweap = self getCurrentWeapon();

		iPrintLnBold( self.name + "^3 Has Got The ^1Super Deagle!" );
		self giveWeapon( "superdeagle_mp" ); // Rename the weapon file name to whatever weapon you want them to use			
		self switchToWeapon( "superdeagle_mp" );
		self giveMaxAmmo( "superdeagle_mp" );
		self playLocalSound( "mp_killstreak_jet" ); // just an extra sound, if you dont like it delete it
		self thread minihud();
		wait( level.timing );
		self takeweapon( "superdeagle_mp" );
		self switchtoweapon( currweap ); // switches back to your old weapon before gettin the ks weapon
	}
	
}
minihud()
{

	self.guntext = newClientHudElem();
	self.guntext.alignX = "right";
	self.guntext.alignY = "middle";
	self.guntext.horzAlign = "fullscreen";
	self.guntext.vertAlign = "fullscreen";
	self.guntext.x = 250;
	self.guntext.y = 300;
	self.guntext.alpha = 1;
	self.guntext.sort = 2;
	self.guntext.fontscale = 1.4;
	self.guntext.color = (1,0,0);
	self.guntext setText("Time Left With Gun:");

	self.gunnum = newClientHudElem();
	self.gunnum.alignX = "left";
	self.gunnum.alignY = "middle";
	self.gunnum.horzAlign = "fullscreen";
	self.gunnum.vertAlign = "fullscreen";
	self.gunnum.x = 254;
	self.gunnum.y = 300;
	self.gunnum.alpha = 1;
	self.gunnum.sort = 2;
	self.gunnum.fontscale = 1.4;
	self.gunnum.color = (0,1,0);
	self.gunnum setTimer( level.timing );
	
	wait ( level.timing );
	
	self.guntext destroy();
	self.gunnum destroy();
}


ok once you done that go into the _globallogic and put this line in underneath this line which you must find

(1st line TO FIND)
"attacker thread maps\mp\gametypes\_hardpoints::giveHardpointItemForStreak();"

(2nd Line TO ADD)
attacker thread maps\mp\gametypes\_customks::main();


hopefully that should work you may need to move around the x and y values to put the hud in a correct position but thats about it and the "level.timing = 30;" that value can be changed depending on how long you feel they should have the gun for, if you want to make it a dvar ill just add that in later

enjoy

Beansy Boy


Thanks for the code!
But i need sth!!
The code works but when i reach the 15 ks, it says: "LiQ.HeaDShOt got the weap" but it wont give it!

in the code there's: self giveWeapon ("nameofweapon_mp") and no weap is given to anyone!

What should I do?
Share |
damo56
General Member
Since: May 29, 2009
Posts: 29
Last: Aug 20, 2010
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Saturday, Aug. 14, 2010 11:18 pm
change ("nameofweapon_mp") to whatever you called you gun. if you edited the deagle file then it should be ("deserteagle_mp")

hope that helps
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»