Page 1 of 1
Help!!
Posted: Tue Aug 10, 2004 5:43 am
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
Posted: Tue Aug 10, 2004 6:05 am
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
Posted: Tue Aug 10, 2004 6:18 am
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.
Posted: Wed Aug 11, 2004 5:23 am
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?
Posted: Wed Aug 11, 2004 5:24 am
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?