IPB

Welcome Guest ( Log In | Register )

> Might develop a patch for the Barb compass range
ScrapyardBob
post 02/12/06 11:32am
Post #1


Major
Group Icon

Group: {MOB}
Posts: 814
Joined: January 6th 2006
Member No.: 1519
Xfire: scrapyardbob



This goes back to my work from Oct 2004 on the compass range issue in the initial release of CoD:UO:

http://www.iwnation.com/Forums/index.php?showtopic=10222

The default value for CoD:UO still seems to be 1024 units for the compass range. You can check this in-game by opening the console and typing ([TAB] means to hit the tab key):

/cg_hud[TAB]

You'll notice that cg_hudCompassMaxRange indicates the radius of your compass. It's read-only so you can only change it by applying server-side mods.

One of the fun things is that if the gametype or map that you're playing does not specifically set the compass_range variable in its GSC files, it will inherit it from the previously played map. This is why some of us noticed that sometimes Ponyri had a good compass while other times the compass was messed up. (It all depended on what map we played previously.)

More in a bit...


--------------------
IPB Image
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
ScrapyardBob
post 02/12/06 1:25pm
Post #2


Major
Group Icon

Group: {MOB}
Posts: 814
Joined: January 6th 2006
Member No.: 1519
Xfire: scrapyardbob



Looks like I can adapt the following code snippet to allow different compass ranges for the various gametypes:

QUOTE
gametype = getcvar("g_gametype");
cullflag = 0;

switch(gametype)
{
// !Easy
// strict team spawn areas
case "ctf": cullflag = 256; break;
case "sd": cullflag = 256; break;
case "re": cullflag = 256; break; // not supported

// !Medium
// command point-style modes (i.e. Domination)
case "dom": cullflag = 512; break;

// !Hard
// open dm-style spawning
case "dm": cullflag = 1024; break;
case "tdm": cullflag = 1024; break;
case "hq": cullflag = 1024; break;
case "bel": cullflag = 1024; break;
case "ttdm": cullflag = 1024; break; // not supported

// !Deathmatch
// numerous localized team spawns (i.e. Base Assault)
case "bas": cullflag = 2048; break;

}


or

QUOTE
if (getcvar("g_gametype") == "bel")


Easy enough change if the 4096 doesn't feel right for all gametypes.


--------------------
IPB Image
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 05/03/26 11:51am
Skin Designed by Canucks Fan Zone