MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
Eladd [Today]

1 Members and 13 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Friday, Nov. 14th
MODSonair Episode 153
Tuesday, Nov. 11th
Mirror's Edge - Review
Sunday, Nov. 9th
MODSonair 153 Live
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 8.76%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0.52%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 68.04%
100% definitely NOT! 18.56%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 2.58%
Games are the devil! 1.55%
Read More...
16 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
PROBLEMS WITH THE EDITOR *READ THIS*
CoD 2 Level Desi.. Posts: (124) Views: (5851) by Kewlt
script compile error
CoD 4 Scripting.. Posts: (1) Views: (13) by ThisGuy
CoD5 Mapping Tools
CoD:WW Level Des.. Posts: (45) Views: (692) by StrYdeR
COD Waw ModTools out soon!
CoD:WW Level Des.. Posts: (2) Views: (51) by Sparks.
Art of War Central Half-Life 2 Mods for Dummies
Forums
MODSonline.com 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: CoD 4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: need help
mini_me
General Member
Since: Jan 25, 2008
Posts: 2
Last: Jan 26, 2008
[view latest posts]
Level 0
Category: CoD 4 Scripting
Posted: Friday, Jan. 25, 2008 07:36 am
i have read through this and how to to do it on cod 2 like it says in a post again and again and tryed every thing i could think of and i can get the flags working but still no luck with minefield can some help me with the codes needed to spawn a mine field i have tryed doing it like this in the maps/mp/mp_crossfire.gsc file

main()
{
maps\mp\mp_crossfire_fx::main();
maps\createart\mp_crossfire_art::main();
maps\mp\_load::main();

maps\mp\_compass::setupMiniMap("compass_map_mp_crossfire");

//VisionSetNaked( "mp_crossfire" );
ambientPlay("ambient_crossfire");

game["allies"] = "marines";
game["axis"] = "opfor";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "desert";
game["axis_soldiertype"] = "desert";

setdvar( "r_specularcolorscale", "1.85" );

setdvar("compassmaxrange","2100");


thread DoMinefield();

}

DoMinefield()
{

level.mines = [];
level.mines[0] = spawn("trigger_radius", (5352, -3091, -58), 0, 156, -67);

for(i=0;i level.mines.targetname = "minefield";

minesign = [];
minesign[0] = spawn("script_model", (5352, -3091, -67));
minesign[0].angles = (0, 0, 0);
minesign[1] = spawn("script_model", (5266, -3032, -0));
minesign[1].angles = (0, 0, 0);
minesign[2] = spawn("script_model", (5185, -2989, -0));
minesign[2].angles = (0, 0, 0);
minesign[3] = spawn("script_model", (5115, -2943, -0));
minesign[3].angles = (0, 0, 0);
minesign[4] = spawn("script_model", (5034, -2895, -0));
minesign[4].angles = (0, 0, 0);
minesign[5] = spawn("script_model", (4954, -2863, -0));
minesign[5].angles = (0, 0, 0);
minesign[6] = spawn("script_model", (4862, -2827, -0));
minesign[6].angles = (0, 0, 0);
minesign[7] = spawn("script_model", (4773, -2755, -0));
minesign[7].angles = (0, 0, 0);
minesign[8] = spawn("script_model", (4683, -2709, -0));
minesign[8].angles = (0, 0, 0);
minesign[9] = spawn("script_model", (4586, -2656, -0));
minesign[9].angles = (0, 0, 0);
minesign[10] = spawn("script_model", (4509, -2633, -0));
minesign[10].angles = (0, 0, 0);
minesign[11] = spawn("script_model", (4435, -2586, -0));
minesign[11].angles = (0, 0, 0);
minesign[12] = spawn("script_model", (4350, -2562, -0));
minesign[12].angles = (0, 0, 0);
minesign[13] = spawn("script_model", (4281, -2508, -0));
minesign[13].angles = (0, 0, 0);
minesign[14] = spawn("script_model", (4221, -2463, -0));
minesign[14].angles = (0, 0, 0);
minesign[15] = spawn("script_model", (4175, -2434, -0));
minesign[15].angles = (0, 0, 0);


for(i=0;i minesign setModel("prop_flag_opfor");


minefield = [];
minefield[0] = spawn("script_model", (5338, -3085, -67));
minefield[0].angles = (0, 156, 358);


for(i=0;i < minefield.size; i++)
minefield setModel("weapon_claymore");
}

could someone please tell me what im doing wrong
topherchris
General Member
Since: Sep 18, 2006
Posts: 12
Last: Feb 20, 2008
[view latest posts]
Level 1
Category: CoD 4 Scripting
Posted: Saturday, Jan. 26, 2008 12:52 am
Try this.. make a new .gsc file and name it minefield.gsc put it in the same folder as ur mp_map.gsc

Code:

then put this in your mp_map.gsc

Code:


this map work.. this may not..

also this simple vCoD tutorial on minefields still works for CoD4
http://www.modsonline.com/Tutorials-read-156.html

edited on Jan. 26, 2008 12:53 am by topherchris
mini_me
General Member
Since: Jan 25, 2008
Posts: 2
Last: Jan 26, 2008
[view latest posts]
Level 0
Category: CoD 4 Scripting
Posted: Saturday, Jan. 26, 2008 10:07 am
ok i have tryed doing that and put those code in the the right gsc file but it just crashes the map i dont know if i have done it wrong but this is whats in my mp_crossfire.gsc file
Code:


and this is whats in my _minefields.gsc file
Code:

i would be greatful for any more help you or any 1 else could get this working and thank you for the help so far
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Scripting
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
MODSonline Subscriptions
Partners
XoXide
CODAddicts - Call of Duty News & Downloads
modbase.be
The Firing Box
Call of Duty Headquarters
Battle for Europe COD2
Frag Universe
Ask About
Advertising
Friends
The Clan Database
CoD 4 Base
ModTheater
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
MODSonair Episode 150
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware