Tuesday, March 11, 2008

CoD4 Minimaps?

So I'm trying to figure out the minimap in Call of Duty 4. This is the little radar image that is displayed in the corner of the screen when you have a UAV. It seems to be required for making air strikes work properly as well.

I've got code now to generate an image that should hopefully be suitable for each randomly generated map.


This is a screenshot from Radiant of a map made with prag:



This is the corresponding minimap image generated with prag:


OK, that's working. But now I'm having a hard time figuring out how to get my image to actually be used in-game. Anybody had any luck with this? Do you have to use an IWD file, or can the image get rolled up into the fastfile?

Monday, March 3, 2008

Roofs, entities, game modes


This screenshot shows a randomly generated map that was today's MOTD (map of the day). You can see that there are some entities now, like the palm trees, blue barrel, and roadblock. Also implemented recently is support for team deathmatch and sabotage game modes. You can see the rooftops are now covered with a pitched roof instead of just a flat walkable surface. I plan to make that optional, but these roofs seem more natural for motifs that would be in settings other than the middle-east.

I have got a version now that is considerably easier to use - it lets you type in a map name to create and it does the rest. Hopefully I'll have a couple more bugs worked out soon and be ready to do a public release and start announcing it on some of the mapping/modding forums.

One real hangup is the difficulty of making airstrike and helicopter paths. You'd really think this would just work automatically, but these cool new features are only possible with some work on the part of mappers.