Help!!

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
LiquorKraZy
Captain
Posts: 267
Joined: Tue Aug 10, 2004 5:38 am
Location: CA
Contact:

Help!!

Post by LiquorKraZy »

Whats the best way to open a stock map for Spearhead and add objects to them? What programs do i use...if any?

And also..how do i get the yellow messages that appear to the left to work in the map script..where do i put the IPRINTLN etc...?I want the message to appear every 5 mins!!

thx
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

You would have to decompile. Do a search for it here, you'll find about 6000 topics on why it is a BAD idea.

to print a message every 5 min:

Code: Select all

message_5min:
iprintln "SOME MESSAGE"
wait 300
goto message_5min
end
Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »

you can open stock maps by decompiling to a .map file and using radiant, but it wont get you anywhere. A decompiled map is compeltely flawed, and cant jsut be recompiled with new data.

You can only add things to stock maps via scripting. How you add it, depends on what you want to add, but the first things you will need to know is coordinates within the map. You can use the 'coord' command from console(I think only if you have developer mode on) to give you the xyz position as well as angles. Once you have that information you can use 'spawn' and other commands to place models, triggers, etc into stock maps. To see the basics of how it is done, check out one of the myriad of mapfixes people have made and distributed for moh. Counter Intelligence comes with a pretty comprehensive set of mapfixes, might give you some insight on what you can spawn in a map(or code) and the basics of how to get it done. Or do some searches, there are probably thousnads(no joke) of posts on this forum(mainly in scripting) that refer to, or are about spawning things into maps.
When I am king, you will be first against the wall~
Image
LiquorKraZy
Captain
Posts: 267
Joined: Tue Aug 10, 2004 5:38 am
Location: CA
Contact:

Post by LiquorKraZy »

thx...blue60007

i finally got the messages to appear!! woo hoo

Now...i was just wondering...instead of havin to script every map...is there a .SCR that you can script that will enable the scripts on every map...so you only have to do it once?
LiquorKraZy
Captain
Posts: 267
Joined: Tue Aug 10, 2004 5:38 am
Location: CA
Contact:

Post by LiquorKraZy »

thx...blue60007

i finally got the messages to appear!! woo hoo

Now...i was just wondering...instead of havin to script every map...is there a .SCR that you can script that will enable the scripts on every map...so you only have to do it once?
Post Reply