[zscript] How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?

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
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?

Post by JetteboyTV »

How do i make a gib that stretches and squishes under a crusher or door, kinda like the ones in nashgore?
User avatar
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?

Post by ramon.dexter »

Just open nashgore and take a look how nash done it. He did it in zscript, so you can get inspirated by his approach.
User avatar
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?

Post by JetteboyTV »

ramon.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.
i looked through it, but im confused by the 'NashGoreStatics' stuff
User avatar
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?

Post by ramon.dexter »

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.
User avatar
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?

Post by Marrub »

JetteboyTV wrote: Sat Mar 23, 2024 12:37 am
ramon.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.
i looked through it, but im confused by the 'NashGoreStatics' stuff
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.
User avatar
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?

Post by JetteboyTV »

ramon.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.
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 now
User avatar
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?

Post by JetteboyTV »

the stretchy gib wont spawn from the crushed gibs for some reason, am i doing anything wrong?

code:
Spoiler:
Post Reply

Return to “Scripting”