Help - Bulletholes in ceilings and floors

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Help - Bulletholes in ceilings and floors

Post by Niphura »

I saw that this is possible in Brutal Doom, i know that it works with 3d models and some actors like "DetectFloorBullet" or "DetectCeilBullet" but i don´t know what to do with this stuff, someone can help me? :(
User avatar
ramon.dexter
Posts: 1529
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Help - Bulletholes in ceilings and floors

Post by ramon.dexter »

Crack open brutal doom pk3 and take a look yourself. But I dont recommend you doing it in brutal dooms way, since its incredibly hacky...
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Help - Bulletholes in ceilings and floors

Post by Niphura »

ramon.dexter wrote:Crack open brutal doom pk3 and take a look yourself. But I dont recommend you doing it in brutal dooms way, since its incredibly hacky...
Is there any other way? i already checked the pk3 but i have no clue on how to make the bulletholes appears in ceilings and floors
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Help - Bulletholes in ceilings and floors

Post by Caligari87 »

Very simply: Since we can't have real decals on floors/ceilings, a way to fake it is to use flatsprites or 3D models that look like bullet holes. When the bullet hits a floor or ceiling instead of a wall, it spawns the fake bullethole actor.

8-)
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: Help - Bulletholes in ceilings and floors

Post by m8f »

I don't know how it is implemented in Brutal Doom, but this is how it's done in Complex Doom:
Spoiler:
User avatar
ramon.dexter
Posts: 1529
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Help - Bulletholes in ceilings and floors

Post by ramon.dexter »

m8f: Yeah, you have more cleaner way. BrutalDoom uses ACS to furtherly detect what surface is being hit and spawns according puff/effect. Originally I wanted to use something like that, but when I found out how it's done, I dumped it completely - it looks too resource-heavy.
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Help - Bulletholes in ceilings and floors

Post by Niphura »

m8f wrote:I don't know how it is implemented in Brutal Doom, but this is how it's done in Complex Doom:
Spoiler:
Can you do it on this weapon as a quick example? i tried to do it and now it does not even show the bulletholes in the walls :?
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: Help - Bulletholes in ceilings and floors

Post by m8f »

Niphura wrote:Can you do it on this weapon as a quick example?
What weapon?

Edit: also, Complex Doom doesn't allow reusing its code. So we can take the idea, but not the code.
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Help - Bulletholes in ceilings and floors

Post by Niphura »

m8f wrote:
Niphura wrote:Can you do it on this weapon as a quick example?
What weapon?

Edit: also, Complex Doom doesn't allow reusing its code. So we can take the idea, but not the code.
This weapon http://www.mediafire.com/file/y19r53cs7 ... Pistol.wad
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Help - Bulletholes in ceilings and floors

Post by Niphura »

m8f wrote:I don't know how it is implemented in Brutal Doom, but this is how it's done in Complex Doom:
Spoiler:

What does this line mean? SXF_NOCHECKPOSITION|SXF_CLIENTSIDE, it´s necessary to put it if i define a different Actor decal?
Also...how would the Decal actor look like?
Post Reply

Return to “Scripting”