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

Members Online

»
0 Active | 43 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 subscribe
Author Topic: Editing create a class for mod.
bazukist
General Member
Since: Jan 20, 2010
Posts: 32
Last: May 1, 2011
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Wednesday, Aug. 25, 2010 11:18 am
hello. how can i edit cac to mak it doesnt have Last stand or so?
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, Aug. 25, 2010 04:02 pm
Hey there.
If I understood it right, you want to disable last stand and some other things like weapons, grenades and perks.

If you do, you just need 2 files:
Code:

//******************************************************************************
// Enables Dropping of Specified Weapon Class
//******************************************************************************
set class_assault_allowdrop		0
set class_specops_allowdrop		0
set class_heavygunner_allowdrop		0
set class_demolitions_allowdrop		0
set class_sniper_allowdrop		1

//******************************************************************************
// Assault Rifles
//******************************************************************************
set weap_allow_m16			0
set weap_allow_ak47			0
set weap_allow_m4			0
set weap_allow_g3			0
set weap_allow_g36c			0
set weap_allow_m14			0				
set weap_allow_mp44			0

//******************************************************************************
// Assault Attachments
//******************************************************************************				
set attach_allow_assault_none		0
set attach_allow_assault_gl		0
set attach_allow_assault_reflex		0
set attach_allow_assault_silencer	0
set attach_allow_assault_acog		0

//******************************************************************************
// SMG
//******************************************************************************
set weap_allow_mp5			0
set weap_allow_skorpion			0
set weap_allow_uzi			0
set weap_allow_ak74u			0
set weap_allow_p90			0

//******************************************************************************
// SMG Attachments
//******************************************************************************
set attach_allow_smg_none		0
set attach_allow_smg_reflex		0
set attach_allow_smg_silencer		0
set attach_allow_smg_acog		0

//******************************************************************************
// Shotguns
//******************************************************************************
set weap_allow_m1014			0
set weap_allow_winchester1200		0

//******************************************************************************
// Shotgun Attachments
//******************************************************************************
set attach_allow_shotgun_none		0
set attach_allow_shotgun_reflex		0
set attach_allow_shotgun_grip		0

//******************************************************************************
// LMG
//******************************************************************************
set weap_allow_saw			0
set weap_allow_rpd			0
set weap_allow_m60e4			0

//******************************************************************************
// LMG Attachments
//******************************************************************************
set attach_allow_lmg_none		0
set attach_allow_lmg_reflex		0
set attach_allow_lmg_grip		0
set attach_allow_lmg_acog		0

//******************************************************************************
// Sniper Rifles
//******************************************************************************
set weap_allow_dragunov			1
set weap_allow_m40a3			1
set weap_allow_barrett			1
set weap_allow_remington700		1
set weap_allow_m21			1
set weap_allow_xsniper			1

//******************************************************************************
// Sniper Attachments
//******************************************************************************
set attach_allow_sniper_none		1
set attach_allow_sniper_acog		1

//******************************************************************************
// Pistols
//******************************************************************************
set weap_allow_beretta			0
set weap_allow_colt45			0
set weap_allow_usp			0
set weap_allow_deserteagle		0
set weap_allow_deserteaglegold		0

//******************************************************************************
// Pistol Attachments
//******************************************************************************
set attach_allow_pistol_none		0
set attach_allow_pistol_silencer	0

//******************************************************************************
// Grenades
//******************************************************************************
set weap_allow_frag_grenade		0
set weap_allow_concussion_grenade	0
set weap_allow_flash_grenade		0
set weap_allow_smoke_grenade		1


Edit and Save this file in your mod folder with this name: weaponcontrol.cfg

Code:

//******************************************************************************
// limits the number of players that can choose each class type
//******************************************************************************
set class_assault_limit				0
set class_specops_limit				0
set class_heavygunner_limit			0
set class_demolitions_limit			0
set class_sniper_limit				50

//******************************************************************************
// perks
//******************************************************************************
set perk_allow_specialty_parabolic		0
set perk_allow_specialty_gpsjammer		0
set perk_allow_specialty_holdbreath		1
set perk_allow_specialty_quieter		1
set perk_allow_specialty_longersprint		1
set perk_allow_specialty_detectexplosive	0
set perk_allow_specialty_explosivedamage	0
set perk_allow_specialty_pistoldeath		0
set perk_allow_specialty_grenadepulldeath	0
set perk_allow_specialty_bulletdamage		1
set perk_allow_specialty_bulletpenetration	1
set perk_allow_specialty_bulletaccuracy		1
set perk_allow_specialty_rof			0
set perk_allow_specialty_fastreload		1
set perk_allow_specialty_extraammo		1
set perk_allow_specialty_armorvest		0
set perk_allow_specialty_fraggrenade		0
set perk_allow_specialty_specialgrenade		0
set perk_allow_c4_mp				0
set perk_allow_claymore_mp			1
set perk_allow_rpg_mp				0

//******************************************************************************
// assault class default loadout
//******************************************************************************
set class_assault_primary 			m16
set class_assault_primary_attachment 		gl
set class_assault_secondary 			none
set class_assault_secondary_attachment 		none
set class_assault_perk1 			specialty_null
set class_assault_perk2 			specialty_bulletdamage
set class_assault_perk3 			specialty_longersprint
set class_assault_grenade 			concussion_grenade
set class_assault_camo 				camo_none
set class_assault_frags 			1
set class_assault_special 			1

//******************************************************************************
// specops class default loadout
//******************************************************************************
set class_specops_primary 			mp5
set class_specops_primary_attachment 		none
set class_specops_secondary 			none
set class_specops_secondary_attachment 		silencer
set class_specops_perk1 			c4_mp
set class_specops_perk2 			specialty_explosivedamage
set class_specops_perk3 			specialty_bulletaccuracy
set class_specops_grenade 			flash_grenade
set class_specops_camo 				camo_none
set class_specops_frags 			1
set class_specops_special 			1

//******************************************************************************
// heavygunner class default loadout
//******************************************************************************
set class_heavygunner_primary 			saw
set class_heavygunner_primary_attachment 	none
set class_heavygunner_secondary 		none
set class_heavygunner_secondary_attachment 	none
set class_heavygunner_perk1 			specialty_specialgrenade
set class_heavygunner_perk2 			specialty_armorvest
set class_heavygunner_perk3 			specialty_bulletpenetration
set class_heavygunner_grenade 			concussion_grenade
set class_heavygunner_camo 			camo_none
set class_heavygunner_frags 			1
set class_heavygunner_special 			1

//******************************************************************************
// demolitions class default loadout
//******************************************************************************
set class_demolitions_primary 			winchester1200
set class_demolitions_primary_attachment 	none
set class_demolitions_secondary 		none
set class_demolitions_secondary_attachment 	none
set class_demolitions_perk1 			rpg_mp
set class_demolitions_perk2 			specialty_explosivedamage
set class_demolitions_perk3 			specialty_longersprint
set class_demolitions_grenade 			smoke_grenade
set class_demolitions_camo 			camo_none
set class_demolitions_frags 			1
set class_demolitions_special 			1

//******************************************************************************
// sniper class default loadout
//******************************************************************************
set class_sniper_primary 			m40a3
set class_sniper_primary_attachment 		none
set class_sniper_secondary 			none
set class_sniper_secondary_attachment 		none
set class_sniper_perk1 				claymore_mp	
set class_sniper_perk2 				specialty_bulletdamage
set class_sniper_perk3 				specialty_bulletpenetration
set class_sniper_grenade 			smoke_grenade
set class_sniper_camo 				camo_none
set class_sniper_frags 				0
set class_sniper_special 			1

set class_assault_movespeed			0.95
set class_specops_movespeed			1.00
set class_heavygunner_movespeed		        0.875
set class_demolitions_movespeed			1.00
set class_sniper_movespeed			1.00


Save this file in your mod folder with the name: playercontrol.cfg

Now that you have this 2 files that allow you to restrict weapons and perks you need to make the server execute them.

1.Open your server.cfg file
2.At the bottom type:

exec weaponcontrol.cfg
exec playercontrol.cfg

Then you are ready to restart the server and see if it worked :D
Thanks,
LiQ.HeaDShOt
Share |
Restricted Access Topic is Locked 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

»