ZPolyobject - ZScript Polyobject Library

Post your example zscripts/ACS scripts/etc here.

ZPolyobject - ZScript Polyobject Library

Postby mikolah » Sun Sep 27, 2020 2:41 am

ZPolyobject - ZScript Polyobject library
This library adds Polyobject support to ZScript.

It makes querying polyobject state, such as current position, velocity and rotation, possible from within ZScript. In addition, it allows polyobject behavior to be customized through polyobject effectors.

Originally I wrote this code a while back for Dynamo's WIP Wolf3D-based mod, but I think it might also be useful on its own as a standalone library.

The code is heavily commented, so make sure to look through the source if you need any help.

Download link


Examples
Here are some code snippets showcasing basic usage:
Spoiler:

Advanced examples
There are two examples in /ZScript/Examples/ directory inside the .pk3 file:
Spoiler:

A small test map is included, go to MAP01 to see them both in action.

Usage
Feel free to use this library in your projects, as long as you credit me.

Credits
Dynamo, for helping me find and fix bugs
Kritzsie, for helping me out with ZScript
User avatar
mikolah
 
Joined: 06 Oct 2016
Discord: Mikolah#5576
Github ID: mykola-ambar
Graphics Processor: ATI/AMD with Vulkan Support

Re: ZPolyobject - ZScript Polyobject Library

Postby Gez » Sun Sep 27, 2020 6:11 am

Nice! The advanced effect examples in particular, I can see them becoming staples of future projects.
Gez
 
 
 
Joined: 06 Jul 2007

Re: ZPolyobject - ZScript Polyobject Library

Postby Dynamo » Sun Sep 27, 2020 3:21 pm

Not much I can say other than this is an absolutely fantastic package, which has been absolutely vital for my mod's continued progression. A hundred thumbs up :thumb:
User avatar
Dynamo
It's a jungle out there.
 
Joined: 07 Jun 2008
Location: Lygon Street, Carlton

Re: ZPolyobject - ZScript Polyobject Library

Postby Redneckerz » Tue Sep 29, 2020 5:22 am

Brilliant stuff. Worth putting up for the ZScript wiki article perhaps, or do you want to flesh it out a little more?
User avatar
Redneckerz
To it's ports i may have seen
Spotlight Team
 
Joined: 25 Nov 2019
Discord: Redneckerz#8399
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Legacy GZDoom)

Re: ZPolyobject - ZScript Polyobject Library

Postby mikolah » Sat Oct 03, 2020 12:30 am

Sure, that would be great!
There are some minor features I want to add at some point in the future (building a list of all linedefs that belong to a polyobject, methods that incapsulate calls to polyobject action specials, etc), but it's already fully functional as is.
User avatar
mikolah
 
Joined: 06 Oct 2016
Discord: Mikolah#5576
Github ID: mykola-ambar
Graphics Processor: ATI/AMD with Vulkan Support

Re: ZPolyobject - ZScript Polyobject Library

Postby Redneckerz » Mon Oct 26, 2020 6:57 am

Oh i just connected your username with that other thing you are known for - Mikoveyors :P I have saved this as a link.
User avatar
Redneckerz
To it's ports i may have seen
Spotlight Team
 
Joined: 25 Nov 2019
Discord: Redneckerz#8399
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Legacy GZDoom)


Return to Script Library

Who is online

Users browsing this forum: No registered users and 1 guest