Jump to content

ekstramarko

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About ekstramarko

  • Rank
    Newbie
  1. Hi all, I've tried putting this together, got somewhat far and then got stuck and frustrated. I'll be dropping it for now but I thought I'd type it all out and share the files if someone here might want to dig around. The idea: Read "surfaceType" around player at 7 spots - directly underneath and 1 meter in 6 directions away from player. If more than (for now) 2 surfaces are the type that usually contains ground clutter, spawn "hideyBushes". For now there's only one "hideyBush", the idea is to have taller and shorter ones to correspond to amount of ground clutter. Spawn "hideyBushes" around the player. They have transparent textures but do have viewGeometry so they should block the AI's view. As the player moves, keep spawning them around and despawning the old ones once they're further away than (for now) 40 meters. For now this is just meant to work on Altis but could be expanded (different maps can have different "surfaceTypes" so it would have to be hand added). Early test where all the bushes were deleted and respawned every 1 second with semi transparent "hideyBushes": https://imgur.com/a/eUHqCUl The reality: As soon as I make the texture of the "hideyBush" fully transparent, it stops blocking the AI's view. I then learned about "named properties": https://community.bistudio.com/wiki/Arma_3:_Named_Properties and https://community.bistudio.com/wiki/Arma_3:_Vegetation_P3D because I did sort of want to replicate the behavior of a bush. The end: I took the actual tree sample p3d from "Arma samples", made it transparent, sunk all of its geometries into the ground to act like a bush and put that into the game. It sort of works but the performance is bad and I couldn't stop it from deflecting bullets, making it impossible to hit anyone through it. I then learned about RVMATs https://community.bistudio.com/wiki/RVMAT_basics and BISURFs https://community.bistudio.com/wiki/Arma_3:_CfgSurfaces_Config_Reference and how those should also be used to dictate how an object behaves, and this is where I stopped. I didn't want to research how to make my own RVMAT and tried applying a custom BISURF to the tree object, but that didn't seem to work. So, using the right RVMAT and namedProperties in the Object Builder might be all this needs to work. I think it's best someone who actually knows what they're doing to just build their own bush P3D from scratch because god knows what I did in my hideyBushTall_1.p3d file. If someone is willing and more experienced, I'd love it if they would take a look and tinker - I'm dropping this for now. I think it's, in theory, a valid dumb idea that could allow for more natural feeling gameplay and a more fair feeling game. We're just used to AI seeing through ground clutter and that's it. There's two zips inside the link below - first contains the SQFs you can use in an Eden scenario to run the spawning and despawning system. Second contains the P3D for the actual "hideyBush" and source files to build this as an addon. Currently it's that tree from Arma 3 Samples but just made invisible. https://www.dropbox.com/sh/s2pg4en72o3bgoh/AADkqUCfXJAZiC54vKf7nkF_a?dl=0 The SQFs are, of course, not documented- if anyone wants do dig into this let me know and can walk you through the code and/or reupload a well documented version.
  2. EDIT Got it working as v 0.1 The viewgeometry needs to be way bigger than the actual geometry to feel "realistic" for anyone who's interested. ------------------------------------------------------ I have an idea that (in my mind at least) might tackle Arma AI's keen ability to see through grass and ground clutter. Essentially, I just want to put a bush in front of the player that isn't visible to the player but is to the AI. It's not quite that dumb (parameters of stance, detecting surfaceType etc and it's actually several somewhat randomly placed bushes that move with the player all aimed at making this feel truly natural) but that's the gist of it. No actual tinkering with the AI, just a hidey bush. And I want this bush to work in singleplayer as well - I mention this because I expect hideObject might be all I need in MP as it's a local only command. The way I see it, the best thing to do would be to make my own 3D model (maybe all I need is a rectangle) and make it transparent from the get go while making it completely passable to bullets and it still obscuring the AI's view. I don't know how to do this. I know Blender essentials but that's it and I don't know how Arma figures out which parts of a model are see-through, how bullets react to it or how to set up the "fake" transparency, or if what I want is possible at all. I'm looking for tips, advice, pointers at what to read, anything. Programming wise I think I will be able to stumble my way through actually coding up the logic of this at least to a proof of concept level.
×