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

Members Online

»
0 Active | 79 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Guns...
I_SnaipeR
General Member
Since: Dec 4, 2011
Posts: 14
Last: Apr 14, 2012
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Sunday, Feb. 5, 2012 02:40 pm
how to remove the guns in zombie mode?
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Sunday, Feb. 5, 2012 03:18 pm
1. You can be a little more specific: Do you mean the dropped weapons or the axis weapons?
2. To remove the dropped weapons, read through the zom.gsc gametype. Locate the dropweapon() call (notice how obvious this name is? Thank you) and comment it out so it wont get called. Do the same for dropoffhand() or dropgrenades() (im not sure which one of the two is there, cba to check) and you are good to go.
3. To remove weapons from axis on spawn, search for the spawn-function. It is in there somewhere, just keep scrolling. It also has an obvious name.
In there you will find some functions that contain the phrase "weapon". Edit them to your liking. (also, damn obvious. Who would have thought that functions that handle weapons would have the phrase "weapon" in them?)

Good luck

Also, sarcastic comment is sarcastic.
Share |
I_SnaipeR
General Member
Since: Dec 4, 2011
Posts: 14
Last: Apr 14, 2012
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Feb. 6, 2012 07:11 am
No, you misunderstood me. I Want To Remove Guns On Maps, that they were not
_________________________
Нет, Вы Меня Не Поняли. Я Хочу Убрать Пулеметы На Картах, Чтобы Их Не было
Share |
Dobriy
General Member
Since: Mar 31, 2011
Posts: 96
Last: May 23, 2012
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Feb. 6, 2012 11:26 am
Ахахах лох ты даже это не можешь сделать

Code:
Remove_Map_Entity()
{
	if(getCvar("scr_allow_turret") == "")
		setCvar("scr_allow_turret", "0");
	level.allow_turret = getCvarInt("scr_allow_turret");

	if (!level.allow_turret)
		deletePlacedEntity("misc_turret");
            deletePlacedEntity("misc_mg42");
}

deletePlacedEntity(entity)
{
	entities = getentarray(entity, "classname");
	for(i = 0; i < entities.size; i++)
		entities[i] delete();
}
Share |
I_SnaipeR
General Member
Since: Dec 4, 2011
Posts: 14
Last: Apr 14, 2012
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Feb. 6, 2012 12:32 pm
я давно все сделал....Эта херь есть в аллвеапон моде и в метастасе
Share |
I_SnaipeR
General Member
Since: Dec 4, 2011
Posts: 14
Last: Apr 14, 2012
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Feb. 6, 2012 12:33 pm
ты опоздал с этой надписью на 2 часа
Share |
dundy
General Member
Since: Dec 14, 2004
Posts: 768
Last: Nov 1, 2020
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Feb. 6, 2012 12:39 pm
I_SnaipeR writes...
Quote:
ты опоздал с этой надписью на 2 часа


Amen to that brother [biggrin]
Share |
Dobriy
General Member
Since: Mar 31, 2011
Posts: 96
Last: May 23, 2012
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Feb. 6, 2012 05:18 pm
dundy,Forgive my compatriot, not all in our country, as well as however others are deprived by nature by reason, forgive for bad English))
Share |
dundy
General Member
Since: Dec 14, 2004
Posts: 768
Last: Nov 1, 2020
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Feb. 6, 2012 06:23 pm
No problem m8te [biggrin]

I have no problem..[jumping]

But someone with the same problem wouldn,t have a clue what the

aswer/sulution would be..

Most people speak English so..[wink]

Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»