Jump to content

ColdShine

Member
  • Content Count

    36
  • Joined

  • Last visited

  • Medals

Everything posted by ColdShine

  1. thought a comp of that spec would get a better benchmark... The benchmark does only test CPU and RAM speeds, the video card has nothing to do with the benchmark score. If graphics accelerator was tested too, I'd have got 5893 or similar . I've only put it here to give an overall view of my system, and because most other ppl has done so.
  2. ColdShine

    Knowsabout & ai behaviour

    Nevermind, this is not true. I've tried a soldier with accuracy=3.9, it's fired upon when knowsAbout raises above 1.5. Then I can't actually tell where the 1.5 knowsAbout value comes from...
  3. ColdShine

    Knowsabout & ai behaviour

    I know it's a really old post, but I've found those info really useful for a simple mod I needed to create for a mission of mine, so... Btw, I've found why knowsAbout values 1.5 and 4 are important: I took a look in CfgVehicles.hpp, and I've found most units have a line "accuracy=1.5", or inherit from a base class with such line. So it seems when knowsAbout raises above the unit's accuracy value, it's reckonized and fired upon (if enemy combat mode is fit). Snipers have "accuracy=3.5", which is really high (4 is absolute maximum), but since the Sniper base class is a soldier (like in "class SoldierESniper : SoldierEB"), it's fired upon, because an enemy soldier is always a threat. Camouflage soldiers (SoldierEFakeW and similar) have a sligthly raised accuracy value (2), but their base class is the opponent's side, so they are not fired upon until knowsAbout value rises above 2, which takes quite a bit for AI to. This also explains a trick Suma has suggested to make a unit class look identically to its base class to enemy by setting "accuracy=1000", a value knowsAbout will never get to. Here's the example Suma quoted: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> //Western trucks class Truck5t : Truck { Â Â accuracy=0.30; }; class Truck5tOpen : Truck5t { Â Â accuracy=1000; // never recognized }; The "accuracy=1000" causes the Truck5tOpen always to be reported as Truck5t whatever value knowsAbout is. Also, note the low accuracy value Truck5t has, it is to make it get reckonized as enemy if knowsAbout raises above a lowish level, 0.3. As long as knowsAbout is below 0.3, the truck will not be fired upon since its base class Truck has no defined side (which I think causes AI not to fire upon it).
  4. CPU: AMD Athlon 1400 MHz FSB 266 MHz Memory: 512 MB DDR 266 MHz Video: ATi Radeon 9500 128MB @ 9700 Pro Benchmark: 2884 or 2876 (keeps floating between these 2 numbers)
  5. ColdShine

    Ai and dead bodies?

    If you download the ZIP file (the link is a little below the 2 screenshots), you actually find inside a translated version of the page.
  6. You can try<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">gunner your_M2 action ["STR_ACTION_LIGHTOFF", your_M2] I've used this several times in an ambush-like mission.
  7. Thanks a heap guys for your tests. The problem is actually the time needed by AI to figure out you're back captive, as bn880 noticed. I've done the same tests as before, and I found that if I halt a couple mins unnoticed and then pop back in view, enemies will not fire upon me. So it's only a problem of AI units being little reactive, not (pheeew ) a bug in the game. Luckily enough, this could be thought to as an expected behaviour in my mission .
  8. I have searched across 4 search results pages, but nobody seems to have had a similar problem before. Edit: removed all huge scripts as they have proved not to be part of the problem. Of course I can post them back here if needed, but they're somehow distracting now. Please read post below for more info on the problem. TIA, ColdShine
  9. Do you mind to test and see if you get the same behaviour? Please
  10. ColdShine

    Scripting & waypoints

    You can exec the script in the Activation field of waypoint (1), then create a trigger with Condition set to a certain variable your script sets to "true" upon exit, then you sync waypoint (2) to that trigger, and you're done.
  11. Well, this actually results in a crash or in an error, since you are dividing a number by 0 to get its remainder. Did you mean "_num mod 1" ?
  12. Please look at the 2 examples below. Suppose the "setCaptive false" as being triggered by enemy spotting player when he gets near enough (mere sight does NOT trigger it, then). This code sequence leads to the expected result: 1. setCaptive true 2. player kills enemy unit 3. setCaptive false 4. setCaptive true At this point, player is treated as captive. That's right! This is the sequence which leads to an unexpected behaviour (2 & 3 are swapped): 1. setCaptive true 3. setCaptive false 2. player kills enemy unit 4. setCaptive true At this point, enemies will still treat player as enemy instead of captive. Why? I've also tried setting the second group of enemies miles away from the first enemy unit (the one killed in step 2), so they cannot just be thinking "look, that's the bastard who killed James!" or similar ;), but this lead to the same results. Please help TIA, ColdShine
  13. ColdShine

    Weapon info page

    Is it possible to create an info page for a weapon? I mean, the one you see when you click [ i ] under a game base weapon/magazine. I'm asking this, but I think the answer is NO because even BIS official add-ons does not have it.
  14. ColdShine

    Weapon info page

    I guess silence means "no way"...
  15. In a single player mission, I need the player to notice he's got a new action available, but since the action does not show if the player is in a vehicle (and there are some civilian cars available, so it's possible), he'll never notice he could activate it. He could even end the mission without even noticing the new action. Is there a way to make actions visible even when inside a car? Please don't tell me to use a radio code, because there will be no radio available for the player, since he's a civilian.
  16. ColdShine

    Custom actions inside vehicles

    Thank you, what you said is ok, but how do I avoid the duplicate actions when the player is near the car? Should I start a loop which adds the action to player's vehicle only when he's in and removes it when he's out? Or is there a better way? Update: I've written the script, it works great! Wonder if there are better ways of doing the same things...
  17. ColdShine

    Invincible light posts

    Pretty simple: destroy a street lamp (easy with any tank), save the game, then reload: the lamp will resume shining. Looks like lamps are not saved as buildings do. I don't know if this has been addressed before, I've searched here but I found nothing.
  18. ColdShine

    Invincible light posts

    Ok ok ok... I didn't mean we do need a new game because of this "bug"... I just meant to point that out. I noticed it because when I play sabotage-like night missions, I usually take every lights off (using C4 or making a tank explode nearby), making it harder for the enemy to detect me, since I wear a dark uniform. But when I get killed (most often by myself because of C4/tanks exploding...) I need to reload the game... Edit: added example
  19. I have searched the forums, I've tried the solutions on there... and all failed! It's 5 days I'm trying to get these speechs spoken! I've even tried copy & paste from the TakeTheCar description.ext, and I've extracted its sound files too! You think it worked? Nooo, it still doesn't work!!! The most horrible thing is it doesn't even tell me there are problems with the OGG files or whatever, it's just silent! Titles do appear, but sounds do not play. Just to be more silly, I'll post the code... (top of my "Description.ext") </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSounds { Â Â sounds[] = { }; Â Â class S01v01 Â Â { Â Â Â Â name = "S01v01"; Â Â Â Â sound[] = {"S01v01.ogg", db, 1.0}; Â Â Â Â titles[] = Â Â Â Â { Â Â Â Â Â Â 0, $STR_S01v01 Â Â Â Â }; Â Â }; }; <span id='postcolor'> The OGG is in the \sounds subdirectory of my mission folder (Missions\c01.Eden). The "say" action is triggered with this line in a script: (top of "Talk.sqs") </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Gary say "S01v01"<span id='postcolor'>Where Gary is the name ("text" field) of the unit (a Civilian Man 8). Please help me! I gotta be missing something really obvious... but I can't really tell what!!!
  20. ColdShine

    Problems with cfgsounds

    Forgot to mention, I extracted all of the TakeTheCar files, and if I play that mission using preview from the editor, the sounds play. So I think the sound files are ok. I've copied the CfgSounds entries, the OGG files and I call the "say" action just like in TTC, but it doesn't work! Now I'll try "migrating" the contents (units, wp's, triggers, etc.) to another mission, should the SQM file I'm working on be somehow corrupted (how could?)...
  21. You can use the method you've said, but I think you have to use [the 1st value (X), the 3rd (Y), and an height@ground (Z) value you wish (probably 0)]. This always works with setPos, so I think it will be the same with createVehicle.
  22. ColdShine

    Dead or alive?

    I'll keep it simple... We enter the town (after I killed the 1st guard you find on the left); #1 (leader) proceeds to the left, #2 to the right-middle, I go straight to the first crossroad to catch all the Russians I can find. I happen to spot an enemy soldier, so I aim at his head; when I click, I see #1 sprinting and I can't do anything: I've hit him in the head (his face suddenly becomes red, injuried); #2 says "#1 is down, taking command" and he becomes my leader. Hey... I still see 2 black ops! But the squad page in my notepad actually shows only 2 people, me & #2! Some 30 secs after, #2 gets killed while advancing, so I become my leader (in notepad, 1 person left: me). But I still see a black op, I'm sure! He even kills a machine gunner! When I kill the last soldier, I get to the rescue point and I set waiting for the chopper. I turn my head around... there's another black ops awaiting, and his face is red-injuried! When the chopper comes in, I board immediately, but we take off a bit later, right the time for an AI to get into a transport. So? How could this happen? I never happened to see anything similar in any other mission. No, I've not added new add-ons recently. I have none.
  23. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (zverushka @ Aug. 13 2002,04:47)</td></tr><tr><td id="QUOTE">I have 1200 Mhz AMD athlon., 640 megs sdr SDRAM and a geforce 4 Ti4600 I get 2500 as the OFP score and res lags like hell.<span id='postcolor'> I've got something similar, but should be way slower due to some 2-3 levels lower graphics board: 1400 MHz Athlon (Thunderbird) 512 MB DDR SDRAM Asus A7M266 GeForce 2 MX400 This makes me get 2850 to 2950 bench-points. I even tried to upgrade everything (you know... what you have is never what you want ), but no upgrade ever changed the score much. Only overclocks do.
  24. ColdShine

    Dead or alive?

    Yep, I've looked at the SQM... actually, there is another squad approaching from 9 o'clock. Could it be a modification made by Resistance? I think it could be possible, since it was the first time I played Cleansweep since I installed Res. Anyone?
  25. ColdShine

    Dead or alive?

    I'll keep it simple... We enter the town (after I killed the 1st guard you find on the left); #1 (leader) proceeds to the left, #2 to the right-middle, I go straight to the first crossroad to catch all the Russians I can find. I happen to spot an enemy soldier, so I aim at his head; when I click, I see #1 sprinting and I can't do anything: I've hit him in the head (his face suddenly becomes red, injuried); #2 says "#1 is down, taking command" and he becomes my leader. Hey... I still see 2 black ops! But the squad page in my notepad actually shows only 2 people, me & #2! Some 30 secs after, #2 gets killed while advancing, so I become my leader (in notepad, 1 person left: me). But I still see a black op, I'm sure! He even kills a machine gunner! When I kill the last soldier, I get to the rescue point and I set waiting for the chopper. I turn my head around... there's another black ops awaiting, and his face is red-injuried! When the chopper comes in, I board immediately, but we take off a bit later, right the time for an AI to get into a transport. So? How could this happen? I never happened to see anything similar in any other mission. No, I've not added new add-ons recently. I have none.
×