Hello all,
I'm a new member. I have a question.
How can I achieve the use of Radius thrust, but limit it to a specific cone in front of the player? Should I implement a different function altogether for this purpose?uno online
Thanks in advance.
Radius thrust limit to specific cone in front of player
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!)
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!)
-
- Posts: 1
- Joined: Mon Jan 15, 2024 10:52 pm
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
Radius thrust limit to specific cone in front of player
Last edited by williamhernandez on Tue Jan 16, 2024 7:09 pm, edited 1 time in total.
-
-
- Posts: 1845
- Joined: Sun Jul 21, 2019 8:54 am
Re: Radius thrust limit to specific cone in front of player
Welcome!
To my knowledge there isn't any function like that, however you can use a custom one.
This is a modified A_Blast function that also checks if the player is looking at the monsters:
Create a new class in ZScript depending on how you want to use it, for example a Weapon:
Then in DECORATE you can inherit your weapons from NewWeapon and freely use this function.
To my knowledge there isn't any function like that, however you can use a custom one.
This is a modified A_Blast function that also checks if the player is looking at the monsters:
Spoiler:You can also use this function in DECORATE.
Create a new class in ZScript depending on how you want to use it, for example a Weapon:
Code: Select all
Class NewWeapon : Weapon{
Action void A_DirectionalBlast(....)
}