Custom weapon replications in Heretic, Hexen, & Strife
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: 224
- Joined: Fri Jan 30, 2015 10:32 pm
- Location: Pittman Center
Custom weapon replications in Heretic, Hexen, & Strife
How do I replicate the restricted weapon functions of Heretic, Hexen, & Strife via non-restricted weapon attack functions? I ask because I'm working on a custom weapon enhancement packs for those 3 games (no new graphics, just making the weapon function code more modding-friendly & - in Strife's case - having the firemode toggle be a secondary fire instead of a sister weapon) & the only thing I could find in regards to making these 3 IWADS' weapons more modding friendly was that "modding the Sigil made easy"thread from 2013. Also, I'd like information on doing this in both ZSCRIPT & DECORATE.
-
- Posts: 1235
- Joined: Thu Nov 06, 2014 1:53 pm
Re: Custom weapon replications in Heretic, Hexen, & Strife
Don't bother, to be honest.Ultimate Freedoomer wrote:DECORATE.
Crack open gzdoom.pk3 and take a gander at the /zscript folder; I don't think there's a single thing related to the special stuff done by the games' weapons that hasn't been exposed to scripting, so it should require only familiarity with how ZScript works to replicate the special functionality exactly.Ultimate Freedoomer wrote:ZSCRIPT
-
- Posts: 224
- Joined: Fri Jan 30, 2015 10:32 pm
- Location: Pittman Center
Re: Custom weapon replications in Heretic, Hexen, & Strife
Well, I did get the Assault Rifle, Mauler, Flamethrower, & Grenade Launcher working perfectly in DECORATE using non-restricted weapon functions. The main issue I’m having is figuring out how to replicate the accuracy stat calculations in DECORATE for the spread parameters of those vanilla weapons whose respective restricted functions are affected by the accuracy upgrade (assault rifle, Crossbow, Mini-Missile Launcher), & using custom functions for the Mauler’s primary fire is keeping the impact decal from showing up after the puff disappears.
-
- Posts: 1558
- Joined: Tue Oct 20, 2015 12:50 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Kozolupy, Bohemia
Re: Custom weapon replications in Heretic, Hexen, & Strife
DECORATE is outdated, use ZSCRIPT.
-
- Posts: 5017
- Joined: Sun Nov 14, 2010 12:59 am
Re: Custom weapon replications in Heretic, Hexen, & Strife
Take a look at this: https://github.com/coelckers/gzdoom/sea ... =%E2%9C%93Ultimate Freedoomer wrote:The main issue I’m having is figuring out how to replicate the accuracy stat calculations in DECORATE for the spread parameters of those vanilla weapons whose respective restricted functions are affected by the accuracy upgrade (assault rifle, Crossbow, Mini-Missile Launcher)
You can call the AccuracyFactor() function from DECORATE just fine.
-
- Posts: 224
- Joined: Fri Jan 30, 2015 10:32 pm
- Location: Pittman Center
Re: Custom weapon replications in Heretic, Hexen, & Strife
I would were it not for the fact that the current stable release of SLADE doesn't recognize it natively.ramon.dexter wrote:DECORATE is outdated, use ZSCRIPT.
-
- Posts: 1235
- Joined: Thu Nov 06, 2014 1:53 pm
Re: Custom weapon replications in Heretic, Hexen, & Strife
I don't seem to get that problem myself ( might be because of working with .pk3s and using a /zscript directory tho ) but that seems like a rather poor reason to avoid it.
-
- Posts: 1558
- Joined: Tue Oct 20, 2015 12:50 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Kozolupy, Bohemia
Re: Custom weapon replications in Heretic, Hexen, & Strife
Duh, the last version of slade DOES recognize zscript (i was wondered )
-
- Posts: 224
- Joined: Fri Jan 30, 2015 10:32 pm
- Location: Pittman Center
Re: Custom weapon replications in Heretic, Hexen, & Strife
I’m waiting for the Stable release of SLADE 3.1.2 before I start doing ZScript.ramon.dexter wrote:Duh, the last version of slade DOES recognize zscript (i was wondered )
-
- Posts: 224
- Joined: Fri Jan 30, 2015 10:32 pm
- Location: Pittman Center
Re: Custom weapon replications in Heretic, Hexen, & Strife
Okay, I'm pretty much done with the mod-friendly Strife weapons. I'm just having the following problems:
- i have no idea how to implement the Mauler Torpedo HUD in Mods
- Fix accuracy bug for Assault Gun & Mini-Missile Launcher (I implemented the accuracy calculation into the spread, but it's not doing anything. Yes, I tested it)
- Fix Electric Bolt Flash bug when firing (you'll see what I mean when playtesting)
You do not have the required permissions to view the files attached to this post.