Posted: Sun Jul 27, 2025 9:23 am Post subject:
Weapon Anim Clipping [SOLVED]
Subject description: The weapon anim is clipping on one building but not the other
The [WeaponType] Anim= is clipping on one building but it doesn't in my units or another building.
The building's anim I'm showing right now isn't the anim I'm gonna use for it, it's for demonstration only to see the clipping better,
but even with a smaller anim it still clips the same. The SE direction has clipping issues and the one I'm showing is the the most noticeable.
I've resized the building and before I resize the anim, I tested it on another building (the one at the bottom)
and it doesn't seem like the issue is coming from the anim.
The code for the top building is the same as the bottom, which is the code for the original Sentry Gun.
Weapon Anim.gif
Description:
Filesize:
3.43 MB
Viewed:
345 Time(s)
Last edited by Ousagi on Mon Jul 28, 2025 8:06 pm; edited 1 time in total QUICK_EDIT
I've never seen this issue before, the fact that the area that gets clipped isn't consistent, changing over the course of the anim doesn't make any sense too :/ _________________
I've never seen this issue before, the fact that the area that gets clipped isn't consistent, changing over the course of the anim doesn't make any sense too :/
If there is something that's consistent is that this affects the same way for other weapon anim used on this building.
The anims probably isn't the issue. It might be from the building. The other 2x2 building I also have doesn't seem to have the issue.
The issue was the FLH=245,140,-45. The -45 was causing the clipping. But moving it to 0 wouldn't align it to the barrel of the building.
The sentry gun seems aligned with the anim but the 2x2 building is not.
The anim is in proper height where the projectile appear, moving it lower or higher would make the anim not align with the projectile instead.
Is there a way to align the building, anim, and projectile?
Finally found the solution. PrimaryFireDualOffset=true and PrimaryFirePixelOffset=0,7 allows the anim to move down without the clipping issue.
This were used by Pillboxes. That was what made it able to shoot without clipping for Anim=GUNFIRE.I don't know why it needs these two codes,
but my guess is that PrimaryFirePixelOffset=0,7 gives a positive value so it wouldn't mess with the anim since you know the clipping happened because of -45 in height
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum