[zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
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!)
- JetteboyTV
- Posts: 53
- Joined: Mon Sep 04, 2023 9:17 am
[zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
- ramon.dexter
- Posts: 1562
- Joined: Tue Oct 20, 2015 12:50 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Kozolupy, Bohemia
Re: [zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
Just open nashgore and take a look how nash done it. He did it in zscript, so you can get inspirated by his approach.
- JetteboyTV
- Posts: 53
- Joined: Mon Sep 04, 2023 9:17 am
Re: [zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
i looked through it, but im confused by the 'NashGoreStatics' stufframon.dexter wrote: ↑Sat Mar 23, 2024 12:28 am Just open nashgore and take a look how nash done it. He did it in zscript, so you can get inspirated by his approach.
- ramon.dexter
- Posts: 1562
- Joined: Tue Oct 20, 2015 12:50 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Kozolupy, Bohemia
Re: [zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
And you think someone else wil solve it for you, or what? Just start digging through it, you'll learn something new. Yoy know, learning takes some time, so be patient.
- Marrub
-
- Posts: 1202
- Joined: Tue Feb 26, 2013 2:48 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Arch Linux
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Contact:
Re: [zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
The class follows a common pattern in ZScript to have an otherwise unused/useless class or struct filled with static functions, so that they can be called from anywhere. In ZScript, there's no way to just have free-floating functions, even though the engine does this with built-in functions like sin/cos.JetteboyTV wrote: ↑Sat Mar 23, 2024 12:37 ami looked through it, but im confused by the 'NashGoreStatics' stufframon.dexter wrote: ↑Sat Mar 23, 2024 12:28 am Just open nashgore and take a look how nash done it. He did it in zscript, so you can get inspirated by his approach.
- JetteboyTV
- Posts: 53
- Joined: Mon Sep 04, 2023 9:17 am
Re: [zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
i just fucked around in nashgore and found out that the 'nashgorestatistics' stuff isnt needed for stretchy gibs, and i think i kinda know how the stretchy gib works nowramon.dexter wrote: ↑Sat Mar 23, 2024 1:04 am And you think someone else wil solve it for you, or what? Just start digging through it, you'll learn something new. Yoy know, learning takes some time, so be patient.
- JetteboyTV
- Posts: 53
- Joined: Mon Sep 04, 2023 9:17 am
Re: [zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
the stretchy gib wont spawn from the crushed gibs for some reason, am i doing anything wrong?
code:
code:
Spoiler: