Hitmarkers help me to do it

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!)
User avatar
ramon.dexter
Posts: 1562
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Hitmarkers help me to do it

Post by ramon.dexter »

Well, looks like you make it work with hitscan weapons. The plasmagun, rocket launcher and bfg are projectile weapons, so you have to use different method.
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Hitmarkers help me to do it

Post by Niphura »

ramon.dexter wrote:Well, looks like you make it work with hitscan weapons. The plasmagun, rocket launcher and bfg are projectile weapons, so you have to use different method.
How can i do it?
User avatar
ramon.dexter
Posts: 1562
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Hitmarkers help me to do it

Post by ramon.dexter »

To be honest, I dont think its a good idea. Like, the hitscan has a reason - the bullet impact in hitscan is nearly instant, so it has a reason for the hitmarker. But the projectiles in plasma rifle, rocket launcher and bfg travels too slow. So, imagine this: you'll shoot, then you turn around and then the hitmarker appears, when you are not shooting, but looking at the wall.
So I can advise you leave it as it is.
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Hitmarkers help me to do it

Post by Niphura »

ramon.dexter wrote:To be honest, I dont think its a good idea. Like, the hitscan has a reason - the bullet impact in hitscan is nearly instant, so it has a reason for the hitmarker. But the projectiles in plasma rifle, rocket launcher and bfg travels too slow. So, imagine this: you'll shoot, then you turn around and then the hitmarker appears, when you are not shooting, but looking at the wall.
So I can advise you leave it as it is.
Okay then i think that i have finished the hitmarkers :)
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Hitmarkers help me to do it

Post by Niphura »

Just a quick Update, i managed to make the hitmarkers work on projectiles weapons like the rocketlauncher, BFG, Plasmagun, etc. you just have to add this code on the missile or projectile of your weapon on the line spawn.

the code: XDeath:
TNT1 A 0
TNT1 A 0 A_GiveToTarget("HitIndicator",1)
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Hitmarkers help me to do it

Post by Niphura »

ramon.dexter wrote:To be honest, I dont think its a good idea. Like, the hitscan has a reason - the bullet impact in hitscan is nearly instant, so it has a reason for the hitmarker. But the projectiles in plasma rifle, rocket launcher and bfg travels too slow. So, imagine this: you'll shoot, then you turn around and then the hitmarker appears, when you are not shooting, but looking at the wall.
So I can advise you leave it as it is.
A quick question does not have to do with hitmarkers. I'm trying to make the player be able to climb the edges of surfaces, I've seen this in project brutality or brutal doom. I have put together a .pk3 file but something is wrong with the ACS could you tell me what is wrong? http://www.mediafire.com/file/6bw1aky2threl9e/Grab.pk3
User avatar
ramon.dexter
Posts: 1562
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Hitmarkers help me to do it

Post by ramon.dexter »

Forget ACS for this thing. Here is what you want - its zscript, ofcourse.

viewtopic.php?f=105&t=59085

Modifying for your own purpose is easy.
User avatar
Niphura
Posts: 192
Joined: Fri Jun 16, 2017 3:07 pm
Location: Argentina

Re: Hitmarkers help me to do it

Post by Niphura »

ramon.dexter wrote:Forget ACS for this thing. Here is what you want - its zscript, ofcourse.

viewtopic.php?f=105&t=59085

Modifying for your own purpose is easy.
Is it possible to put sprites when the player climb?

Return to “Scripting”