-
Notifications
You must be signed in to change notification settings - Fork 39
Fix: Add more fire ports to China Bunkers to help prevent passengers from damaging it near uneven terrain #2133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is amazing fix. |
This comment was marked as outdated.
This comment was marked as outdated.
would be an amazing fix when it all works properly |
What is the problem? On first image everything looked right. |
Troops still use 0,0,0 if that is closer than any of the other unused firepoints. I think it may not be possible to prevent them from doing this, unless one adds enough firepoints closer to potential targets from all angles. Note that targets are at z=0 on even terrain, so 0,0,0 has a natural advantage too. I think we need to add enough fire points on the slits in the geometry. It is probably possible to do this for 5 guys, but probably impossible for Infgen Bunker when attacked from behind, unless many points sit (almost?) on top of each other. |
Can't you just delete the default fireport at 0,0,0? And if hardcoded we do it with thyme? |
It appears to be hard-coded with no work-around. Thyme. Ideally one could place some fallback firepoint that can be used by multiple troops. Maybe it is enough to just place enough points along the geometry. Will have to experiment more with it. |
Then we need to put enough ports at the windows and door. |
We can paint small windows in the door so that it also looks plausible to shoot from there. |
I do wonder, is this also a problem with other bunker structures, such as Palace? Does it have enough ports in all directions to never shoot from center? And why is this not a problem for vehicles? Would a Humvee not also shoot from íts center if does not have enough ports on either side? |
It is in 1.04 in certain animation states (e.g. on certain maps or after Fortified Structures). In patch, Palace has enough firepoints.
Good question. Needs investigation. I know it is an issue with the GC Stealthgen Bus, which has a disguise ability similar to the Bomb Truck. If you disguise into certain models, e.g. Toxin Tractors, they will kill themselves due to the lack of non 0,0,0 firepoints on the models. (Could probably fix that too by giving that Bus a dummy model with extra firepoints.) Maybe it has to do with TransportContain vs GarrisonContain. |
Issue does not exist for Humvee: Issue persists after changing the Bunker model to Humvee: Issue does not exist when switching Bunker to TransportContain: I conclude:
|
The issue also exists for the civilian Bunker (e.g. 4 times on TD). If attacked from behind, the shots spawn at 0,0,0 and may collide with the terrain to hit the bunker. |
The simplest fix from code side would be to allow reuse fire ports if there are not enough individual ones. This would mean that multiple units can shoot from the same port. There is a visual element to rocket ports on buildings. I think it shows a small barrel. Therefore individual positions are preferred, but reused ports would work too. I think we can do both fixes. Fix in Thyme for general coverage and fix in models where we find it. |
Doesn't that mean when enemies approach from the door side they will still shoot from point 0,0,0? |
I think we should allow them shooting from door too. Makes the setup much easier. |
Didn't happen for me with vChina Bunker, but Infgen Bunker when full. Works on the front though, which is much better already.
Yeah, but it makes no sense. Imo, instead GarrisonContain should work like TransportContain, where 0,0,0 is only used if no other free firepoint exists, instead of when 0,0,0 happens to be closer. It is an error in some algorithm most likely where 0,0,0 are the initial values - probably. |
I will paint window in door. Then you can add fire ports there. |
Too late. Windows painted. They are good for at least 4 ports. #2154 |
Nice work. Looks promising. I will test later. |
I don't understand this comment, which two missiles? And how are we supposed to see which ones are emerging from below the bunker from a top down view? I don't see an issue in this picture. |
It's not the best view, but if you count the barrels, it's only 8 (2 are obscured at the center of the building). You can also see a faint trail in the middle. |
This change adds 8 (16 for Infgen) additional fireports to China Bunkers. This prevents them from killing themselves on rough terrain in most situations if filled with more than 2 Tank Hunters.
This does not solve the bug with all GarrisonContain module using objects where shots emerge from 0,0,0 if attacked from certain angles. That can only be solved with engine changes.