Jump to content

alarm9k

Member
  • Content Count

    69
  • Joined

  • Last visited

  • Medals

Everything posted by alarm9k

  1. Disregard, I have found a hack: Save ammo count in all current magazines (magazinesAmmo). Remove all magazines by removeMagazines command. Add the magazine you want to be loaded into cannon by addMagazine array command. Restore the amount of ammo saved in step 1. At this point the gunner will reload the available ammo type. Add the remaining types of ammo, saved in step 1. And here we go! P.S. I'm trying to teach the tanks to use HEAT-MP against light armor and HE against groups of infantry. See my mod. P.P.S How do mark the thread as 'Solved'? :confused:
  2. I haven't tested it... but I doubt TBH :confused:
  3. alarm9k

    Smarter tanks script

    Thanks for your feedback, guys. It currently runs on the server only, not on clients. This is covered by default "ATTACK" (Engage) behaviour, which I haven't yet found a way to override. Someday I will probably write a separate Engage algorithm, like Rydygier suggested. I hope it can be done at all and it can be done without too much performance loss. ARMA API does not provide a command to move the tanks backwards. It can only be done by issuing a sendSimpleCommand "BACK" while player (you, human) being inside the tank (not to mention that backward movement pathfinding is buggy). I have experimented with some dirty things like setting position every 0.01 sec to emulate reverse movement, but they looked too ugly and unacceptable. So unless BIS adds a separate "move back" command, I'm afraid I won't be able to implement a realistic tank behaviour like firing and reversing back to cover. Of course it's possible to make it retreat, but it will look silly -- turning its weakest spot (rear) towards the enemy and then retreating.
  4. alarm9k

    Smarter tanks script

    It's been tested in single player, multiplayer and dedicated server, so I don't expect any multiplayer specific issues. Hopefully.
  5. alarm9k

    Smarter tanks script

    You are most welcome :)
  6. Not sure if it can be called a 'workaround' :D But since 'engaging' consists mostly of finding a good (covered) position to fire from, and firing itself (and I do plan to implement that, you know), I might try to do that.
  7. alarm9k

    Smarter tanks script

    v.1.4: now with banana flavor an addon. ---------- Post added at 05:53 ---------- Previous post was at 05:38 ---------- Also, if you know how to do this, I will gladly use your help.
  8. alarm9k

    Ukraine General

    That's a demagogy. "We don't know for sure" can be said about anything. I don't need to be 100% sure to make decisions, I am okay with far less in most cases. ---------- Post added at 05:15 ---------- Previous post was at 04:55 ---------- Okay. I have to say this. Speaking about who knows what. I believe I am pretty well informed about the amounts of bullshit coming from all sides, because: I was born in Crimea and lived there for a long time I have former classmates and friends in Ukraine I live in Russia and speak Russian (can read news, watch TV) I can read/watch news in English If taking in account all of the above I could be considered some kind of an 'expert' or a person having first-hand information, I can assure you that the amount of bullshit on Russian media can only be compared to the amount of bullshit on Ukrainian media (yes, they suffer from the same desease but for different reasons). Western news sources are far more reliable (I personally prefer BBC). On a scale from 1 (low BS) to 10 (most BS): Russia: 10 Ukraine: 8 EU and US: 1
  9. Sorry, I don't see how this is going to help :confused:
  10. alarm9k

    Ukraine General

    @aleksadragutin: Man, I don't think you know what you are talking about. There is a huge difference between a bias and a propaganda. Of course every person has a bias, and that includes those who write news articles and make news videos in EU and USA. But what we have in mass media in Russia is... terrible. I didn't exaggerate when I said it damages your brain. It does. It is intentional lies, created to build up hate towards the enemy and close the ranks around Putin The Great.
  11. alarm9k

    Ukraine General

    The one thing that disturbs me the most is that this madness won't end any soon. Looks like it's only going to get worse.
  12. alarm9k

    Ukraine General

    @Tonci87: BTW I already did that.:cool:
  13. Oh, stupid me! Thanks a lot, guys! :D
  14. Guys, a quick question here. Is there a command to return unit's current target -- the one it's currently executing ATTACK (Engage) order against?
  15. alarm9k

    Ukraine General

    What I'd like to say isn't exactly about Ukraine but it's closely related. Because of the official propaganda and the absence of independent mass media the country has gone absolutely mad. Arguing with those who have been affected by the propaganda is almost impossible. Watching TV news almost literally damages your brain by the amounts of the aggression and hate. And people just cannot resist. They are mostly poorly educated, have not developed a habit of analyzing the incoming information, had a very low quality of life for the last decades. So yes, they are easy targets for the propaganda. They readily hate those who they have been told to hate. This time they have been told to hate Ukraine, Europe and USA. There is one thing though. They hate but they don't want do die. That's why the officials do not acknowledge that Russian army is involved in the conflict. These lies are targeted at their own people, not EU or USA (they know the truth). So yes, it would sound unbelievable but 90% of Russians are absolutely sure that Russia is not an aggressor and Russian army is not fighting in Ukraine. To those who know history, the resemblance with pre-WW2 Germany is frightening. P.S. Source? I live here...
  16. alarm9k

    Ukraine General

    Ah... SpookyLynx, a fellow "patriot" from Saratov. I was sure that being able to read in English and access foreign news sources effectively cures that mental desease, caused by official TV propaganda. Looks like it doesn't :(
  17. alarm9k

    Smarter tanks script

    "...Use vehicle type based on PhysX..." I was confused by mentioning of PhysX in regards to determining the vehicle type. Now I understand. "...When a vehicle is hit a routine is run to weigh up vehicle damage/survivability..." Added to roadmap. Although I'm afraid it will have a lower priority. Please, don't expect too much from me, gentlemen. I can only spend a couple of hours per week developing this.
  18. alarm9k

    Smarter tanks script

    Okay, voice of the customer has been heard. I will make current features more production quality and user-friendly first before moving on to more complex tasks. So this is what the approximate roadmap looks like: Higher priority (easier to do, reasonable impact): "Use vehicle type based on PhysX i.e tracked to determine if a vehicle should run the script..." I would appreciate a hint about this, a link for example. "Make it a modular addon as opposed to a script - easier to implement etc..." "...addon version automatically controlling all found on the map/spawn later armored vehicles..." Again, a coding hint would be appreciated. Is there any other way rather than looping through all vehicles in the game every X seconds? "...reflexes (reaction delay) and misjudgement factors based on crew skill..." A reasonable thing, I totally forgot about skill. "Modular - i.e. we can turn on features if appropriate..." A separate config file specifying factions and maybe particular vehicles to include/exclude. Normal priority (harder/longer to do, good impact): Analyzing terrain for cover. More sofisticated decision making, based on current combat behaviour, threat type and value, availability of nearby cover and distance to it, type of cover (can fire from behind or cannot), relative direction to cover (whether we have to expose vulnerable spots -- side, rear -- while moving to cover). Proper execution of 'Find cover' order for tanks. For example you indicate the direction from which you expect the threat by giving "Watch direction" order to gunner, followed by 'Find cover' order. The vehicle then is trying to position itself behind the appropriate cover. Lower priority/most likely impossible: Anything that involves reverse movement of tracked vehicles (sadly). Backward movement probably could be simulated by setting vehicle position every .01 sec and playing tracks animation (could be?), but I strongly dislike such dirty hacks. This means no hopping left/right from behind cover.
  19. alarm9k

    Smarter tanks script

    Thanks for your feedback and advice. I'll try to gradually implement all of the above and improve overall code quality (I'm rather new to Arma scripting). Yes the idea about the tanks that could use obstacles to hide behind is what I have in mind too. Like hopping from behind an obstacle, firing and moving back to cover like in real life. Bugged backward movement for tanks makes it hard though :( The whole idea behind halting after encountering an 'immediate threat' is that the tank would most likely be destroyed if it continued moving. For example when we encounter an AT soldier at 300 meters who is most likely aware of our presence, and it would take him 2 seconds to swtich to AT launcher, aim and fire. If the same AT soldier is 1000 meters away, he is not considered an immediate threat though, because he may or (most likely) may not be aware of our presence. But still... teaching the tanks to use cover is what I dream of too :)
×