jaenak 0 Posted February 7, 2004 How would I make something like a radio message that would pop up a new reading every second or two about a Russian soldier knowing about a US soldier? Share this post Link to post Share on other sites
RED 0 Posted February 7, 2004 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #loop radiounitname sidechat format ["Rus knows about US solder %1", rusunitname knowsabout usunitname] ~1 goto "loop" Just fill in the unit names and it will work. RED Share this post Link to post Share on other sites
jaenak 0 Posted February 8, 2004 Thanks for the help. I've got a slightly different question now. The reason why I needed to know that was I'm trying to figure out the attributes of the different units. For an example, a sniper and machine gunner are accurate over long ranges, a regular soldier kinda sucks at long range firing. (long range as in 200+) The Black Ops try to aim carefully instead of wasting 1000 rounds, the officer tends to hit the dirt and tell everyone else to fight if he can pull rank. Stuff of the sort. The part I'm trying to figure out now is how obvious they are to the enemy. Obviously a properly hidden sniper is going to be nearly impossible to detect whereas an LAW soldier will probably be fairly easy because of the LAW launcher sticking up above his head. Or a crew soldier because of the large flash emitted from the barrel of the XM-177E2. The problem is I can't seem to set up an environment that seems to reflect propper readings. My question is how would I go about properly testing for something like this? Share this post Link to post Share on other sites
SelectThis 0 Posted February 8, 2004 Knowsabout is related to the config entries "Camoflage" and "Sensitivity". The higher a unit's sensitivity the further away it can detect a unit, and conversely, a higher camoflage value a unit has, the harder it is to detect. There are also figures for sound detection as well. hope this helps steer you in the right direction SelectThis Share this post Link to post Share on other sites
jaenak 0 Posted February 8, 2004 Is there a way to find that info? That'd certainly be easier than doing what I'm trying to do, form an accurate way of testing for them. BTW, trying to find an accurate way to test for those values is proving itself to be quite the challenge. I can't seem to find accurate readings. Share this post Link to post Share on other sites
SelectThis 0 Posted February 8, 2004 Config figures for the standard BIS units can be found in the config.cpp files provided by BIS. Only the knowsabout figure can be directly accessed in game. What I did to test was to set up a mission with 2 custom soldiers (that I had configured myself) then had one approach the other, with a script running in the background giving the knowsabout values for each unit and distance between them. Then I'd vary the values in the config to see what differences resulted. As you would know, knowsabout ranges from 0 (clueless) to 4 (totally aware of), the point at which a unit would fire upon an enemy is around 2.15 (from memory...this was a LONG time ago). This is assuming that the weapon equiped has the range to fire (another variable set via the config.cpp). SelectThis Share this post Link to post Share on other sites
jaenak 0 Posted February 8, 2004 Are the config.cpp files buried in a .pbo file or something because I can't find any config.cpp files. Â And BTW, can Notepad open a .cpp file or am I going to need a different program to open and read those files? *Jaenak* P.S. Â Thanks for your help. Â Edit: I downloaded an addon and unpbo'ed it and found a config.cpp file in it. Indeed Notepad can open it. When I saw that it was a Notepad file by nature, I just groaned. So yes Notepad can open it and yes its in a pbo file. My only question left is where the heck has BI hidden the pbo files for the stock units? Share this post Link to post Share on other sites
RED 0 Posted February 9, 2004 You can download the config.cpp from the breathe page. RED Share this post Link to post Share on other sites
Sgt_Wilson 0 Posted February 9, 2004 This might be helpfull http://www.ofpec.com/editors/comref.php?letter=K#knowsAbout Share this post Link to post Share on other sites
jaenak 0 Posted February 9, 2004 Thanks guys that stuff has all sorts of info in it. Just about the only stuff I didn't find was the settings for camoflage and sensitivity and stuff. I might just have to copy the entire codemasters folder and unpbo the entire thing. Share this post Link to post Share on other sites
RED 0 Posted February 9, 2004 The config you need is the one I posted, it is just a decrypted version of the config.bin file found in the BIN folder. RED Share this post Link to post Share on other sites
jaenak 0 Posted February 9, 2004 I looked through that folder you posted and couldn't find the stats on the camoflage or sensitivity settings in any of the files. Â I've found all sorts of bin files in the codemasters folder but can't figure out how to open them. Â Do you know how to decrypt a bin file? The folder you posted contained info on all sorts of stuff except the info on the soldiers in the game. Share this post Link to post Share on other sites
jaenak 0 Posted February 9, 2004 I found a tool to decrypt a .bin file at OFPEC. I give up. I've scoured the entire codemasters folder opening everything I can. I even tried the commented config and the settings for the camoflage and sensitivity variables for the game's soldiers are no where to be found. I'm completely out of ideas. Share this post Link to post Share on other sites
SelectThis 0 Posted February 9, 2004 The settings you are looking for are in cfgVehicles.hpp SelectThis Share this post Link to post Share on other sites
jaenak 0 Posted February 9, 2004 Oh boy am I embarrased! How the f**k did I miss that?! That is definately what I was looking for. SelectThis, Red, Thank you. Share this post Link to post Share on other sites